|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.adaptx.xpath.XPathNode
org.exolab.adaptx.xslt.dom.ProcessingInstruction
public class ProcessingInstruction
A class representing a Processing Instruction
Field Summary | |
---|---|
static java.lang.String |
LOCATION_PROPERTY
|
Fields inherited from class org.exolab.adaptx.xpath.XPathNode |
---|
ATTRIBUTE, COMMENT, ELEMENT, NAMESPACE, PI, ROOT, TEXT |
Constructor Summary | |
---|---|
ProcessingInstruction(java.lang.String target,
java.lang.String value)
Creates a new ProcessingInstruction |
Method Summary | |
---|---|
java.lang.String |
getAttribute(java.lang.String uri,
java.lang.String local)
Returns the value of the named attribute, or null if the node has no such attribute. |
XPathNode |
getFirstAttribute()
Returns the first in a list of attribute nodes, or null if the node has no attributes. |
XPathNode |
getFirstChild()
Returns the first child node of this node, or null if the node has no children. |
XPathNode |
getFirstNamespace()
Returns the first in a list of namespace nodes, or null if the node has no namespaces. |
java.lang.String |
getLocalName()
Returns the local name of the node. |
java.lang.String |
getNamespacePrefix(java.lang.String uri)
Returns the namespace prefix associated with this namespace URI, as defined in the context of this node. |
java.lang.String |
getNamespaceURI()
Returns the namespace URI the node. |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Returns the namespace URI associated with this namespace prefix, as defined in the context of this node. |
XPathNode |
getNext()
Returns the next sibling node in document order, or null if this node is the last node. |
int |
getNodeType()
Returns the type of this node. |
XPathNode |
getParentNode()
Returns the parent node, or null if the node has no parent. |
XPathNode |
getPrevious()
Returns the previous sibling node in document order, or null if this node is the first node. |
java.lang.Object |
getProperty(java.lang.String name)
Retrieves the property with the given name. |
XPathNode |
getRootNode()
Returns the root node. |
java.lang.String |
getStringValue()
Returns the string value of the node. |
boolean |
hasChildNodes()
Returns true if this node has any child nodes. |
void |
setProperty(java.lang.String name,
java.lang.Object obj)
Retrieves the property with the given name. |
void |
setTarget(java.lang.String target)
Sets the target for this XPathNode |
void |
setValue(java.lang.String value)
Sets the value for this XPathNode |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LOCATION_PROPERTY
Constructor Detail |
---|
public ProcessingInstruction(java.lang.String target, java.lang.String value)
target
- the target for this PI. [May be null]value
- the value of this PI. [May be null]Method Detail |
---|
public int getNodeType()
public java.lang.String getStringValue()
public void setValue(java.lang.String value)
public void setTarget(java.lang.String target)
public XPathNode getFirstChild()
getFirstChild
in class XPathNode
public boolean hasChildNodes()
hasChildNodes
in class XPathNode
public XPathNode getNext()
getNext
in class XPathNode
public XPathNode getPrevious()
getPrevious
in class XPathNode
public XPathNode getFirstAttribute()
getFirstAttribute
in class XPathNode
public java.lang.String getAttribute(java.lang.String uri, java.lang.String local)
getAttribute
in class XPathNode
uri
- The attribute's namespace URI, or nulllocal
- The attribute's local name
public XPathNode getFirstNamespace()
getFirstNamespace
in class XPathNode
public java.lang.String getLocalName()
getLocalName
in class XPathNode
public java.lang.String getNamespaceURI()
getNamespaceURI
in class XPathNode
public XPathNode getParentNode()
getParentNode
in class XPathNode
public java.lang.Object getProperty(java.lang.String name)
name
- the name of the property to return.setProperty(java.lang.String, java.lang.Object)
public XPathNode getRootNode()
getRootNode
in class XPathNode
public java.lang.String getNamespaceURI(java.lang.String prefix)
getNamespaceURI
in class XPathNode
prefix
- The namespace prefix
public java.lang.String getNamespacePrefix(java.lang.String uri)
getNamespacePrefix
in class XPathNode
uri
- The namespace URI
public void setProperty(java.lang.String name, java.lang.Object obj)
name
- the name of the property to return.setProperty(java.lang.String, java.lang.Object)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |