public class Dom4jNodeImpl extends java.lang.Object implements DVSLNode
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map |
attributes |
protected org.dom4j.Node |
element |
| Modifier | Constructor and Description |
|---|---|
private |
Dom4jNodeImpl() |
|
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) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
attrib(java.lang.String name)
returns attribute
|
java.lang.String |
attribute(java.lang.String attribute)
returns a specificed attributeattribute
|
java.util.List |
children()
returns a list of all children of the current
node
|
java.lang.String |
copy()
renders a deep copy of the XML tree
below the current node to the output
|
java.lang.String |
copy(java.util.List nodes)
assumes a list of DVSLNodes
|
private void |
copy(org.dom4j.Node node,
java.io.Writer writer) |
DVSLNode |
get(java.lang.String xpath) |
java.util.Map |
getAttribMap() |
java.lang.Object |
getNodeImpl()
returns the object corresponding to the node
in the implementaion that we are using.
|
private DVSLNode |
makeDVSLNode(org.dom4j.Node n)
will recast all of this later
|
java.lang.String |
name()
returns the name of the node
|
java.lang.String |
render() |
java.util.List |
selectNodes(java.lang.String xpath)
returns a list of nodes that satisfy
the xpath
|
DVSLNode |
selectSingleNode(java.lang.String xpath)
returns a single node that satisfies
the xpath
|
java.lang.String |
toString()
returns the 'value' of the node
|
java.lang.String |
value()
returns the 'value' of the node
|
java.lang.Object |
valueOf(java.lang.String xpath)
returns the value of the XPAth
expression
|
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)
private Dom4jNodeImpl()
public java.lang.String name()
public java.lang.String attribute(java.lang.String attribute)
public java.util.List selectNodes(java.lang.String xpath)
selectNodes in interface DVSLNodepublic DVSLNode selectSingleNode(java.lang.String xpath)
DVSLNodeselectSingleNode in interface DVSLNodepublic java.lang.String value()
DVSLNodepublic java.lang.Object valueOf(java.lang.String xpath)
DVSLNodepublic java.lang.String toString()
DVSLNodepublic java.util.List children()
DVSLNodepublic java.lang.String copy(java.util.List nodes)
public java.lang.String copy()
DVSLNodeprivate void copy(org.dom4j.Node node,
java.io.Writer writer)
public java.lang.String render()
public java.lang.String attrib(java.lang.String name)
DVSLNodepublic java.lang.Object getNodeImpl()
DVSLNodegetNodeImpl in interface DVSLNodepublic java.util.Map getAttribMap()
getAttribMap in interface DVSLNodeprivate DVSLNode makeDVSLNode(org.dom4j.Node n)
Copyright (c) 2001-2007 Apache Software Foundation