|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectNodeImpl
ParentNodeImpl
public abstract class ParentNodeImpl
Represents any node that can have children. Important note: when comparing for a Saxon upgrade, this code is kind of a mix between net.sf.saxon.tinytree.TinyParentNodeImpl and net.sf.saxon.tree.ParentNodeImpl.
Field Summary | |
---|---|
(package private) int |
childNum
|
Fields inherited from class NodeImpl |
---|
document, nameCode, nextSibNum, NODE_LETTER, nodeNum, parentNum, prevSibNum |
Fields inherited from interface NodeInfo |
---|
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES |
Fields inherited from interface ValueRepresentation |
---|
EMPTY_VALUE_ARRAY |
Constructor Summary | |
---|---|
ParentNodeImpl()
|
Method Summary | |
---|---|
AxisIterator |
enumerateChildren(NodeTest test)
|
NodeInfo |
getFirstChild()
Get first child (DOM method) |
NodeInfo |
getLastChild()
The last child of this Node, or null if none. |
String |
getStringValue()
Return the string-value of the node, that is, the concatenation of the character content of all descendent elements and text nodes. |
CharSequence |
getStringValueCS()
Get the value of the item as a CharSequence. |
boolean |
hasChildNodes()
Determine whether the node has any children. |
AxisIterator |
iterateAxis(byte axisNumber)
Return an enumeration over the nodes reached by the given axis from this node |
AxisIterator |
iterateAxis(byte axisNumber,
NodeTest nodeTest)
Return an enumeration over the nodes reached by the given axis from this node |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface NodeInfo |
---|
copy, getNodeKind |
Field Detail |
---|
int childNum
Constructor Detail |
---|
public ParentNodeImpl()
Method Detail |
---|
public final boolean hasChildNodes()
NodeImpl
hasChildNodes
in interface NodeInfo
hasChildNodes
in class NodeImpl
true
if the node has any children,
false
if the node has no children.public final AxisIterator enumerateChildren(NodeTest test)
public AxisIterator iterateAxis(byte axisNumber)
NodeImpl
iterateAxis
in interface NodeInfo
iterateAxis
in class NodeImpl
axisNumber
- The axis to be iterated over
public AxisIterator iterateAxis(byte axisNumber, NodeTest nodeTest)
NodeImpl
iterateAxis
in interface NodeInfo
iterateAxis
in class NodeImpl
axisNumber
- The axis to be iterated overnodeTest
- A pattern to be matched by the returned nodes
public NodeInfo getFirstChild()
getFirstChild
in class NodeImpl
public NodeInfo getLastChild()
getLastChild
in class NodeImpl
public String getStringValue()
public CharSequence getStringValueCS()
NodeImpl
getStringValueCS
in interface Item
getStringValueCS
in interface ValueRepresentation
getStringValueCS
in class NodeImpl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |