|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A node in the XML parse tree representing an XML element.
The ElementInfo provides information about the element and its context. Information available includes the tag and attributes of the element, and pointers to the parent element and the previous element at the same level.
Fields inherited from interface com.icl.saxon.om.NodeInfo |
ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, NODE, NODE_TYPE_NAMES, NONE, NUMBER_OF_TYPES, PI, ROOT, TEXT |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Method Summary | |
void |
addNamespaceNodes(ElementInfo owner,
java.util.Vector list,
boolean addXML)
Make the set of all namespace nodes associated with this element. |
ExtendedAttributes |
getAttributeList()
Get the attribute list for this element. |
java.lang.String |
getPrefixForURI(java.lang.String uri)
Search the NamespaceList for a given URI, returning the corresponding prefix. |
short |
getURICodeForPrefix(java.lang.String prefix)
Search the NamespaceList for a given prefix, returning the corresponding URI code. |
AttributeInfo |
makeAttributeNode(int index)
Make an attribute node for a given attribute of this element |
AttributeInfo |
makeAttributeNodeFS(int fingerprint)
Make an attribute node for a given attribute of this element |
void |
outputNamespaceNodes(Outputter out,
boolean includeAncestors)
Output all namespace nodes associated with this element. |
Methods inherited from interface com.icl.saxon.om.NodeInfo |
copy, copyStringValue, defaultAction, enumerateChildren, getAllChildNodes, getAttributeValue, getAttributeValue, getAttributeValue, getDisplayName, getDocumentElement, getDocumentRoot, getFingerprint, getIndex, getLineNumber, getLocalName, getNameCode, getNextInDocument, getNodeName, getNodeType, getNumberOfChildren, getPath, getPrefix, getPreviousInDocument, getSequenceNumber, getSequentialKey, getSystemId, getURI, getURICode, getValue, isDocumentElement, isSameNode |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Method Detail |
public ExtendedAttributes getAttributeList()
public AttributeInfo makeAttributeNode(int index) throws org.xml.sax.SAXException
index
- The relative position of the attribute, numbered from 0..n-1public AttributeInfo makeAttributeNodeFS(int fingerprint) throws org.xml.sax.SAXException
fingerprint
- The fingerprint of the attribute namepublic short getURICodeForPrefix(java.lang.String prefix) throws org.xml.sax.SAXException
prefix
- The prefix to be matched. To find the default namespace, supply ""org.xml.sax.SAXException
- if the prefix has not been declared on this element or a containing
element.public java.lang.String getPrefixForURI(java.lang.String uri)
uri
- The URI to be matched. To find the default namespace, supply ""public void addNamespaceNodes(ElementInfo owner, java.util.Vector list, boolean addXML) throws org.xml.sax.SAXException
owner
- The element node to own these namespace nodeslist
- a vector containing NamespaceInfo objects representing the namespaces
in scope for this element; the method appends nodes to this Vector, which should
initially be empty.addXML
- Add the XML namespace node to the listpublic void outputNamespaceNodes(Outputter out, boolean includeAncestors) throws org.xml.sax.SAXException
out
- The relevant outputterincludeAncestors
- True if namespaces declared on ancestor elements must
be output; false if it is known that these are already on the result tree
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |