org.dom4j.tree
public class: DefaultEntity [javadoc |
source]
java.lang.Object
org.dom4j.tree.AbstractNode
org.dom4j.tree.AbstractEntity
org.dom4j.tree.FlyweightEntity
org.dom4j.tree.DefaultEntity
All Implemented Interfaces:
Entity, Cloneable, Node, Serializable
Direct Known Subclasses:
DOMEntityReference
DefaultEntity is the default Entity implementation. It is a
doubly linked node which supports the parent relationship and can be modified
in place.
- author:
< - a href="mailto:jstrachan@apache.org">James Strachan
- version:
$ - Revision: 1.11 $
| Constructor: |
public DefaultEntity(String name) {
super(name);
}
Creates the Entity with the specified name Parameters:
name -
is the name of the entity
|
public DefaultEntity(String name,
String text) {
super(name, text);
}
Creates the Entity with the specified name and text. Parameters:
name -
is the name of the entity
text -
is the text of the entity
|
public DefaultEntity(Element parent,
String name,
String text) {
super(name, text);
this.parent = parent;
}
Creates the Entity with the specified name and text. Parameters:
parent -
is the parent element
name -
is the name of the entity
text -
is the text of the entity
|
| Methods from org.dom4j.tree.AbstractNode: |
|---|
|
asXPathResult, clone, createPattern, createXPath, createXPathFilter, createXPathResult, detach, getDocument, getDocumentFactory, getName, getNodeType, getNodeTypeName, getParent, getPath, getStringValue, getText, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, setText, supportsParent, valueOf, write |