Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.commons.jxpath.ri.model.NodePointer
org.apache.commons.jxpath.ri.model.dom.DOMNodePointer
public class DOMNodePointer
extends NodePointer
Field Summary | |
static String | |
static String |
Fields inherited from class org.apache.commons.jxpath.ri.model.NodePointer | |
UNKNOWN_NAMESPACE , WHOLE_COLLECTION , index , locale , parent |
Constructor Summary | |
| |
| |
|
Method Summary | |
String |
|
NodeIterator |
|
NodeIterator |
|
int |
|
NodePointer |
|
NodePointer |
|
NodePointer |
|
boolean |
|
Object | |
String | |
Object | |
protected String | |
int | |
static String |
|
QName |
|
String | |
static String |
|
String |
|
Pointer |
|
static String |
|
Object |
|
int |
|
boolean |
|
boolean | |
boolean |
|
boolean |
|
NodeIterator | |
NodePointer |
|
void |
|
void |
|
static boolean | |
boolean |
Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer | |
asPath , attributeIterator , childIterator , clone , compareChildNodePointers , compareTo , createAttribute , createChild , createChild , createPath , createPath , getBaseValue , getDefaultNamespaceURI , getImmediateNode , getImmediateParentPointer , getImmediateValuePointer , getIndex , getLength , getLocale , getName , getNamespaceResolver , getNamespaceURI , getNamespaceURI , getNode , getNodeValue , getParent , getPointerByID , getPointerByKey , getRootNode , getValue , getValuePointer , isActual , isAttribute , isCollection , isContainer , isDefaultNamespace , isLanguage , isLeaf , isNode , isRoot , namespaceIterator , namespacePointer , newChildNodePointer , newNodePointer , printPointerChain , remove , setAttribute , setIndex , setNamespaceResolver , setValue , testNode , toString |
public static final String XMLNS_NAMESPACE_URI
public static final String XML_NAMESPACE_URI
public DOMNodePointer(Node node, Locale locale)
public DOMNodePointer(Node node, Locale locale, String id)
public NodeIterator attributeIterator(QName name)
- Overrides:
- attributeIterator in interface NodePointer
public NodeIterator childIterator(NodeTest test, boolean reverse, NodePointer startWith)
- Overrides:
- childIterator in interface NodePointer
public int compareChildNodePointers(NodePointer pointer1, NodePointer pointer2)
- Overrides:
- compareChildNodePointers in interface NodePointer
public NodePointer createAttribute(JXPathContext context, QName name)
- Overrides:
- createAttribute in interface NodePointer
public NodePointer createChild(JXPathContext context, QName name, int index)
- Overrides:
- createChild in interface NodePointer
public NodePointer createChild(JXPathContext context, QName name, int index, Object value)
- Overrides:
- createChild in interface NodePointer
public boolean equals(Object object)
public String getDefaultNamespaceURI()
- Overrides:
- getDefaultNamespaceURI in interface NodePointer
protected String getLanguage()
public static String getLocalName(Node node)
public static String getNamespaceURI(Node node)
public String getNamespaceURI(String prefix)
- Overrides:
- getNamespaceURI in interface NodePointer
public Pointer getPointerByID(JXPathContext context, String id)
Locates a node by ID.
- Overrides:
- getPointerByID in interface NodePointer
public static String getPrefix(Node node)
public int hashCode()
public boolean isLanguage(String lang)
Returns true if the xml:lang attribute for the current node or its parent has the specified prefix lang. If no node has this prefix, callssuper.isLanguage(lang)
.
- Overrides:
- isLanguage in interface NodePointer
public NodeIterator namespaceIterator()
- Overrides:
- namespaceIterator in interface NodePointer
public NodePointer namespacePointer(String prefix)
- Overrides:
- namespacePointer in interface NodePointer
public void setValue(Object value)
Sets contents of the node to the specified value. If the value is a String, the contents of the node are replaced with this text. If the value is an Element or Document, the children of the node are replaced with the children of the passed node.
- Overrides:
- setValue in interface NodePointer