|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaxme.xs.parser.DOMBuilder
Converts a stream of SAX events into a DOM node.
Constructor Summary | |
DOMBuilder()
Creates a new instance of DOMBuilder, which creates a new document. |
|
DOMBuilder(org.w3c.dom.Node pTarget)
Creates a new instance of DOMBuilder, which creates a new element node in the given node. |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
|
void |
endPrefixMapping(java.lang.String prefix)
|
org.w3c.dom.Document |
getDocument()
Returns the document being used as object factory. |
org.xml.sax.Locator |
getDocumentLocator()
Returns the Locator. |
org.w3c.dom.Element |
getResult()
Returns the result element. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
processingInstruction(java.lang.String pTarget,
java.lang.String pData)
|
void |
setDocumentLocator(org.xml.sax.Locator pLocator)
Sets the Locator. |
void |
skippedEntity(java.lang.String pName)
|
void |
startDocument()
|
void |
startElement(java.lang.String pNamespaceURI,
java.lang.String pLocalName,
java.lang.String pQName,
org.xml.sax.Attributes pAttr)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DOMBuilder() throws javax.xml.parsers.ParserConfigurationException
Creates a new instance of DOMBuilder, which creates
a new document. The document is available via
getDocument()
.
public DOMBuilder(org.w3c.dom.Node pTarget)
Creates a new instance of DOMBuilder, which creates
a new element node in the given node. The created node
is available via getResult()
.
Method Detail |
public org.w3c.dom.Document getDocument()
Returns the document being used as object factory. In the case of the empty constructor, this is a new document. Otherwise it is the target nodes owner document.
public org.w3c.dom.Element getResult()
Returns the result element. In the case of the default constructor,
this is the document element. Otherwise it is added to the target node
via Node.appendChild(org.w3c.dom.Node)
.<(p>
public void setDocumentLocator(org.xml.sax.Locator pLocator)
Sets the Locator.
setDocumentLocator
in interface org.xml.sax.ContentHandler
public org.xml.sax.Locator getDocumentLocator()
Returns the Locator.
public void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
ContentHandler.startDocument()
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
ContentHandler.endDocument()
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void startElement(java.lang.String pNamespaceURI, java.lang.String pLocalName, java.lang.String pQName, org.xml.sax.Attributes pAttr) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void processingInstruction(java.lang.String pTarget, java.lang.String pData) throws org.xml.sax.SAXException
processingInstruction
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
public void skippedEntity(java.lang.String pName) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
org.xml.sax.SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |