public final class TinyAttributeImpl extends TinyNodeImpl
NODE_LETTER, nodeNr, parent, treeALL_NAMESPACES, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES| Constructor and Description |
|---|
TinyAttributeImpl(TinyTree tree,
int nodeNr) |
| Modifier and Type | Method and Description |
|---|---|
AtomicSequence |
atomize()
Get the typed value.
|
void |
copy(Receiver out,
int copyOptions,
Location 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
|
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
|
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
|
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).
|
String |
getStringValue()
Return the string value of the node.
|
CharSequence |
getStringValueCS()
Return the string value of the node.
|
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 |
isDefaultedAttribute()
Ask whether the attribute results from expansion of attribute defaults
|
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(String uri)
Set the system id of this node.
|
compareOrder, comparePosition, equals, getAttributeValue, getAttributeValue, getBaseURI, getConfiguration, getDeclaredNamespaces, getNamePool, getNodeNumber, getPublicId, getSystemId, getTree, getTreeInfo, hasChildNodes, head, isAncestorOrSelf, isSameNodeInfo, iterate, iterateAxis, iterateAxis, saveLocation, setParentNodepublic TinyAttributeImpl(TinyTree tree, int nodeNr)
public void setSystemId(String uri)
TinyNodeImplsetSystemId in interface SourcesetSystemId in class TinyNodeImplpublic NodeInfo getParent()
getParent in interface NodeInfogetParent in class TinyNodeImplpublic NodeInfo getRoot()
getRoot in interface NodeInfogetRoot in class TinyNodeImplprotected long getSequenceNumber()
getSequenceNumber in class TinyNodeImplpublic final int getNodeKind()
Typepublic CharSequence getStringValueCS()
getStringValueCS in interface ItemgetStringValueCS in class TinyNodeImplItem.getStringValue()public String getStringValue()
Item.getStringValueCS()public int getFingerprint()
getFingerprint in interface FingerprintedNodegetFingerprint in class TinyNodeImplpublic int getNameCode()
getNameCode in interface FingerprintedNodegetNameCode in class TinyNodeImplpublic String getPrefix()
getPrefix in interface NodeInfogetPrefix in class TinyNodeImplpublic String getDisplayName()
getDisplayName in interface NodeInfogetDisplayName in class TinyNodeImplpublic String getLocalPart()
getLocalPart in interface NodeInfogetLocalPart in class TinyNodeImplpublic final String getURI()
getURI in interface NodeInfogetURI in class TinyNodeImplpublic SchemaType getSchemaType()
Types derived from a DTD are not reflected in the result of this method.
getSchemaType in interface NodeInfogetSchemaType in class TinyNodeImplpublic AtomicSequence atomize() throws XPathException
XPathException - if the node has no typed value, for example if
it is an element node with element-only contentpublic void generateId(FastStringBuffer buffer)
generateId in interface NodeInfogenerateId in class TinyNodeImplbuffer - Buffer to contain the generated ID valuepublic void copy(Receiver out, int copyOptions, Location 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 CopyOptionslocationId - If non-null, identifies the location of the instruction
that requested this copy. If zero, indicates that the location information
is not availableXPathException - if any downstream error occurspublic int getLineNumber()
getLineNumber in interface SourceLocatorgetLineNumber in interface LocationgetLineNumber in interface NodeInfogetLineNumber in interface LocatorgetLineNumber in class TinyNodeImplpublic int getColumnNumber()
getColumnNumber in interface SourceLocatorgetColumnNumber in interface LocationgetColumnNumber in interface NodeInfogetColumnNumber in interface LocatorgetColumnNumber in class TinyNodeImplpublic boolean isNilled()
isNilled in interface NodeInfoisNilled in class TinyNodeImplpublic boolean isId()
isId in interface NodeInfoisId in class TinyNodeImplpublic boolean isIdref()
isIdref in interface NodeInfoisIdref in class TinyNodeImplpublic boolean isDefaultedAttribute()
FeatureKeys.EXPAND_ATTRIBUTE_DEFAULTS and FeatureKeys.MARK_DEFAULTED_ATTRIBUTES
are set.public int hashCode()
hashCode in interface NodeInfohashCode in class TinyNodeImplCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.