public class ElementWrapper extends Object implements org.dom4j.Element, Serializable
| Constructor and Description |
|---|
ElementWrapper(org.dom4j.Element element) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(org.dom4j.Visitor visitor) |
void |
add(org.dom4j.Attribute attribute) |
void |
add(org.dom4j.CDATA cdata) |
void |
add(org.dom4j.Comment comment) |
void |
add(org.dom4j.Element element) |
void |
add(org.dom4j.Entity entity) |
void |
add(org.dom4j.Namespace namespace) |
void |
add(org.dom4j.Node node) |
void |
add(org.dom4j.ProcessingInstruction processingInstruction) |
void |
add(org.dom4j.Text text) |
org.dom4j.Element |
addAttribute(org.dom4j.QName attrName,
String text) |
org.dom4j.Element |
addAttribute(String attrName,
String text) |
org.dom4j.Element |
addCDATA(String text) |
org.dom4j.Element |
addComment(String text) |
org.dom4j.Element |
addElement(org.dom4j.QName qName) |
org.dom4j.Element |
addElement(String name) |
org.dom4j.Element |
addElement(String name,
String text) |
org.dom4j.Element |
addEntity(String name,
String text) |
List |
additionalNamespaces() |
org.dom4j.Element |
addNamespace(String prefix,
String uri) |
org.dom4j.Element |
addProcessingInstruction(String target,
Map data) |
org.dom4j.Element |
addProcessingInstruction(String target,
String text) |
org.dom4j.Element |
addText(String text) |
void |
appendAttributes(org.dom4j.Element element) |
void |
appendContent(org.dom4j.Branch branch) |
String |
asXML() |
org.dom4j.Node |
asXPathResult(org.dom4j.Element element) |
org.dom4j.Attribute |
attribute(int i) |
org.dom4j.Attribute |
attribute(org.dom4j.QName qName) |
org.dom4j.Attribute |
attribute(String name) |
int |
attributeCount() |
Iterator |
attributeIterator() |
List |
attributes() |
String |
attributeValue(org.dom4j.QName qName) |
String |
attributeValue(org.dom4j.QName qName,
String defaultValue) |
String |
attributeValue(String name) |
String |
attributeValue(String name,
String defaultValue) |
void |
clearContent() |
Object |
clone() |
List |
content() |
org.dom4j.Element |
createCopy() |
org.dom4j.Element |
createCopy(org.dom4j.QName qName) |
org.dom4j.Element |
createCopy(String name) |
org.dom4j.XPath |
createXPath(String xpath) |
List |
declaredNamespaces() |
org.dom4j.Node |
detach() |
org.dom4j.Element |
element(org.dom4j.QName qName) |
org.dom4j.Element |
element(String name) |
org.dom4j.Element |
elementByID(String id) |
Iterator |
elementIterator() |
Iterator |
elementIterator(org.dom4j.QName qName) |
Iterator |
elementIterator(String name) |
List |
elements() |
List |
elements(org.dom4j.QName qName) |
List |
elements(String name) |
String |
elementText(org.dom4j.QName qName) |
String |
elementText(String name) |
String |
elementTextTrim(org.dom4j.QName qName) |
String |
elementTextTrim(String name) |
boolean |
equals(Object other) |
Object |
getData() |
org.dom4j.Document |
getDocument() |
org.dom4j.Element |
getElement() |
String |
getName() |
org.dom4j.Namespace |
getNamespace() |
org.dom4j.Namespace |
getNamespaceForPrefix(String s) |
org.dom4j.Namespace |
getNamespaceForURI(String s) |
String |
getNamespacePrefix() |
List |
getNamespacesForURI(String s) |
String |
getNamespaceURI() |
short |
getNodeType() |
String |
getNodeTypeName() |
org.dom4j.Element |
getParent() |
String |
getPath() |
String |
getPath(org.dom4j.Element element) |
org.dom4j.QName |
getQName() |
org.dom4j.QName |
getQName(String s) |
String |
getQualifiedName() |
String |
getStringValue() |
String |
getText() |
String |
getTextTrim() |
String |
getUniquePath() |
String |
getUniquePath(org.dom4j.Element element) |
org.dom4j.Node |
getXPathResult(int i) |
boolean |
hasContent() |
int |
hashCode() |
boolean |
hasMixedContent() |
int |
indexOf(org.dom4j.Node node) |
boolean |
isReadOnly() |
boolean |
isRootElement() |
boolean |
isTextOnly() |
boolean |
matches(String xpath) |
org.dom4j.Node |
node(int i) |
int |
nodeCount() |
Iterator |
nodeIterator() |
void |
normalize() |
Number |
numberValueOf(String xpath) |
org.dom4j.ProcessingInstruction |
processingInstruction(String name) |
List |
processingInstructions() |
List |
processingInstructions(String name) |
boolean |
remove(org.dom4j.Attribute attribute) |
boolean |
remove(org.dom4j.CDATA cdata) |
boolean |
remove(org.dom4j.Comment comment) |
boolean |
remove(org.dom4j.Element element) |
boolean |
remove(org.dom4j.Entity entity) |
boolean |
remove(org.dom4j.Namespace namespace) |
boolean |
remove(org.dom4j.Node node) |
boolean |
remove(org.dom4j.ProcessingInstruction processingInstruction) |
boolean |
remove(org.dom4j.Text text) |
boolean |
removeProcessingInstruction(String name) |
List |
selectNodes(String xpath) |
List |
selectNodes(String xpath,
String comparison) |
List |
selectNodes(String xpath,
String comparison,
boolean removeDups) |
Object |
selectObject(String xpath) |
org.dom4j.Node |
selectSingleNode(String xpath) |
void |
setAttributes(List list) |
void |
setAttributeValue(org.dom4j.QName qName,
String value)
Deprecated.
|
void |
setAttributeValue(String name,
String value)
Deprecated.
|
void |
setContent(List list) |
void |
setData(Object data) |
void |
setDocument(org.dom4j.Document document) |
void |
setName(String name) |
void |
setParent(org.dom4j.Element parent) |
void |
setProcessingInstructions(List list) |
void |
setQName(org.dom4j.QName qName) |
void |
setText(String text) |
boolean |
supportsParent() |
String |
toString() |
String |
valueOf(String xpath) |
void |
write(Writer writer) |
public org.dom4j.Element getElement()
public org.dom4j.QName getQName()
getQName in interface org.dom4j.Elementpublic org.dom4j.QName getQName(String s)
getQName in interface org.dom4j.Elementpublic void setQName(org.dom4j.QName qName)
setQName in interface org.dom4j.Elementpublic org.dom4j.Namespace getNamespace()
getNamespace in interface org.dom4j.Elementpublic org.dom4j.Namespace getNamespaceForPrefix(String s)
getNamespaceForPrefix in interface org.dom4j.Elementpublic org.dom4j.Namespace getNamespaceForURI(String s)
getNamespaceForURI in interface org.dom4j.Elementpublic List getNamespacesForURI(String s)
getNamespacesForURI in interface org.dom4j.Elementpublic String getNamespacePrefix()
getNamespacePrefix in interface org.dom4j.Elementpublic String getNamespaceURI()
getNamespaceURI in interface org.dom4j.Elementpublic String getQualifiedName()
getQualifiedName in interface org.dom4j.Elementpublic List additionalNamespaces()
additionalNamespaces in interface org.dom4j.Elementpublic List declaredNamespaces()
declaredNamespaces in interface org.dom4j.Elementpublic org.dom4j.Element addAttribute(String attrName, String text)
addAttribute in interface org.dom4j.Elementpublic org.dom4j.Element addAttribute(org.dom4j.QName attrName,
String text)
addAttribute in interface org.dom4j.Elementpublic org.dom4j.Element addComment(String text)
addComment in interface org.dom4j.Elementpublic org.dom4j.Element addCDATA(String text)
addCDATA in interface org.dom4j.Elementpublic org.dom4j.Element addEntity(String name, String text)
addEntity in interface org.dom4j.Elementpublic org.dom4j.Element addNamespace(String prefix, String uri)
addNamespace in interface org.dom4j.Elementpublic org.dom4j.Element addProcessingInstruction(String target, String text)
addProcessingInstruction in interface org.dom4j.Elementpublic org.dom4j.Element addProcessingInstruction(String target, Map data)
addProcessingInstruction in interface org.dom4j.Elementpublic org.dom4j.Element addText(String text)
addText in interface org.dom4j.Elementpublic void add(org.dom4j.Attribute attribute)
add in interface org.dom4j.Elementpublic void add(org.dom4j.CDATA cdata)
add in interface org.dom4j.Elementpublic void add(org.dom4j.Entity entity)
add in interface org.dom4j.Elementpublic void add(org.dom4j.Text text)
add in interface org.dom4j.Elementpublic void add(org.dom4j.Namespace namespace)
add in interface org.dom4j.Elementpublic boolean remove(org.dom4j.Attribute attribute)
remove in interface org.dom4j.Elementpublic boolean remove(org.dom4j.CDATA cdata)
remove in interface org.dom4j.Elementpublic boolean remove(org.dom4j.Entity entity)
remove in interface org.dom4j.Elementpublic boolean remove(org.dom4j.Namespace namespace)
remove in interface org.dom4j.Elementpublic boolean remove(org.dom4j.Text text)
remove in interface org.dom4j.Elementpublic boolean supportsParent()
supportsParent in interface org.dom4j.Nodepublic org.dom4j.Element getParent()
getParent in interface org.dom4j.Nodepublic void setParent(org.dom4j.Element parent)
setParent in interface org.dom4j.Nodepublic org.dom4j.Document getDocument()
getDocument in interface org.dom4j.Nodepublic void setDocument(org.dom4j.Document document)
setDocument in interface org.dom4j.Nodepublic boolean isReadOnly()
isReadOnly in interface org.dom4j.Nodepublic boolean hasContent()
hasContent in interface org.dom4j.Nodepublic String getName()
getName in interface org.dom4j.Nodepublic void setName(String name)
setName in interface org.dom4j.Nodepublic String getText()
getText in interface org.dom4j.ElementgetText in interface org.dom4j.Nodepublic void setText(String text)
setText in interface org.dom4j.Nodepublic String getTextTrim()
getTextTrim in interface org.dom4j.Elementpublic String getStringValue()
getStringValue in interface org.dom4j.ElementgetStringValue in interface org.dom4j.Nodepublic String getPath()
getPath in interface org.dom4j.Nodepublic String getPath(org.dom4j.Element element)
getPath in interface org.dom4j.Nodepublic String getUniquePath()
getUniquePath in interface org.dom4j.Nodepublic String getUniquePath(org.dom4j.Element element)
getUniquePath in interface org.dom4j.Nodepublic String asXML()
asXML in interface org.dom4j.Nodepublic void write(Writer writer) throws IOException
write in interface org.dom4j.NodeIOExceptionpublic short getNodeType()
getNodeType in interface org.dom4j.Nodepublic String getNodeTypeName()
getNodeTypeName in interface org.dom4j.Nodepublic org.dom4j.Node detach()
detach in interface org.dom4j.Nodepublic List selectNodes(String xpath)
selectNodes in interface org.dom4j.Nodepublic Object selectObject(String xpath)
selectObject in interface org.dom4j.Nodepublic List selectNodes(String xpath, String comparison)
selectNodes in interface org.dom4j.Nodepublic List selectNodes(String xpath, String comparison, boolean removeDups)
selectNodes in interface org.dom4j.Nodepublic org.dom4j.Node selectSingleNode(String xpath)
selectSingleNode in interface org.dom4j.Nodepublic Number numberValueOf(String xpath)
numberValueOf in interface org.dom4j.Nodepublic boolean matches(String xpath)
matches in interface org.dom4j.Nodepublic org.dom4j.XPath createXPath(String xpath) throws org.dom4j.InvalidXPathException
createXPath in interface org.dom4j.Nodeorg.dom4j.InvalidXPathExceptionpublic org.dom4j.Node asXPathResult(org.dom4j.Element element)
asXPathResult in interface org.dom4j.Nodepublic void accept(org.dom4j.Visitor visitor)
accept in interface org.dom4j.Nodepublic Object clone()
public Object getData()
getData in interface org.dom4j.Elementpublic void setData(Object data)
setData in interface org.dom4j.Elementpublic List attributes()
attributes in interface org.dom4j.Elementpublic void setAttributes(List list)
setAttributes in interface org.dom4j.Elementpublic int attributeCount()
attributeCount in interface org.dom4j.Elementpublic Iterator attributeIterator()
attributeIterator in interface org.dom4j.Elementpublic org.dom4j.Attribute attribute(int i)
attribute in interface org.dom4j.Elementpublic org.dom4j.Attribute attribute(String name)
attribute in interface org.dom4j.Elementpublic org.dom4j.Attribute attribute(org.dom4j.QName qName)
attribute in interface org.dom4j.Elementpublic String attributeValue(String name)
attributeValue in interface org.dom4j.Elementpublic String attributeValue(String name, String defaultValue)
attributeValue in interface org.dom4j.Elementpublic String attributeValue(org.dom4j.QName qName)
attributeValue in interface org.dom4j.Elementpublic String attributeValue(org.dom4j.QName qName, String defaultValue)
attributeValue in interface org.dom4j.Elementpublic void setAttributeValue(String name, String value)
setAttributeValue in interface org.dom4j.Elementpublic void setAttributeValue(org.dom4j.QName qName,
String value)
setAttributeValue in interface org.dom4j.Elementpublic org.dom4j.Element element(String name)
element in interface org.dom4j.Elementpublic org.dom4j.Element element(org.dom4j.QName qName)
element in interface org.dom4j.Elementpublic List elements()
elements in interface org.dom4j.Elementpublic List elements(org.dom4j.QName qName)
elements in interface org.dom4j.Elementpublic Iterator elementIterator()
elementIterator in interface org.dom4j.Elementpublic Iterator elementIterator(String name)
elementIterator in interface org.dom4j.Elementpublic Iterator elementIterator(org.dom4j.QName qName)
elementIterator in interface org.dom4j.Elementpublic boolean isRootElement()
isRootElement in interface org.dom4j.Elementpublic boolean hasMixedContent()
hasMixedContent in interface org.dom4j.Elementpublic boolean isTextOnly()
isTextOnly in interface org.dom4j.Elementpublic void appendAttributes(org.dom4j.Element element)
appendAttributes in interface org.dom4j.Elementpublic org.dom4j.Element createCopy()
createCopy in interface org.dom4j.Elementpublic org.dom4j.Element createCopy(String name)
createCopy in interface org.dom4j.Elementpublic org.dom4j.Element createCopy(org.dom4j.QName qName)
createCopy in interface org.dom4j.Elementpublic String elementText(String name)
elementText in interface org.dom4j.Elementpublic String elementText(org.dom4j.QName qName)
elementText in interface org.dom4j.Elementpublic String elementTextTrim(String name)
elementTextTrim in interface org.dom4j.Elementpublic String elementTextTrim(org.dom4j.QName qName)
elementTextTrim in interface org.dom4j.Elementpublic org.dom4j.Node getXPathResult(int i)
getXPathResult in interface org.dom4j.Elementpublic org.dom4j.Node node(int i)
node in interface org.dom4j.Branchpublic int indexOf(org.dom4j.Node node)
indexOf in interface org.dom4j.Branchpublic int nodeCount()
nodeCount in interface org.dom4j.Branchpublic org.dom4j.Element elementByID(String id)
elementByID in interface org.dom4j.Branchpublic List content()
content in interface org.dom4j.Branchpublic Iterator nodeIterator()
nodeIterator in interface org.dom4j.Branchpublic void setContent(List list)
setContent in interface org.dom4j.Branchpublic void appendContent(org.dom4j.Branch branch)
appendContent in interface org.dom4j.Branchpublic void clearContent()
clearContent in interface org.dom4j.Branchpublic List processingInstructions()
processingInstructions in interface org.dom4j.Branchpublic List processingInstructions(String name)
processingInstructions in interface org.dom4j.Branchpublic org.dom4j.ProcessingInstruction processingInstruction(String name)
processingInstruction in interface org.dom4j.Branchpublic void setProcessingInstructions(List list)
setProcessingInstructions in interface org.dom4j.Branchpublic org.dom4j.Element addElement(String name)
addElement in interface org.dom4j.Branchpublic org.dom4j.Element addElement(org.dom4j.QName qName)
addElement in interface org.dom4j.Branchpublic org.dom4j.Element addElement(String name, String text)
addElement in interface org.dom4j.Branchpublic boolean removeProcessingInstruction(String name)
removeProcessingInstruction in interface org.dom4j.Branchpublic void add(org.dom4j.Node node)
add in interface org.dom4j.Branchpublic void add(org.dom4j.Comment comment)
add in interface org.dom4j.Branchpublic void add(org.dom4j.Element element)
add in interface org.dom4j.Branchpublic void add(org.dom4j.ProcessingInstruction processingInstruction)
add in interface org.dom4j.Branchpublic boolean remove(org.dom4j.Node node)
remove in interface org.dom4j.Branchpublic boolean remove(org.dom4j.Comment comment)
remove in interface org.dom4j.Branchpublic boolean remove(org.dom4j.Element element)
remove in interface org.dom4j.Branchpublic boolean remove(org.dom4j.ProcessingInstruction processingInstruction)
remove in interface org.dom4j.Branchpublic void normalize()
normalize in interface org.dom4j.BranchCopyright © 2018 JBoss by Red Hat. All rights reserved.