|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.icl.saxon.om.AbstractNode | +--com.icl.saxon.tree.NodeImpl | +--com.icl.saxon.tree.AttributeImpl
A node in the XML parse tree representing an attribute. Note that this is generated only "on demand", when the attribute is selected by a select pattern.
Fields inherited from class com.icl.saxon.tree.NodeImpl |
emptyArray, index, parent |
Fields inherited from class com.icl.saxon.om.AbstractNode |
NODE_LETTER |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from interface com.icl.saxon.om.NodeInfo |
ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, NODE, NONE, NUMBER_OF_TYPES, PI, ROOT, TEXT |
Constructor Summary | |
AttributeImpl(ElementImpl element,
int index)
Construct an Attribute node for the n'th attribute of a given element |
Method Summary | |
void |
copy(Outputter out)
Copy this node to a given outputter |
java.lang.String |
generateId()
Get sequential key. |
int |
getNameCode()
Get the name code, which enables the name to be located in the name pool |
NodeImpl |
getNextInDocument(NodeImpl anchor)
Get the next node in document order (skipping attributes) |
org.w3c.dom.Node |
getNextSibling()
Get next sibling - not defined for attributes |
short |
getNodeType()
Return the type of node. |
NodeImpl |
getPreviousInDocument()
Get the previous node in document order (skipping attributes) |
org.w3c.dom.Node |
getPreviousSibling()
Get previous sibling - not defined for attributes |
protected long |
getSequenceNumber()
Get the node sequence number (in document order). |
java.lang.String |
getStringValue()
Return the character value of the node. |
boolean |
isSameNode(NodeInfo other)
Determine whether this is the same node as another node |
Methods inherited from class com.icl.saxon.tree.NodeImpl |
compareOrder, getAttributes, getAttributeValue, getAttributeValue, getBaseURI, getChildNodes, getDisplayName, getDocumentElement, getDocumentRoot, getEnumeration, getFingerprint, getFirstChild, getLastChild, getLineNumber, getLocalName, getNamePool, getOriginatingNode, getParent, getPrefix, getSystemId, getURI, hasAttributes, hasChildNodes, outputNamespaceNodes, removeNode, setSystemId |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface org.w3c.dom.Attr |
getName, getOwnerElement, getSpecified, getValue, setValue |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Constructor Detail |
public AttributeImpl(ElementImpl element, int index)
element
- The element containing the relevant attributeindex
- The index position of the attribute starting at zerosequenceBase
- The sequence number to be allocated to the first attribute node. Note
that attributes appear in document order AFTER namespace nodes, so we can't deduce
this from the index alone.Method Detail |
public int getNameCode()
getNameCode
in class NodeImpl
com.icl.saxon.om.NodeInfo
allocate
,
getFingerprint
public boolean isSameNode(NodeInfo other)
isSameNode
in class NodeImpl
protected long getSequenceNumber()
getSequenceNumber
in class NodeImpl
public final short getNodeType()
getNodeType
in interface org.w3c.dom.Node
public java.lang.String getStringValue()
public org.w3c.dom.Node getNextSibling()
getNextSibling
in interface org.w3c.dom.Node
getNextSibling
in class NodeImpl
com.icl.saxon.tree.NodeImpl
public org.w3c.dom.Node getPreviousSibling()
getPreviousSibling
in interface org.w3c.dom.Node
getPreviousSibling
in class NodeImpl
com.icl.saxon.tree.NodeImpl
public NodeImpl getPreviousInDocument()
getPreviousInDocument
in class NodeImpl
com.icl.saxon.tree.NodeImpl
public NodeImpl getNextInDocument(NodeImpl anchor)
getNextInDocument
in class NodeImpl
com.icl.saxon.tree.NodeImpl
anchor:
- the scan stops when it reaches a node that is not a descendant of the specified
anchor nodepublic java.lang.String generateId()
generateId
in class NodeImpl
com.icl.saxon.tree.NodeImpl
public void copy(Outputter out) throws javax.xml.transform.TransformerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |