|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Immutable public static interface Path.Segment
Representation of the segments that occur within a path.
Method Summary | |
---|---|
int |
getIndex()
Get the index for this segment, which will be 1 by default. |
Name |
getName()
Get the name component of this segment. |
String |
getString()
Get the string form of the segment. |
String |
getString(NamespaceRegistry namespaceRegistry)
Get the string form of the segment, using the supplied namespace registry to convert the name's namespace URI to a prefix. |
String |
getString(NamespaceRegistry namespaceRegistry,
TextEncoder encoder)
Get the encoded string form of the segment, using the supplied namespace registry to convert the name's namespace URI to a prefix and the supplied encoder to encode characters in each of the path segments. |
String |
getString(NamespaceRegistry namespaceRegistry,
TextEncoder encoder,
TextEncoder delimiterEncoder)
Get the encoded string form of the segment, using the supplied namespace registry to convert the names' namespace URIs to prefixes and the supplied encoder to encode characters in each of the path segments. |
String |
getString(TextEncoder encoder)
Get the encoded string form of the segment, using the supplied encoder to encode characters in each of the path segments. |
String |
getUnencodedString()
Get the raw string form of the segment using the no-op encoder . |
boolean |
hasIndex()
Return whether this segment has an index. |
boolean |
isParentReference()
Return whether this segment is a reference to a parent. |
boolean |
isSelfReference()
Return whether this segment is a self-reference. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
Name getName()
int getIndex()
boolean hasIndex()
boolean isSelfReference()
boolean isParentReference()
String getUnencodedString()
no-op encoder
. This is equivalent to
calling getString(Path.NO_OP_ENCODER)
.
getString(TextEncoder)
String getString()
default encoder
is used to encode characters in each
of the path segments.
getString(TextEncoder)
String getString(TextEncoder encoder)
encoder
- the encoder to use, or null if the default encoder
should be used
getString()
String getString(NamespaceRegistry namespaceRegistry)
default encoder
is used to encode characters in each of the path segments.
namespaceRegistry
- the namespace registry that should be used to obtain the prefix for the
namespace URI
in the segment's name
IllegalArgumentException
- if the namespace registry is nullgetString(NamespaceRegistry,TextEncoder)
String getString(NamespaceRegistry namespaceRegistry, TextEncoder encoder)
namespaceRegistry
- the namespace registry that should be used to obtain the prefix for the
namespace URI
in the segment's name
encoder
- the encoder to use, or null if the default encoder
should be used
IllegalArgumentException
- if the namespace registry is nullgetString(NamespaceRegistry)
String getString(NamespaceRegistry namespaceRegistry, TextEncoder encoder, TextEncoder delimiterEncoder)
namespace prefix
and the
local part
.
namespaceRegistry
- the namespace registry that should be used to obtain the prefix for the
namespace URIs
in the segment names
encoder
- the encoder to use for encoding the local part
and
namespace prefix
in the segment's name
, or null if the
default encoder
should be useddelimiterEncoder
- the encoder to use for encoding the delimiter between the local
part
and namespace prefix
of each segment
, or
null if the standard delimiters should be used
getString(NamespaceRegistry)
,
getString(NamespaceRegistry, TextEncoder)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |