|
|||||||||
| 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 0 if this segment has no specific index. |
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(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()
0 if this segment has no specific index.
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 nameencoder - the encoder to use, or null if the default encoder should be used
IllegalArgumentException - if the namespace registry is nullgetString(NamespaceRegistry)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||