public class DOMBuilder extends Object implements ContentHandler
Constructor and Description |
---|
DOMBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
endElement(String namespaceURI,
String localName,
String qName) |
void |
endPrefixMapping(String prefix) |
Document |
getDocument()
Returns the document being used as object factory.
|
Locator |
getDocumentLocator()
Returns the Locator.
|
Node |
getTarget()
Returns the target node.
|
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
boolean |
isPrefixMappingIsAttribute()
Sets whether the event
startPrefixMapping(java.lang.String, java.lang.String)
shall create an xmlns attribute. |
void |
processingInstruction(String pTarget,
String pData) |
void |
setDocument(Document pDocument)
Sets the document being used as object factory.
|
void |
setDocumentLocator(Locator pLocator)
Sets the Locator.
|
void |
setPrefixMappingIsAttribute(boolean pPrefixMappingIsAttribute)
Returns whether the event
startPrefixMapping(java.lang.String, java.lang.String)
shall create an xmlns attribute. |
void |
setTarget(Node pNode)
Sets the target node.
|
void |
skippedEntity(String pName) |
void |
startDocument() |
void |
startElement(String pNamespaceURI,
String pLocalName,
String pQName,
Attributes pAttr) |
void |
startPrefixMapping(String prefix,
String uri) |
public boolean isPrefixMappingIsAttribute()
startPrefixMapping(java.lang.String, java.lang.String)
shall create an xmlns
attribute. Defaults
to false.xmlns
attributes are being
created, false otherwise.public void setPrefixMappingIsAttribute(boolean pPrefixMappingIsAttribute)
startPrefixMapping(java.lang.String, java.lang.String)
shall create an xmlns
attribute. Defaults
to false.pPrefixMappingIsAttribute
- True, if xmlns
attributes are being created, false otherwise.public void setDocument(Document pDocument)
pDocument
- The object factory.public Document getDocument()
public void setDocumentLocator(Locator pLocator)
setDocumentLocator
in interface ContentHandler
pLocator
- The Locator being set.public Locator getDocumentLocator()
public void setTarget(Node pNode)
pNode
- The target node.public Node getTarget()
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
SAXException
public void startElement(String pNamespaceURI, String pLocalName, String pQName, Attributes pAttr) throws SAXException
startElement
in interface ContentHandler
SAXException
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
SAXException
public void processingInstruction(String pTarget, String pData) throws SAXException
processingInstruction
in interface ContentHandler
SAXException
public void skippedEntity(String pName) throws SAXException
skippedEntity
in interface ContentHandler
SAXException
Copyright © 2005-2015 Apache Software Foundation. All Rights Reserved.