|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xpath.model.build.AbstractXPathNode
jd.xml.xpath.model.build.normal.Node
jd.xml.xpath.model.build.normal.TreeNode
jd.xml.xpath.model.build.normal.CompositeNode
jd.xml.xpath.model.build.normal.ElementNode
jd.xml.xpath.model.build.normal.ComplexElementNode
A ElementNode with attributes and/or namespace declarations.
Field Summary | |
protected TreeNode |
firstChild_
|
protected NodeName |
name_
|
protected TreeNode |
next_
|
protected CompositeNode |
parent_
|
protected TreeNode |
previous_
|
protected int |
serialNumber_
|
Fields inherited from interface jd.xml.xpath.model.XPathNode |
ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, PI, ROOT, TEXT, TYPE_NAMES, TYPES, UNKNOWN |
Constructor Summary | |
ComplexElementNode(NodeName name,
NamespaceContext namespaceContext)
Create a ComplexElementNode. |
Method Summary | |
void |
accept(NodeVisitor visitor)
Dispatch method for NodeVisitors. |
int |
compareToNode(XPathNode node)
Compare to another XPathNode from the same document. |
(package private) Node |
copy(CompositeNode parent)
|
(package private) Node |
createCopy()
|
boolean |
equalsNode(XPathNode node)
Test if the node equals the given node. |
XPathNode[] |
getAttributes()
Return the Attributes of this XPathNode. |
XPathNode |
getCacheableNode()
Return this. |
int |
getChildCount()
Return 0. |
XPathNode |
getFirstChild()
Return the first child. |
(package private) Node |
getFirstChildImpl()
Return null. |
String |
getGlobalId()
Return an unique identifier for the node. |
int |
getLineNumber()
Return the line number of this node in a source document. |
int |
getLocalId()
Return a number for the node that is unique within the document. |
String |
getLocalName()
Return the XPath local name. |
String |
getName()
Return the element name. |
NamespaceContext |
getNamespaceContext()
Return the namespace context of the node. |
XPathNode[] |
getNamespaceNodes()
Return the NamespaceNodes of this XPathNode. |
String |
getNamespaceUri()
Return the XPath namespace uri. |
XPathNode |
getNextSibling()
Return the next XPathNode sibling. |
NodeName |
getNodeName()
Return the attribute node name. |
XPathNode |
getParent()
Return the parent XPathNode. |
String |
getPrefix()
Return the prefix of the node. |
XPathNode |
getPrevSibling()
Return the previous XPathNode sibling. |
XPathRootNode |
getRoot()
Return the root. |
String |
getTextValue()
Return the concatenation of the value of all text node descendants. |
int |
getType()
Return the type. |
String |
getValue()
Return the string-value of the node. |
boolean |
hasName(NodeName name)
Test if the node name equals the given name. |
boolean |
hasNamespaceUri(NodeName name)
Test if the namespace uri of this node equals the uri of the given NodeName. |
(package private) void |
increaseChildCount()
|
(package private) boolean |
isComplexElement()
|
boolean |
preserveSpace()
Return if a text child with whitespace text should be preserved. |
(package private) void |
setAttributes(AttributeNode[] attributes)
Set the Attributes of this XPathNode. |
(package private) void |
setFirstChild(TreeNode child)
|
(package private) void |
setNextSibling(TreeNode node)
|
(package private) void |
setSerialNumber(int serialNumber)
|
String |
toString()
Return a string representation of the node. |
Methods inherited from class jd.xml.xpath.model.build.AbstractXPathNode |
equals, getBaseUri, getFirstSibling, getInheritedAttribute, getLanguage, getTypeName, hashCode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected NodeName name_
protected TreeNode firstChild_
protected TreeNode next_
protected TreeNode previous_
protected CompositeNode parent_
protected int serialNumber_
Constructor Detail |
public ComplexElementNode(NodeName name, NamespaceContext namespaceContext)
Method Detail |
boolean isComplexElement()
isComplexElement
in class CompositeNode
void setAttributes(AttributeNode[] attributes)
public XPathNode[] getAttributes()
getAttributes
in interface XPathNode
getAttributes
in class AbstractXPathNode
Node createCopy()
createCopy
in class ElementNode
public NamespaceContext getNamespaceContext()
getNamespaceContext
in interface XPathNode
getNamespaceContext
in class Node
public final int getType()
public final String getValue()
public NodeName getNodeName()
getNodeName
in interface XPathNode
getNodeName
in class AbstractXPathNode
public final String getName()
getName
in interface XPathNode
getName
in class AbstractXPathNode
public String getPrefix()
getPrefix
in interface XPathNode
getPrefix
in class AbstractXPathNode
public String getLocalName()
getLocalName
in interface XPathNode
getLocalName
in class AbstractXPathNode
public String getNamespaceUri()
getNamespaceUri
in interface XPathNode
getNamespaceUri
in class AbstractXPathNode
public boolean hasName(NodeName name)
hasName
in interface XPathNode
hasName
in class AbstractXPathNode
public boolean hasNamespaceUri(NodeName name)
hasNamespaceUri
in interface XPathNode
hasNamespaceUri
in class AbstractXPathNode
public XPathNode[] getNamespaceNodes()
getNamespaceNodes
in interface XPathNode
getNamespaceNodes
in class AbstractXPathNode
public boolean preserveSpace()
preserveSpace
in class CompositeNode
public void accept(NodeVisitor visitor)
public String toString()
toString
in interface XPathNode
toString
in class Node
public int getChildCount()
getChildCount
in interface XPathNode
getChildCount
in class AbstractXPathNode
void increaseChildCount()
public final XPathNode getFirstChild()
getFirstChild
in interface XPathNode
getFirstChild
in class AbstractXPathNode
Node getFirstChildImpl()
getFirstChildImpl
in class Node
void setFirstChild(TreeNode child)
public String getTextValue()
Node copy(CompositeNode parent)
copy
in class Node
public final XPathNode getNextSibling()
getNextSibling
in interface XPathNode
getNextSibling
in class Node
public final XPathNode getPrevSibling()
getPrevSibling
in interface XPathNode
getPrevSibling
in class Node
void setNextSibling(TreeNode node)
public XPathRootNode getRoot()
public XPathNode getParent()
public XPathNode getCacheableNode()
public int getLocalId()
public String getGlobalId()
public boolean equalsNode(XPathNode node)
public int compareToNode(XPathNode node)
void setSerialNumber(int serialNumber)
public int getLineNumber()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |