Wraps dom4j elements, allowing them to exist in a
non-hierarchical structure.
accept
public void accept(Visitor visitor)
add
public void add(Attribute attribute)
add
public void add(CDATA cdata)
add
public void add(Comment comment)
add
public void add(Element element)
add
public void add(Entity entity)
add
public void add(Namespace namespace)
add
public void add(Node node)
add
public void add(ProcessingInstruction processingInstruction)
add
public void add(Text text)
addAttribute
public Element addAttribute(QName attrName,
String text)
addAttribute
public Element addAttribute(String attrName,
String text)
addCDATA
public Element addCDATA(String text)
addComment
public Element addComment(String text)
addElement
public Element addElement(QName qName)
addElement
public Element addElement(String name)
addElement
public Element addElement(String name,
String text)
addEntity
public Element addEntity(String name,
String text)
addNamespace
public Element addNamespace(String prefix,
String uri)
addProcessingInstruction
public Element addProcessingInstruction(String target,
Map data)
addProcessingInstruction
public Element addProcessingInstruction(String target,
String text)
addText
public Element addText(String text)
additionalNamespaces
public List additionalNamespaces()
appendAttributes
public void appendAttributes(Element element)
appendContent
public void appendContent(Branch branch)
asXML
public String asXML()
asXPathResult
public Node asXPathResult(Element element)
attribute
public Attribute attribute(QName qName)
attribute
public Attribute attribute(String name)
attribute
public Attribute attribute(int i)
attributeCount
public int attributeCount()
attributeIterator
public Iterator attributeIterator()
attributeValue
public String attributeValue(QName qName)
attributeValue
public String attributeValue(QName qName,
String defaultValue)
attributeValue
public String attributeValue(String name)
attributeValue
public String attributeValue(String name,
String defaultValue)
attributes
public List attributes()
clearContent
public void clearContent()
clone
public Object clone()
content
public List content()
createCopy
public Element createCopy()
createCopy
public Element createCopy(QName qName)
createCopy
public Element createCopy(String name)
createXPath
public XPath createXPath(String xpath)
throws InvalidXPathException
declaredNamespaces
public List declaredNamespaces()
detach
public Node detach()
element
public Element element(QName qName)
element
public Element element(String name)
elementByID
public Element elementByID(String id)
elementIterator
public Iterator elementIterator()
elementIterator
public Iterator elementIterator(QName qName)
elementIterator
public Iterator elementIterator(String name)
elementText
public String elementText(QName qName)
elementText
public String elementText(String name)
elementTextTrim
public String elementTextTrim(QName qName)
elementTextTrim
public String elementTextTrim(String name)
elements
public List elements()
elements
public List elements(QName qName)
elements
public List elements(String name)
equals
public boolean equals(Object other)
getData
public Object getData()
getDocument
public Document getDocument()
getElement
public Element getElement()
getName
public String getName()
getNamespace
public Namespace getNamespace()
getNamespaceForPrefix
public Namespace getNamespaceForPrefix(String s)
getNamespaceForURI
public Namespace getNamespaceForURI(String s)
getNamespacePrefix
public String getNamespacePrefix()
getNamespaceURI
public String getNamespaceURI()
getNamespacesForURI
public List getNamespacesForURI(String s)
getNodeType
public short getNodeType()
getNodeTypeName
public String getNodeTypeName()
getParent
public Element getParent()
getPath
public String getPath()
getPath
public String getPath(Element element)
getQName
public QName getQName()
getQName
public QName getQName(String s)
getQualifiedName
public String getQualifiedName()
getStringValue
public String getStringValue()
getText
public String getText()
getTextTrim
public String getTextTrim()
getUniquePath
public String getUniquePath()
getUniquePath
public String getUniquePath(Element element)
getXPathResult
public Node getXPathResult(int i)
hasContent
public boolean hasContent()
hasMixedContent
public boolean hasMixedContent()
hashCode
public int hashCode()
indexOf
public int indexOf(Node node)
isReadOnly
public boolean isReadOnly()
isRootElement
public boolean isRootElement()
isTextOnly
public boolean isTextOnly()
matches
public boolean matches(String xpath)
node
public Node node(int i)
nodeCount
public int nodeCount()
nodeIterator
public Iterator nodeIterator()
normalize
public void normalize()
numberValueOf
public Number numberValueOf(String xpath)
processingInstruction
public ProcessingInstruction processingInstruction(String name)
processingInstructions
public List processingInstructions()
processingInstructions
public List processingInstructions(String name)
remove
public boolean remove(Attribute attribute)
remove
public boolean remove(CDATA cdata)
remove
public boolean remove(Comment comment)
remove
public boolean remove(Element element)
remove
public boolean remove(Entity entity)
remove
public boolean remove(Namespace namespace)
remove
public boolean remove(Node node)
remove
public boolean remove(ProcessingInstruction processingInstruction)
remove
public boolean remove(Text text)
removeProcessingInstruction
public boolean removeProcessingInstruction(String name)
selectNodes
public List selectNodes(String xpath)
selectNodes
public List selectNodes(String xpath,
String comparison)
selectNodes
public List selectNodes(String xpath,
String comparison,
boolean removeDups)
selectObject
public Object selectObject(String xpath)
selectSingleNode
public Node selectSingleNode(String xpath)
setAttributeValue
public void setAttributeValue(QName qName,
String value)
setAttributeValue
public void setAttributeValue(String name,
String value)
setAttributes
public void setAttributes(List list)
setContent
public void setContent(List list)
setData
public void setData(Object data)
setDocument
public void setDocument(Document document)
setName
public void setName(String name)
setParent
public void setParent(Element parent)
setProcessingInstructions
public void setProcessingInstructions(List list)
setQName
public void setQName(QName qName)
setText
public void setText(String text)
supportsParent
public boolean supportsParent()
toString
public String toString()
valueOf
public String valueOf(String xpath)
write
public void write(Writer writer)
throws IOException