|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pmd.lang.ast.xpath.saxon.AbstractNodeInfo
public class AbstractNodeInfo
This is a basic implementation of the Saxon NodeInfo and related interfaces.
Most methods are trivial implementations which immediately throw
UnsupportedOperationException. A few of the methods actually have
useful implementations, such as iterateAxis(byte, NodeTest) and
isSameNodeInfo(NodeInfo).
| Field Summary |
|---|
| Fields inherited from interface net.sf.saxon.om.NodeInfo |
|---|
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES |
| Constructor Summary | |
|---|---|
AbstractNodeInfo()
|
|
| Method Summary | |
|---|---|
net.sf.saxon.value.Value |
atomize()
|
int |
compareOrder(net.sf.saxon.om.NodeInfo other)
|
void |
copy(net.sf.saxon.event.Receiver receiver,
int whichNamespaces,
boolean copyAnnotations,
int locationId)
|
protected UnsupportedOperationException |
createUnsupportedOperationException(String name)
Used to create a customized instance of UnsupportedOperationException. |
boolean |
equals(Object other)
This implementation considers to NodeInfo objects to be equal, if their underlying nodes are equal. |
void |
generateId(net.sf.saxon.om.FastStringBuffer buffer)
|
String |
getAttributeValue(int fingerprint)
|
String |
getBaseURI()
|
int |
getColumnNumber()
|
net.sf.saxon.Configuration |
getConfiguration()
|
int[] |
getDeclaredNamespaces(int[] buffer)
|
String |
getDisplayName()
|
int |
getDocumentNumber()
This implementation always returns 0. |
net.sf.saxon.om.DocumentInfo |
getDocumentRoot()
|
int |
getFingerprint()
|
int |
getLineNumber()
|
String |
getLocalPart()
|
int |
getNameCode()
|
net.sf.saxon.om.NamePool |
getNamePool()
|
int |
getNodeKind()
|
net.sf.saxon.om.NodeInfo |
getParent()
|
String |
getPrefix()
|
net.sf.saxon.om.NodeInfo |
getRoot()
|
int |
getSiblingPosition()
|
String |
getStringValue()
|
CharSequence |
getStringValueCS()
|
String |
getSystemId()
|
int |
getTypeAnnotation()
|
net.sf.saxon.om.SequenceIterator |
getTypedValue()
|
Object |
getUnderlyingNode()
|
String |
getURI()
|
boolean |
hasChildNodes()
|
boolean |
isId()
|
boolean |
isIdref()
|
boolean |
isNilled()
|
boolean |
isSameNodeInfo(net.sf.saxon.om.NodeInfo other)
This implementation delegates to equals(Object), per the Saxon
documentation's description of this method's behavior. |
net.sf.saxon.om.AxisIterator |
iterateAxis(byte axisNumber)
|
net.sf.saxon.om.AxisIterator |
iterateAxis(byte axisNumber,
net.sf.saxon.pattern.NodeTest nodeTest)
This implementation calls iterateAxis(byte) to get an
AxisIterator which is then optionally filtered using
Navigator.AxisFilter. |
void |
setSystemId(String systemId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.saxon.om.NodeInfo |
|---|
hashCode |
| Constructor Detail |
|---|
public AbstractNodeInfo()
| Method Detail |
|---|
public String getSystemId()
getSystemId in interface SourcegetSystemId in interface net.sf.saxon.om.NodeInfopublic void setSystemId(String systemId)
setSystemId in interface Sourcepublic String getStringValue()
getStringValue in interface net.sf.saxon.om.ItemgetStringValue in interface net.sf.saxon.om.NodeInfogetStringValue in interface net.sf.saxon.om.ValueRepresentationpublic CharSequence getStringValueCS()
getStringValueCS in interface net.sf.saxon.om.ItemgetStringValueCS in interface net.sf.saxon.om.ValueRepresentation
public net.sf.saxon.om.SequenceIterator getTypedValue()
throws net.sf.saxon.trans.XPathException
getTypedValue in interface net.sf.saxon.om.Itemnet.sf.saxon.trans.XPathExceptionpublic Object getUnderlyingNode()
getUnderlyingNode in interface net.sf.saxon.om.VirtualNodepublic int getSiblingPosition()
getSiblingPosition in interface net.sf.saxon.om.SiblingCountingNode
public net.sf.saxon.value.Value atomize()
throws net.sf.saxon.trans.XPathException
atomize in interface net.sf.saxon.om.NodeInfonet.sf.saxon.trans.XPathExceptionpublic int compareOrder(net.sf.saxon.om.NodeInfo other)
compareOrder in interface net.sf.saxon.om.NodeInfo
public void copy(net.sf.saxon.event.Receiver receiver,
int whichNamespaces,
boolean copyAnnotations,
int locationId)
throws net.sf.saxon.trans.XPathException
copy in interface net.sf.saxon.om.NodeInfonet.sf.saxon.trans.XPathExceptionpublic boolean equals(Object other)
equals in interface net.sf.saxon.om.NodeInfoequals in class Objectpublic void generateId(net.sf.saxon.om.FastStringBuffer buffer)
generateId in interface net.sf.saxon.om.NodeInfopublic String getAttributeValue(int fingerprint)
getAttributeValue in interface net.sf.saxon.om.NodeInfopublic String getBaseURI()
getBaseURI in interface net.sf.saxon.om.NodeInfopublic int getColumnNumber()
getColumnNumber in interface net.sf.saxon.om.NodeInfopublic net.sf.saxon.Configuration getConfiguration()
getConfiguration in interface net.sf.saxon.om.NodeInfopublic int[] getDeclaredNamespaces(int[] buffer)
getDeclaredNamespaces in interface net.sf.saxon.om.NodeInfopublic String getDisplayName()
getDisplayName in interface net.sf.saxon.om.NodeInfopublic int getDocumentNumber()
getDocumentNumber in interface net.sf.saxon.om.NodeInfopublic net.sf.saxon.om.DocumentInfo getDocumentRoot()
getDocumentRoot in interface net.sf.saxon.om.NodeInfopublic int getFingerprint()
getFingerprint in interface net.sf.saxon.om.NodeInfopublic int getLineNumber()
getLineNumber in interface net.sf.saxon.om.NodeInfopublic String getLocalPart()
getLocalPart in interface net.sf.saxon.om.NodeInfopublic int getNameCode()
getNameCode in interface net.sf.saxon.om.NodeInfopublic net.sf.saxon.om.NamePool getNamePool()
getNamePool in interface net.sf.saxon.om.NodeInfopublic int getNodeKind()
getNodeKind in interface net.sf.saxon.om.NodeInfopublic net.sf.saxon.om.NodeInfo getParent()
getParent in interface net.sf.saxon.om.NodeInfopublic String getPrefix()
getPrefix in interface net.sf.saxon.om.NodeInfopublic net.sf.saxon.om.NodeInfo getRoot()
getRoot in interface net.sf.saxon.om.NodeInfopublic int getTypeAnnotation()
getTypeAnnotation in interface net.sf.saxon.om.NodeInfopublic String getURI()
getURI in interface net.sf.saxon.om.NodeInfopublic boolean hasChildNodes()
hasChildNodes in interface net.sf.saxon.om.NodeInfopublic boolean isId()
isId in interface net.sf.saxon.om.NodeInfopublic boolean isIdref()
isIdref in interface net.sf.saxon.om.NodeInfopublic boolean isNilled()
isNilled in interface net.sf.saxon.om.NodeInfopublic boolean isSameNodeInfo(net.sf.saxon.om.NodeInfo other)
equals(Object), per the Saxon
documentation's description of this method's behavior.
isSameNodeInfo in interface net.sf.saxon.om.NodeInfopublic net.sf.saxon.om.AxisIterator iterateAxis(byte axisNumber)
iterateAxis in interface net.sf.saxon.om.NodeInfo
public net.sf.saxon.om.AxisIterator iterateAxis(byte axisNumber,
net.sf.saxon.pattern.NodeTest nodeTest)
iterateAxis(byte) to get an
AxisIterator which is then optionally filtered using
Navigator.AxisFilter.
iterateAxis in interface net.sf.saxon.om.NodeInfoprotected UnsupportedOperationException createUnsupportedOperationException(String name)
throw the exception.
name - Method name that is not supported.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||