All Implemented Interfaces:
Branch
All Known Implementing Classes:
BaseElement, NonLazyElement, DatatypeElement, DefaultElement, DOMElement, AbstractElement, UserDataElement, BeanElement, LElement, IndexedElement
Element interface defines an XML element. An element can have
declared namespaces, attributes, child nodes and textual content.
Some of this interface is optional. Some implementations may be read-only and not support being modified. Some implementations may not support the parent relationship and methods such as #getParent or {@link#getDocument}.
< - a href="mailto:jstrachan@apache.org">James Strachan $ - Revision: 1.47 $| Method from org.dom4j.Element Detail: |
|---|
Attribute to this element. If the given
node already has a parent defined then an
IllegalAddException will be thrown. Attributes with null
values are silently ignored.
If the value of the attribute is null then this method call will remove any attributes with the QName of this attribute. |
CDATA to this element. If the given node
already has a parent defined then an IllegalAddException
will be thrown. |
Entity to this element. If the given node
already has a parent defined then an IllegalAddException
will be thrown. |
Text to this element. If the given node
already has a parent defined then an IllegalAddException
will be thrown. |
Namespace to this element. If the given
node already has a parent defined then an
IllegalAddException will be thrown. |
Adds the attribute value of the given local name. If an attribute already exists for the given name it will be replaced. Attributes with null values are silently ignored. If the value of the attribute is null then this method call will remove any attributes with the given name. |
Adds the attribute value of the given fully qualified name. If an attribute already exists for the given name it will be replaced. Attributes with null values are silently ignored. If the value of the attribute is null then this method call will remove any attributes with the given name. |
CDATA node with the given text to this element. |
Comment node with the given text to this
element. |
Entity node with the given name and text to
this element and returns a reference to the new node. |
|
|
|
Text node with the given text to this element. |
Returns any additional namespaces declarations for this element other than namespace returned via the #getNamespace() method. If no additional namespace declarations are present for this element then an empty list will be returned. The list is backed by the element such that changes to the list will be reflected in the element though the reverse is not the case. |
|
|
|
|
|
|
This returns the attribute value for the attribute with the given name and any namespace or null if there is no such attribute or the empty string if the attribute value is empty. |
This returns the attribute value for the attribute with the given fully qualified name or null if there is no such attribute or the empty string if the attribute value is empty. |
This returns the attribute value for the attribute with the given name and any namespace or the default value if there is no such attribute value. |
This returns the attribute value for the attribute with the given fully qualified name or the default value if there is no such attribute value. |
|
Creates a deep copy of this element The new element is detached from its parent, and getParent() on the clone will return null. |
Creates a deep copy of this element with the given local name The new element is detached from its parent, and getParent() on the clone will return null. |
Creates a deep copy of this element with the given fully qualified name. The new element is detached from its parent, and getParent() on the clone will return null. |
Returns all the namespaces declared by this element. If no namespaces are declared for this element then an empty list will be returned. The list is backed by the element such that changes to the list will be reflected in the element though the reverse is not the case. |
|
|
|
|
|
|
|
|
|
Returns the elements contained in this element. If this element does not contain any elements then this method returns an empty list. The list is backed by the element such that changes to the list will be reflected in the element though the reverse is not the case. |
Returns the elements contained in this element with the given local name and any namespace. If no elements are found then this method returns an empty list. The list is backed by the element such that changes to the list will be reflected in the element though the reverse is not the case. |
Returns the elements contained in this element with the given fully qualified name. If no elements are found then this method returns an empty list. The list is backed by the element such that changes to the list will be reflected in the element though the reverse is not the case. |
|
Returns the |
Returns the |
Returns the |
Returns the namespace prefix of this element if one exists otherwise an
empty |
Returns the URI mapped to the namespace of this element if one exists
otherwise an empty |
Returns the all namespaces which are mapped to the given URI or an empty list if no such namespaces could be found. |
Returns the |
Returns the |
Returns the fully qualified name of this element. This will be the same as the value returned from #getName if this element has no namespace attached to this element or an expression of the form getNamespacePrefix() + ":" + getName()will be returned. |
|
|
|
|
Returns true if this |
|
Returns true if this |
Attribute from this element. |
CDATA if the node is an immediate child
of this element. If the given node is not an immediate child of this
element then the Node#detach() method should be used instead. |
Entity if the node is an immediate child
of this element. If the given node is not an immediate child of this
element then the Node#detach() method should be used instead. |
Namespace if the node is an immediate
child of this element. If the given node is not an immediate child of
this element then the Node#detach() method should be used
instead. |
Text if the node is an immediate child
of this element. If the given node is not an immediate child of this
element then the Node#detach() method should be used instead. |
Sets the attribute value of the given local name. |
Sets the attribute value of the given fully qualified name. |
|
|
Sets the |