|
|||||||||
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, character content, or attribute.
This is the top class in the interface hierarchy for nodes; see NodeImpl for the implementation hierarchy.
Field Summary | |
static short |
ATTRIBUTE
|
static short |
COMMENT
|
static short |
ELEMENT
|
static short |
NAMESPACE
|
static short |
NODE
|
static java.lang.String[] |
NODE_TYPE_NAMES
Array of names of node types. |
static short |
NONE
|
static short |
NUMBER_OF_TYPES
|
static short |
PI
|
static short |
ROOT
|
static short |
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 |
copy(Outputter out)
Copy this node to a given outputter |
void |
copyStringValue(Outputter out)
Copy the string-value of this node to a given outputter |
void |
defaultAction(Context c)
Perform default action for this kind of node (built-in template rule) |
NodeEnumeration |
enumerateChildren()
Get an enumeration of the children of this node |
NodeInfo[] |
getAllChildNodes()
Get all child nodes of the element (child elements and character nodes) |
java.lang.String |
getAttributeValue(int fingerprint)
Get the value of a given attribute of this node |
java.lang.String |
getAttributeValue(java.lang.String name)
Find the value of a given attribute of this node. |
java.lang.String |
getAttributeValue(java.lang.String uri,
java.lang.String localName)
Find the value of a given attribute of this node. |
java.lang.String |
getDisplayName()
Get the display name of this node. |
org.w3c.dom.Element |
getDocumentElement()
Get the outermost element. |
DocumentInfo |
getDocumentRoot()
Get the root (document) node |
int |
getFingerprint()
Get fingerprint. |
int |
getIndex()
Get index: that is, the number of preceding sibling nodes at the same level. |
int |
getLineNumber()
Get line number |
java.lang.String |
getLocalName()
Get the local part of the name of this node. |
int |
getNameCode()
Get name code. |
NodeInfo |
getNextInDocument(NodeInfo anchor)
Get the next node in document order |
java.lang.String |
getNodeName()
Get the name of this node, following the DOM rules |
short |
getNodeType()
Return the type of node. |
int |
getNumberOfChildren()
Get the number of children. |
java.lang.String |
getPath()
Generate a path to this node |
java.lang.String |
getPrefix()
Get the prefix part of the name of this node. |
NodeInfo |
getPreviousInDocument()
Get the previous node in document order |
long |
getSequenceNumber()
Get the node sequence number (in document order). |
java.lang.String |
getSequentialKey()
Get a character string that uniquely identifies this node and that collates nodes into document order |
java.lang.String |
getSystemId()
Get the base URL for the node. |
java.lang.String |
getURI()
Get the URI part of the name of this node. |
short |
getURICode()
Get the URI code of the name |
java.lang.String |
getValue()
Return the character value of the node. |
boolean |
isDocumentElement()
Determine whether this element is the outermost element. |
boolean |
isSameNode(NodeInfo other)
Determine whether this is the same node as another node |
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 |
Field Detail |
public static final short NODE
public static final short ELEMENT
public static final short ATTRIBUTE
public static final short TEXT
public static final short ROOT
public static final short PI
public static final short COMMENT
public static final short NAMESPACE
public static final short NUMBER_OF_TYPES
public static final short NONE
public static final java.lang.String[] NODE_TYPE_NAMES
Method Detail |
public short getNodeType()
getNodeType
in interface org.w3c.dom.Node
public boolean isSameNode(NodeInfo other)
public java.lang.String getSystemId()
public int getLineNumber()
public long getSequenceNumber()
public java.lang.String getValue()
public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
public int getNameCode()
public int getFingerprint()
public java.lang.String getLocalName()
getLocalName
in interface org.w3c.dom.Node
public java.lang.String getPrefix()
getPrefix
in interface org.w3c.dom.Node
public java.lang.String getURI()
public short getURICode()
public java.lang.String getDisplayName()
public java.lang.String getAttributeValue(java.lang.String uri, java.lang.String localName)
uri
- the namespace uri of an attribute ("" if no namespace)localname
- the local name of the attributepublic java.lang.String getAttributeValue(java.lang.String name)
name
- the name of an attribute. This must be an unqualified attribute name,
i.e. one with no namespace.public java.lang.String getAttributeValue(int fingerprint)
fingerprint
- The fingerprint of the attribute namepublic boolean isDocumentElement()
public org.w3c.dom.Element getDocumentElement()
public DocumentInfo getDocumentRoot()
public NodeInfo getNextInDocument(NodeInfo anchor)
anchor:
- the scan stops when it reaches a node that is not a descendant of the specified
anchor nodepublic NodeInfo getPreviousInDocument()
public int getNumberOfChildren()
public NodeInfo[] getAllChildNodes()
public NodeEnumeration enumerateChildren()
public int getIndex()
public java.lang.String getSequentialKey()
public void defaultAction(Context c) throws org.xml.sax.SAXException
public void copy(Outputter out) throws org.xml.sax.SAXException
public void copyStringValue(Outputter out) throws org.xml.sax.SAXException
public java.lang.String getPath()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |