Class AttributeNode
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.xpath.saxon.AbstractNodeInfo
-
- net.sourceforge.pmd.lang.ast.xpath.saxon.AttributeNode
-
- All Implemented Interfaces:
javax.xml.transform.Source
,net.sf.saxon.evpull.PullEvent
,net.sf.saxon.om.Item
,net.sf.saxon.om.NodeInfo
,net.sf.saxon.om.SiblingCountingNode
,net.sf.saxon.om.ValueRepresentation
,net.sf.saxon.om.VirtualNode
public class AttributeNode extends AbstractNodeInfo
A Saxon OM Attribute node for an AST Node Attribute. Belongs to anElementNode
, and wraps anAttribute
.
-
-
Constructor Summary
Constructors Constructor Description AttributeNode(Attribute attribute, int id)
Creates a new AttributeNode from a PMD Attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.sf.saxon.value.Value
atomize()
int
compareOrder(net.sf.saxon.om.NodeInfo other)
java.lang.String
getLocalPart()
int
getNodeKind()
java.lang.CharSequence
getStringValueCS()
net.sf.saxon.om.SequenceIterator
getTypedValue()
java.lang.String
getURI()
-
Methods inherited from class net.sourceforge.pmd.lang.ast.xpath.saxon.AbstractNodeInfo
copy, createUnsupportedOperationException, equals, generateId, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getDocumentNumber, getDocumentRoot, getFingerprint, getLineNumber, getNameCode, getNamePool, getParent, getPrefix, getRoot, getSiblingPosition, getStringValue, getSystemId, getTypeAnnotation, getUnderlyingNode, hasChildNodes, hashCode, isId, isIdref, isNilled, isSameNodeInfo, iterateAxis, iterateAxis, setSystemId
-
-
-
-
Field Detail
-
attribute
protected final Attribute attribute
-
id
protected final int id
-
value
protected net.sf.saxon.value.Value value
-
-
Constructor Detail
-
AttributeNode
public AttributeNode(Attribute attribute, int id)
Creates a new AttributeNode from a PMD Attribute.- Parameters:
id
- The index within the attribute order
-
-
Method Detail
-
getNodeKind
public int getNodeKind()
- Specified by:
getNodeKind
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getNodeKind
in classAbstractNodeInfo
-
getLocalPart
public java.lang.String getLocalPart()
- Specified by:
getLocalPart
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getLocalPart
in classAbstractNodeInfo
-
getURI
public java.lang.String getURI()
- Specified by:
getURI
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
getURI
in classAbstractNodeInfo
-
atomize
public net.sf.saxon.value.Value atomize()
- Specified by:
atomize
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
atomize
in classAbstractNodeInfo
-
getStringValueCS
public java.lang.CharSequence getStringValueCS()
- Specified by:
getStringValueCS
in interfacenet.sf.saxon.om.Item
- Specified by:
getStringValueCS
in interfacenet.sf.saxon.om.ValueRepresentation
- Overrides:
getStringValueCS
in classAbstractNodeInfo
-
getTypedValue
public net.sf.saxon.om.SequenceIterator getTypedValue() throws net.sf.saxon.trans.XPathException
- Specified by:
getTypedValue
in interfacenet.sf.saxon.om.Item
- Overrides:
getTypedValue
in classAbstractNodeInfo
- Throws:
net.sf.saxon.trans.XPathException
-
compareOrder
public int compareOrder(net.sf.saxon.om.NodeInfo other)
- Specified by:
compareOrder
in interfacenet.sf.saxon.om.NodeInfo
- Overrides:
compareOrder
in classAbstractNodeInfo
-
-