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