|
|||||||||
| 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 java.util.Map |
attributes
|
protected org.dom4j.Node |
element
|
| Constructor Summary | |
|---|---|
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)
|
| Method Summary | |
|---|---|
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 |
| 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 java.util.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)
private Dom4jNodeImpl()
| Method Detail |
|---|
public java.lang.String name()
name in interface DVSLNodepublic 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)
DVSLNode
selectSingleNode in interface DVSLNodepublic DVSLNode get(java.lang.String xpath)
get in interface DVSLNodepublic java.lang.String value()
DVSLNode
value in interface DVSLNodepublic java.lang.Object valueOf(java.lang.String xpath)
DVSLNode
valueOf in interface DVSLNodepublic java.lang.String toString()
DVSLNode
toString in interface DVSLNodetoString in class java.lang.Objectpublic java.util.List children()
DVSLNode
children in interface DVSLNodepublic java.lang.String copy(java.util.List nodes)
copy in interface DVSLNodepublic java.lang.String copy()
DVSLNode
copy in interface DVSLNode
private void copy(org.dom4j.Node node,
java.io.Writer writer)
public java.lang.String render()
public java.lang.String attrib(java.lang.String name)
DVSLNode
attrib in interface DVSLNodepublic java.lang.Object getNodeImpl()
DVSLNode
getNodeImpl in interface DVSLNodepublic java.util.Map getAttribMap()
getAttribMap in interface DVSLNodeprivate DVSLNode makeDVSLNode(org.dom4j.Node n)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||