| Modifier and Type | Class and Description |
|---|---|
| public static class | DomUtils.
Represents a namespace version. |
| public static class | DomUtils.
A namespace base URI and version. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Stream | |
| public static Optional | Returns: the first child node with the supplied element namethe parent node parent, QualifiedName the element name to find elementName)Find the first child of the supplied parent node with the supplied element name. |
| public static Stream | Returns: the children nodes with the supplied element namethe parent node parent, QualifiedName the element name to find elementName)Find the children of the supplied parent node with the supplied element name. |
| public static Optional | Returns: the attributethe node node, QualifiedName the element name of the attribute elementName)Get the attribute with the supplied element name of the supplied node. |
| public static Optional | Returns: the value of the attributethe node node, QualifiedName the element name of the attribute elementName)Get the value of the attribute with the supplied element name of the supplied node. |
| private static boolean | |
| public static boolean | Returns: true if the node matches the qualified namethe qualified name to match qualifiedName, Node the node to check node)Check whether the simple name of the supplied node matches the supplied qualified name and the namespace of the node is compatible with the namespace of the qualified name (same base URI and version less than or equal to the version of the qualified name). |
| public static Optional | Returns: the versioned namespacethe namespace URI to parse namespaceUri)Parse the supplied namespace URI into a base URI and a version. |
| public static Stream | |
| public static Stream | Returns: a stream of the nodes in the named node mapthe named node map to stream namedNodeMap)Stream the nodes of the supplied named node map. |
| private static Stream |
| NAMESPACE_VERSION_PATTERN | back to summary |
|---|---|
| private static final Pattern NAMESPACE_VERSION_PATTERN | |
| DomUtils | back to summary |
|---|---|
| private DomUtils() | |
| children | back to summary |
|---|---|
| public static Stream Stream the children of the supplied node. | |
| findChild | back to summary |
|---|---|
| public static Optional Find the first child of the supplied parent node with the supplied element name.
| |
| findChildren | back to summary |
|---|---|
| public static Stream Find the children of the supplied parent node with the supplied element name.
| |
| getAttribute | back to summary |
|---|---|
| public static Optional Get the attribute with the supplied element name of the supplied node.
| |
| getAttributeValue | back to summary |
|---|---|
| public static Optional Get the value of the attribute with the supplied element name of the supplied node.
| |
| isNamespaceCompatible | back to summary |
|---|---|
| private static boolean isNamespaceCompatible(QualifiedName qualifiedName, Node node) | |
| matches | back to summary |
|---|---|
| public static boolean matches(QualifiedName qualifiedName, Node node) Check whether the simple name of the supplied node matches the supplied qualified name and the namespace of the node is compatible with the namespace of the qualified name (same base URI and version less than or equal to the version of the qualified name).
| |
| parseNamespace | back to summary |
|---|---|
| public static Optional Parse the supplied namespace URI into a base URI and a version.
| |
| stream | back to summary |
|---|---|
| public static Stream Stream the nodes of the supplied node list. | |
| stream | back to summary |
|---|---|
| public static Stream Stream the nodes of the supplied named node map.
| |
| stream | back to summary |
|---|---|
| private static Stream | |
| Modifier and Type | Field and Description |
|---|---|
| private final int[] | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(DomUtils.
the object to be compared. thatImplements java. Compares this object with the specified object for order. |
| public static DomUtils. | |
| public String |
| parts | back to summary |
|---|---|
| private final int[] parts | |
| stringValue | back to summary |
|---|---|
| private final String stringValue | |
| NamespaceVersion | back to summary |
|---|---|
| pack-priv NamespaceVersion(String stringValue, int[] parts) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(DomUtils. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| parse | back to summary |
|---|---|
| public static DomUtils. Parse the supplied version string.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final DomUtils. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public DomUtils. | |
| pack-priv boolean | |
| public Namespace | |
| public DomUtils. | Returns: the new versioned namespacethe version versionCreate a new versioned namespace with the supplied version. |
| baseUri | back to summary |
|---|---|
| private final String baseUri | |
| version | back to summary |
|---|---|
| private final DomUtils. | |
| VersionedNamespace | back to summary |
|---|---|
| pack-priv VersionedNamespace(String baseUri, DomUtils. | |
| getBaseUri | back to summary |
|---|---|
| public String getBaseUri() Returns the base URI.
| |
| getVersion | back to summary |
|---|---|
| public DomUtils. Returns the version.
| |
| isCompatible | back to summary |
|---|---|
| pack-priv boolean isCompatible(DomUtils. | |
| toNamespace | back to summary |
|---|---|
| public Namespace toNamespace() Convert this versioned namespace to a namespace.
| |
| withVersion | back to summary |
|---|---|
| public DomUtils. Create a new versioned namespace with the supplied version.
| |