|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.dvsl.dom4j.Dom4jNodeImpl
public class Dom4jNodeImpl
wrapper class for dom4j nodes to implement the DVSLNode interface for template use
Field Summary | |
---|---|
protected Map |
attributes
|
protected org.dom4j.Node |
element
|
Constructor Summary | |
---|---|
Dom4jNodeImpl(org.dom4j.Attribute e)
|
|
Dom4jNodeImpl(org.dom4j.CDATA e)
|
|
Dom4jNodeImpl(org.dom4j.Comment e)
|
|
Dom4jNodeImpl(org.dom4j.Document e)
|
|
Dom4jNodeImpl(org.dom4j.Element e)
this is a bit yecchy - need to revamp |
|
Dom4jNodeImpl(org.dom4j.Text e)
|
Method Summary | |
---|---|
String |
attrib(String name)
returns attribute |
String |
attribute(String attribute)
returns a specificed attributeattribute |
List |
children()
returns a list of all children of the current node |
String |
copy()
renders a deep copy of the XML tree below the current node to the output |
String |
copy(List nodes)
assumes a list of DVSLNodes |
DVSLNode |
get(String xpath)
|
Map |
getAttribMap()
|
Object |
getNodeImpl()
returns the object corresponding to the node in the implementaion that we are using. |
String |
name()
returns the name of the node |
String |
render()
|
List |
selectNodes(String xpath)
returns a list of nodes that satisfy the xpath |
DVSLNode |
selectSingleNode(String xpath)
returns a single node that satisfies the xpath |
String |
toString()
returns the 'value' of the node |
String |
value()
returns the 'value' of the node |
Object |
valueOf(String xpath)
returns the value of the XPAth expression |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected org.dom4j.Node element
protected Map attributes
Constructor Detail |
---|
public Dom4jNodeImpl(org.dom4j.Element e)
public Dom4jNodeImpl(org.dom4j.Document e)
public Dom4jNodeImpl(org.dom4j.Text e)
public Dom4jNodeImpl(org.dom4j.Attribute e)
public Dom4jNodeImpl(org.dom4j.Comment e)
public Dom4jNodeImpl(org.dom4j.CDATA e)
Method Detail |
---|
public String name()
name
in interface DVSLNode
public String attribute(String attribute)
public List selectNodes(String xpath)
selectNodes
in interface DVSLNode
public DVSLNode selectSingleNode(String xpath)
DVSLNode
selectSingleNode
in interface DVSLNode
public DVSLNode get(String xpath)
get
in interface DVSLNode
public String value()
DVSLNode
value
in interface DVSLNode
public Object valueOf(String xpath)
DVSLNode
valueOf
in interface DVSLNode
public String toString()
DVSLNode
toString
in interface DVSLNode
toString
in class Object
public List children()
DVSLNode
children
in interface DVSLNode
public String copy(List nodes)
copy
in interface DVSLNode
public String copy()
DVSLNode
copy
in interface DVSLNode
public String render()
public String attrib(String name)
DVSLNode
attrib
in interface DVSLNode
public Object getNodeImpl()
DVSLNode
getNodeImpl
in interface DVSLNode
public Map getAttribMap()
getAttribMap
in interface DVSLNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |