|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.xml.dom4j.Dom4jXmlObject
public class Dom4jXmlObject
A dom4j (http://www.dom4j.org) implementation of XmlObject.
| Constructor Summary | |
|---|---|
Dom4jXmlObject(Node node)
Constructs a new xml object based on a dom4j Node. |
|
| Method Summary | |
|---|---|
boolean |
canCompileXpath()
Return true since dom4j supports xml compilation. |
XmlXPathExpression |
compile(String path)
Compiles the given xpath expression using dom4j DefaultXPath. |
String |
getName()
Returns the dom4j node name. |
Node |
getNode()
Returns the dom4j Node that this xml object wraps. |
String |
getValue()
Returns the dom4j node text. |
XmlObject[] |
selectPath(String path)
Returns a list of xml objects matching the given xpath expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Dom4jXmlObject(Node node)
Node.
node - The node to construct the dom4j xml object with| Method Detail |
|---|
public String getName()
getName in interface XmlObjectpublic String getValue()
getValue in interface XmlObjectpublic XmlObject[] selectPath(String path)
XmlObject
selectPath in interface XmlObjectpath - The xpath expression
public boolean canCompileXpath()
true since dom4j supports xml compilation.
canCompileXpath in interface XmlObjectpublic XmlXPathExpression compile(String path)
DefaultXPath.
compile in interface XmlObjectpath - The xpath expression
public Node getNode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||