@Contract
public interface XMLNode<T>
| Modifier and Type | Method and Description |
|---|---|
void |
addDescriptor(Object descriptor)
Add a new descriptor to the current descriptor associated with
this node.
|
void |
addPrefixMapping(String prefix,
String uri)
notify of a new prefix mapping used from this node
|
boolean |
endElement(XMLElement element)
notification of the end of an XML element in the source XML
file.
|
T |
getDescriptor() |
XMLNode |
getHandlerFor(XMLElement element)
Return the XMLNode implementation respionsible for
handling the sub-element of the current node
|
XMLNode |
getParentNode() |
XMLNode |
getRootNode() |
String |
getXMLPath() |
boolean |
handlesElement(XMLElement element)
Return true if the XMLNode is responisble for handling the
XML element
|
String |
resolvePrefix(XMLElement element,
String prefix)
Resolve a QName prefix to its corresponding Namespace URI by
searching up node chain starting with the child.
|
void |
setElementValue(XMLElement element,
String value)
sets the value of an XML element
|
void |
startElement(XMLElement element,
Attributes attributes)
notification of the start of an XML element tag in the processed
XML source file.
|
Node |
writeDescriptor(Node parent,
T descriptor)
write the descriptor to an JAXP DOM node and return it
|
void startElement(XMLElement element, Attributes attributes)
element - the XML element type nameattributes - the specified or defaultted attritutesvoid setElementValue(XMLElement element, String value)
element - the XML element type namevalue - the element valueboolean endElement(XMLElement element)
element - the XML element type nameboolean handlesElement(XMLElement element)
element - the XML element type nameXMLNode getHandlerFor(XMLElement element)
element - the XML element type nameXMLNode getParentNode()
XMLNode getRootNode()
String getXMLPath()
T getDescriptor()
void addDescriptor(Object descriptor)
descriptor - the new descriptor to be added to the current
descriptor.Node writeDescriptor(Node parent, T descriptor)
parent - node in the DOM treedescriptor - the descriptor to be writtenvoid addPrefixMapping(String prefix, String uri)
String resolvePrefix(XMLElement element, String prefix)
Copyright © 2017. All rights reserved.