javax.xml.transform.Source
DocumentInfo
AbsentExtensionElement
, AbstractNode
, DocumentImpl
, DocumentWrapper
, ElementImpl
, ElementWithAttributes
, LiteralResultElement
, NodeImpl
, NodeWrapper
, SAXONAssign
, SAXONDoctype
, SAXONEntityRef
, SAXONFunction
, SAXONGroup
, SAXONHandler
, SAXONItem
, SAXONPreview
, SAXONReturn
, SAXONWhile
, SQLClose
, SQLColumn
, SQLConnect
, SQLInsert
, StyleElement
, TinyDocumentImpl
, XSLApplyImports
, XSLApplyTemplates
, XSLAttribute
, XSLAttributeSet
, XSLCallTemplate
, XSLChoose
, XSLComment
, XSLCopy
, XSLCopyOf
, XSLDecimalFormat
, XSLDocument
, XSLElement
, XSLFallback
, XSLForEach
, XSLGeneralIncorporate
, XSLGeneralVariable
, XSLIf
, XSLImport
, XSLInclude
, XSLKey
, XSLMessage
, XSLNamespaceAlias
, XSLNumber
, XSLOtherwise
, XSLOutput
, XSLParam
, XSLPreserveSpace
, XSLProcessingInstruction
, XSLScript
, XSLSort
, XSLStringConstructor
, XSLStyleSheet
, XSLTemplate
, XSLText
, XSLValueOf
, XSLVariable
, XSLWhen
, XSLWithParam
public interface NodeInfo
extends javax.xml.transform.Source
This is the top class in the interface hierarchy for nodes; see NodeImpl for the implementation hierarchy.
Modifier and Type | Field | Description |
---|---|---|
static short |
ATTRIBUTE |
|
static short |
COMMENT |
|
static short |
ELEMENT |
|
static short |
NAMESPACE |
|
static short |
NODE |
|
static short |
NONE |
|
static short |
NUMBER_OF_TYPES |
|
static short |
PI |
|
static short |
ROOT |
|
static short |
TEXT |
Modifier and Type | Method | Description |
---|---|---|
int |
compareOrder(NodeInfo other) |
Determine the relative position of this node and another node, in document order.
|
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
|
java.lang.String |
generateId() |
Get a character string that uniquely identifies this node.
Note: a.isSameNode(b) if and only if generateId(a)==generateId(b) |
java.lang.String |
getAttributeValue(int fingerprint) |
Get 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 |
getBaseURI() |
Get the Base URI for the node, that is, the URI used for resolving a relative URI contained
in the node.
|
java.lang.String |
getDisplayName() |
Get the display name of this node.
|
DocumentInfo |
getDocumentRoot() |
Get the root (document) node
|
AxisEnumeration |
getEnumeration(byte axisNumber,
NodeTest nodeTest) |
Return an enumeration over the nodes reached by the given axis from this node
|
int |
getFingerprint() |
Get fingerprint.
|
int |
getLineNumber() |
Get line number
|
java.lang.String |
getLocalName() |
Get the local part of the name of this node.
|
int |
getNameCode() |
Get name code.
|
short |
getNodeType() |
Return the type of node.
|
NodeInfo |
getParent() |
Get the NodeInfo object representing the parent of this node
|
java.lang.String |
getPrefix() |
Get the prefix part of the name of this node.
|
java.lang.String |
getStringValue() |
Return the string value of the node.
|
java.lang.String |
getSystemId() |
Get the System ID for the node.
|
java.lang.String |
getURI() |
Get the URI part of the name of this node.
|
boolean |
hasChildNodes() |
Determine whether the node has any children.
|
boolean |
isSameNodeInfo(NodeInfo other) |
Determine whether this is the same node as another node.
|
void |
outputNamespaceNodes(Outputter out,
boolean includeAncestors) |
Output all namespace nodes associated with this element.
|
static final short NODE
static final short ELEMENT
static final short ATTRIBUTE
static final short TEXT
static final short PI
static final short COMMENT
static final short ROOT
static final short NAMESPACE
static final short NUMBER_OF_TYPES
static final short NONE
short getNodeType()
boolean isSameNodeInfo(NodeInfo other)
java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.Source
java.lang.String getBaseURI()
int getLineNumber()
int compareOrder(NodeInfo other)
other
- The other node, whose position is to be compared with this nodejava.lang.String getStringValue()
int getNameCode()
allocate
,
getFingerprint
int getFingerprint()
java.lang.String getLocalName()
java.lang.String getPrefix()
java.lang.String getURI()
java.lang.String getDisplayName()
NodeInfo getParent()
AxisEnumeration getEnumeration(byte axisNumber, NodeTest nodeTest)
axisNumber
- the axis to be followed (a constant in class Axis
)nodeTest
- A pattern to be matched by the returned nodesjava.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 attributejava.lang.String getAttributeValue(int fingerprint)
fingerprint
- The fingerprint of the attribute nameDocumentInfo getDocumentRoot()
boolean hasChildNodes()
java.lang.String generateId()
void copy(Outputter out) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
void copyStringValue(Outputter out) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
void outputNamespaceNodes(Outputter out, boolean includeAncestors) throws javax.xml.transform.TransformerException
out
- The relevant outputterincludeAncestors
- True if namespaces declared on ancestor elements must
be output; false if it is known that these are already on the result treejavax.xml.transform.TransformerException