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 ContentHandlerpLocator - 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 ContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionpublic void startElement(String pNamespaceURI, String pLocalName, String pQName, Attributes pAttr) throws SAXException
startElement in interface ContentHandlerSAXExceptionpublic void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXExceptionpublic void processingInstruction(String pTarget, String pData) throws SAXException
processingInstruction in interface ContentHandlerSAXExceptionpublic void skippedEntity(String pName) throws SAXException
skippedEntity in interface ContentHandlerSAXExceptionCopyright © 2005-2014 Apache Software Foundation. All Rights Reserved.