@NotThreadSafe public static class XMLHelper.PathToNodeBuilder extends Object implements com.helger.commons.builder.IBuilder<String>
| Constructor and Description |
|---|
PathToNodeBuilder() |
| Modifier and Type | Method and Description |
|---|---|
String |
build() |
XMLHelper.PathToNodeBuilder |
compareIncludingNamespaceURI(boolean b)
Compare with namespace URI and local name, or just with the tag name.
|
XMLHelper.PathToNodeBuilder |
excludeDocumentNode()
Shortcut to exclude the document Node from the resulting output
|
XMLHelper.PathToNodeBuilder |
excludeDocumentNode(boolean b)
Determine to include or exclude the document node in the resulting path.
|
XMLHelper.PathToNodeBuilder |
forceUseIndex(boolean b)
Enable or disable the force of an index.
|
XMLHelper.PathToNodeBuilder |
includeDocumentNode()
Shortcut to include the document Node in the resulting output
|
XMLHelper.PathToNodeBuilder |
namespaceContext(NamespaceContext a)
Set the optional namespace context to be used for emitting prefixes.
|
XMLHelper.PathToNodeBuilder |
node(Node a)
The node to get the path from.
|
XMLHelper.PathToNodeBuilder |
oneBasedIndex()
Shortcut to enable the usage of a one based index.
|
XMLHelper.PathToNodeBuilder |
separator(char c)
Set the separator to be used.
|
XMLHelper.PathToNodeBuilder |
separator(String s)
Set the separator to be used.
|
XMLHelper.PathToNodeBuilder |
trailingSeparator(boolean b)
Enable or disable the usage of a trailing separator.
|
XMLHelper.PathToNodeBuilder |
zeroBasedIndex()
Shortcut to enable the usage of a zero based index.
|
XMLHelper.PathToNodeBuilder |
zeroBasedIndex(boolean b)
Determine whether a 0-based index or a 1-based index should be used.
|
@Nonnull public XMLHelper.PathToNodeBuilder node(@Nullable Node a)
a - Node to be used. Should not be null.@Nonnull public XMLHelper.PathToNodeBuilder separator(char c)
c - The separator char@Nonnull public XMLHelper.PathToNodeBuilder separator(@Nullable String s)
s - The separator string. Should not be null.@Nonnull public XMLHelper.PathToNodeBuilder excludeDocumentNode(boolean b)
b - true to exclude it, false to include it@Nonnull public XMLHelper.PathToNodeBuilder excludeDocumentNode()
excludeDocumentNode(boolean)@Nonnull public XMLHelper.PathToNodeBuilder includeDocumentNode()
excludeDocumentNode(boolean)@Nonnull public XMLHelper.PathToNodeBuilder zeroBasedIndex(boolean b)
[0] and for a 1-based index this is
[1].b - true to use a 0-based index, false@Nonnull public XMLHelper.PathToNodeBuilder zeroBasedIndex()
zeroBasedIndex(boolean)@Nonnull public XMLHelper.PathToNodeBuilder oneBasedIndex()
zeroBasedIndex(boolean)@Nonnull public XMLHelper.PathToNodeBuilder forceUseIndex(boolean b)
[0] or [1], depending on
zeroBasedIndex(boolean) is always emitted, even if only one
element exists. If this is disabled and only element exists, the index is
not emitted.b - true to force the index, false to omit
it if possible.@Nonnull public XMLHelper.PathToNodeBuilder trailingSeparator(boolean b)
element/ compared to the output
element if the trailing separator is disabled.b - true to use a trailing separator, false
to omit it.@Nonnull public XMLHelper.PathToNodeBuilder compareIncludingNamespaceURI(boolean b)
b - true to compare with namespace URI,
false to compare without namespace URI@Nonnull public XMLHelper.PathToNodeBuilder namespaceContext(@Nullable NamespaceContext a)
a - The namespace context to be used. May be null.Copyright © 2014–2023 Philip Helger. All rights reserved.