javax.xml.transform.Source
, javax.xml.transform.SourceLocator
, PullEvent
, FingerprintedNode
, Item<NodeInfo>
, NodeInfo
, ValueRepresentation<NodeInfo>
final class TinyAttributeImpl extends TinyNodeImpl
ALL_NAMESPACES, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES
NODE_LETTER, nodeNr, parent, tree
EMPTY_VALUE_ARRAY
Constructor | Description |
---|---|
TinyAttributeImpl(TinyTree tree,
int nodeNr) |
Modifier and Type | Method | Description |
---|---|---|
Value<? extends AtomicValue> |
atomize() |
Get the typed value.
|
void |
copy(Receiver out,
int copyOptions,
int locationId) |
Copy this node to a given outputter
|
void |
generateId(FastStringBuffer buffer) |
Generate id.
|
int |
getColumnNumber() |
Get the column number of the node within its source document entity
|
java.lang.String |
getDisplayName() |
Get the display name of this node.
|
int |
getFingerprint() |
Get the fingerprint of the node, used for matching names
|
int |
getLineNumber() |
Get the line number of the node within its source document entity
|
java.lang.String |
getLocalPart() |
Get the local name of this node.
|
int |
getNameCode() |
Get the name code of the node, used for finding names in the name pool
|
int |
getNodeKind() |
Return the type of node.
|
NodeInfo |
getParent() |
Get the parent node
|
java.lang.String |
getPrefix() |
Get the prefix part of the name of this node.
|
NodeInfo |
getRoot() |
Get the root node of the tree (not necessarily a document node)
|
SchemaType |
getSchemaType() |
Get the type annotation of this node, if any.
|
protected long |
getSequenceNumber() |
Get the node sequence number (in document order).
|
java.lang.String |
getStringValue() |
Return the string value of the node.
|
java.lang.CharSequence |
getStringValueCS() |
Return the string value of the node.
|
int |
getTypeAnnotation() |
Get the type annotation of this node
Returns UNTYPED_ATOMIC if there is no type annotation
|
SequenceIterator |
getTypedValue() |
Get the typed value of the item.
|
java.lang.String |
getURI() |
Get the URI part of the name of this node.
|
int |
hashCode() |
The hashCode() method obeys the contract for hashCode(): that is, if two objects are equal
(represent the same node) then they must have the same hashCode()
|
boolean |
isId() |
Determine whether this node has the is-id property
|
boolean |
isIdref() |
Determine whether this node has the is-idref property
|
boolean |
isNilled() |
Determine whether the node has the is-nilled property
|
void |
setSystemId(java.lang.String uri) |
Set the system id of this node.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
compareOrder, equals, getAttributeValue, getAttributeValue, getBaseURI, getConfiguration, getDeclaredNamespaces, getDocumentNumber, getDocumentRoot, getNamePool, getNodeNumber, getParentNodeNr, getPublicId, getSystemId, getTree, hasChildNodes, isAncestorOrSelf, isSameNodeInfo, iterateAxis, iterateAxis, setParentNode
public TinyAttributeImpl(TinyTree tree, int nodeNr)
public void setSystemId(java.lang.String uri)
TinyNodeImpl
setSystemId
in interface javax.xml.transform.Source
setSystemId
in class TinyNodeImpl
public NodeInfo getParent()
getParent
in interface NodeInfo
getParent
in class TinyNodeImpl
public NodeInfo getRoot()
getRoot
in interface NodeInfo
getRoot
in class TinyNodeImpl
protected long getSequenceNumber()
getSequenceNumber
in class TinyNodeImpl
public final int getNodeKind()
Type
public java.lang.CharSequence getStringValueCS()
getStringValueCS
in interface Item<NodeInfo>
getStringValueCS
in interface ValueRepresentation<NodeInfo>
getStringValueCS
in class TinyNodeImpl
Item.getStringValue()
public java.lang.String getStringValue()
Item.getStringValueCS()
public int getFingerprint()
getFingerprint
in interface NodeInfo
getFingerprint
in class TinyNodeImpl
public int getNameCode()
getNameCode
in interface NodeInfo
getNameCode
in class TinyNodeImpl
allocate
,
getFingerprint
public java.lang.String getPrefix()
getPrefix
in interface NodeInfo
getPrefix
in class TinyNodeImpl
public java.lang.String getDisplayName()
getDisplayName
in interface NodeInfo
getDisplayName
in class TinyNodeImpl
public java.lang.String getLocalPart()
getLocalPart
in interface NodeInfo
getLocalPart
in class TinyNodeImpl
public final java.lang.String getURI()
getURI
in interface NodeInfo
getURI
in class TinyNodeImpl
public int getTypeAnnotation()
getTypeAnnotation
in interface NodeInfo
getTypeAnnotation
in class TinyNodeImpl
For elements and attributes, this is the type annotation as defined in XDM. For document nodes, it should be one of XS_UNTYPED if the document has not been validated, or XS_ANY_TYPE if validation has taken place (that is, if any node in the document has an annotation other than Untyped or UntypedAtomic).
public SchemaType getSchemaType()
Types derived from a DTD are not reflected in the result of this method.
getSchemaType
in interface NodeInfo
getSchemaType
in class TinyNodeImpl
public Value<? extends AtomicValue> atomize() throws XPathException
Item.getTypedValue()
. However, this method is often more convenient and may be
more efficient, especially in the common case where the value is expected to be a singleton.XPathException
- if the node has no typed value, for example if
it is an element node with element-only contentpublic SequenceIterator getTypedValue() throws XPathException
XPathException
- where no typed value is available, for example in the case of
an element with complex contentpublic void generateId(FastStringBuffer buffer)
generateId
in interface NodeInfo
generateId
in class TinyNodeImpl
buffer
- Buffer to contain the generated ID valuepublic void copy(Receiver out, int copyOptions, int locationId) throws XPathException
out
- the Receiver to which the node should be copied. It is the caller's
responsibility to ensure that this Receiver is open before the method is called
(or that it is self-opening), and that it is closed after use.copyOptions
- a selection of the options defined in CopyOptions
locationId
- If non-zero, identifies the location of the instruction
that requested this copy. If zero, indicates that the location informationXPathException
- if any downstream error occurspublic int getLineNumber()
getLineNumber
in interface NodeInfo
getLineNumber
in interface javax.xml.transform.SourceLocator
getLineNumber
in class TinyNodeImpl
public int getColumnNumber()
getColumnNumber
in interface NodeInfo
getColumnNumber
in interface javax.xml.transform.SourceLocator
getColumnNumber
in class TinyNodeImpl
public boolean isNilled()
isNilled
in interface NodeInfo
isNilled
in class TinyNodeImpl
public boolean isId()
isId
in interface NodeInfo
isId
in class TinyNodeImpl
public boolean isIdref()
isIdref
in interface NodeInfo
isIdref
in class TinyNodeImpl
public int hashCode()
hashCode
in interface NodeInfo
hashCode
in class TinyNodeImpl