|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xpath.model.build.AbstractXPathNode
An incomplete implementation of XPathNode with reasonable defaults for most node types.
Field Summary |
Fields inherited from interface jd.xml.xpath.model.XPathNode |
ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, PI, ROOT, TEXT, TYPE_NAMES, TYPES, UNKNOWN |
Constructor Summary | |
AbstractXPathNode()
|
Method Summary | |
boolean |
equals(Object object)
Test if an object is equal to this node. |
XPathNode[] |
getAttributes()
Return null. |
String |
getBaseUri()
Return the base uri of the node. |
int |
getChildCount()
Return 0. |
XPathNode |
getFirstChild()
Return null. |
XPathNode |
getFirstSibling()
Return the first sibling. |
protected String |
getInheritedAttribute(String namespaceUri,
String name)
Return an attribute, that is declared for the given node or one of its ancestors. |
String |
getLanguage()
Return the language of the node. |
String |
getLocalName()
Returns getName(). |
String |
getName()
Return null. |
XPathNode[] |
getNamespaceNodes()
Return null. |
String |
getNamespaceUri()
Return null. |
NodeName |
getNodeName()
Return null. |
String |
getPrefix()
Return null. |
String |
getTypeName()
Return the name of the type. |
int |
hashCode()
Return a hashCode. |
boolean |
hasName(NodeName name)
Return false. |
boolean |
hasNamespaceUri(NodeName name)
Return false. |
abstract String |
toString()
Return a string representation of the node. |
String |
toString(String param)
Return a string representation of the node. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jd.xml.xpath.model.XPathNode |
accept, compareToNode, equalsNode, getCacheableNode, getGlobalId, getLineNumber, getLocalId, getNamespaceContext, getNextSibling, getParent, getPrevSibling, getRoot, getType, getValue |
Constructor Detail |
public AbstractXPathNode()
Method Detail |
public String getTypeName()
getTypeName
in interface XPathNode
public int getChildCount()
getChildCount
in interface XPathNode
public XPathNode getFirstChild()
getFirstChild
in interface XPathNode
public XPathNode getFirstSibling()
getFirstSibling
in interface XPathNode
public NodeName getNodeName()
getNodeName
in interface XPathNode
public String getName()
getName
in interface XPathNode
public String getLocalName()
getLocalName
in interface XPathNode
public String getPrefix()
getPrefix
in interface XPathNode
public String getNamespaceUri()
getNamespaceUri
in interface XPathNode
public boolean hasName(NodeName name)
hasName
in interface XPathNode
public boolean hasNamespaceUri(NodeName name)
hasNamespaceUri
in interface XPathNode
public XPathNode[] getAttributes()
getAttributes
in interface XPathNode
public String getLanguage()
getLanguage
in interface XPathNode
public String getBaseUri()
getBaseUri
in interface XPathNode
protected String getInheritedAttribute(String namespaceUri, String name)
namespaceUri
- the namespace uri of the attribute or nullname
- the attribute name or local name if namespaceUri is not null
public XPathNode[] getNamespaceNodes()
getNamespaceNodes
in interface XPathNode
public boolean equals(Object object)
equals
in interface XPathNode
public int hashCode()
hashCode
in interface XPathNode
public abstract String toString()
toString
in interface XPathNode
public String toString(String param)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |