java.lang.Object | |
↳ | xades4j.utils.DOMHelper |
Utility methods for DOM nodes.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an element on the given document.
| |||||||||||
Gets all the elements with the given qualified name that are direct children
of
e . | |||||||||||
Gets the first child element of a node.
| |||||||||||
Gets the first element with the specified qualified name that is descendant
of
e . | |||||||||||
Gets the last child element of a node.
| |||||||||||
Gets the next sibling of a node that is an element.
| |||||||||||
Gets the owner document of a node.
| |||||||||||
Sets the "Id" attribute of an element and sets it as the element's XML ID.
| |||||||||||
Defines the element's "Id" attribute as its XML ID, if present.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates an element on the given document. Exceptions are as in createElementNS(java.lang.String, java.lang.String)
. The qualified
name is obtained by prefix
:name
if the prefix is not null
.
doc | the owner document |
---|---|
name | the element's local name |
prefix | the element's prefix (may be null ) |
namespaceURI | the element's uri (null for no namespace) |
Gets all the elements with the given qualified name that are direct children
of e
.
e | the element |
---|---|
namespaceURI | namespace |
localName | element name |
Gets the first child element of a node.
node | the node to get the child from |
---|
node
or null
if noneNullPointerException | if node is null
|
---|
Gets the first element with the specified qualified name that is descendant
of e
.
e | the element |
---|---|
namespaceUri | namespace |
localName | element name |
null
if there is no such element
Gets the last child element of a node.
node | the node to get the child from |
---|
node
or null
if noneNullPointerException | if node is null
|
---|
Gets the next sibling of a node that is an element.
node | the node |
---|
null
if noneNullPointerException | if node is null
|
---|
Gets the owner document of a node.
node | the node |
---|
NullPointerException | if node is null
|
---|
Sets the "Id" attribute of an element and sets it as the element's XML ID.
e | the element where the ID should be set |
---|---|
id | the id |
Defines the element's "Id" attribute as its XML ID, if present.
e | the element |
---|