public class EnumPointer extends CollectionCGINPointer
| Modifier | Constructor and Description |
|---|---|
protected |
EnumPointer(org.apache.commons.jxpath.ri.model.NodePointer parent,
org.apache.commons.jxpath.ri.QName name,
Enum<? extends Enum<?>> object)
Creates a pointer to the given enum.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.jxpath.ri.model.NodeIterator |
childIterator(org.apache.commons.jxpath.ri.compiler.NodeTest nodeTest,
boolean reverse,
org.apache.commons.jxpath.ri.model.NodePointer startWith)
Gets an iterator that visits just the intValue of this enum
if that passes the given test, in the given order, starting from the given field.
|
Object |
getImmediateNode()
Gets the enum.
|
void |
setValue(Object value)
Sets this pointer so that it refers to the given enum.
|
isCollection, isLeafcompareChildNodePointers, createChild, getBaseValue, getLength, getNameasPath, attributeIterator, clone, compareTo, createAttribute, createChild, createChild, createPath, createPath, escape, getAbstractFactory, getDefaultNamespaceURI, getImmediateParentPointer, getImmediateValuePointer, getIndex, getLocale, getNamespaceResolver, getNamespaceURI, getNamespaceURI, getNode, getNodeSetByKey, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isActual, isAttribute, isContainer, isDefaultNamespace, isLanguage, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, remove, setAttribute, setIndex, setNamespaceResolver, testNode, toStringprotected EnumPointer(org.apache.commons.jxpath.ri.model.NodePointer parent,
org.apache.commons.jxpath.ri.QName name,
Enum<? extends Enum<?>> object)
parent - pointer to the surrounding nodename - name of the new nodeobject - value of the new nodepublic org.apache.commons.jxpath.ri.model.NodeIterator childIterator(org.apache.commons.jxpath.ri.compiler.NodeTest nodeTest,
boolean reverse,
org.apache.commons.jxpath.ri.model.NodePointer startWith)
childIterator in class org.apache.commons.jxpath.ri.model.NodePointernodeTest - test that must pass to be visited by the iteratorreverse - order in which to visit componentsstartWith - component at which to startpublic Object getImmediateNode()
getImmediateNode in class org.apache.commons.jxpath.ri.model.NodePointerpublic void setValue(Object value)
setValue in interface org.apache.commons.jxpath.PointersetValue in class org.apache.commons.jxpath.ri.model.NodePointervalue - Object