@Immutable public class IdentifierPathSegment extends BasicPathSegment
Path.Segment implementation that represents an identifier segment.| Constructor and Description |
|---|
IdentifierPathSegment(Name name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getString(NamespaceRegistry namespaceRegistry,
TextEncoder encoder,
TextEncoder delimiterEncoder)
Get the encoded string form of the object, using the supplied namespace registry to convert the names' namespace URIs to
prefixes and the supplied encoder to encode characters, and using the second delimiter to encode (or convert) the delimiter
used between the namespace prefix and the local part of any names.
|
String |
getString(TextEncoder encoder)
Get the encoded string form of the object, using the supplied encoder to encode characters.
|
int |
hashCode() |
boolean |
isIdentifier()
Return whether this segment is an identifier segment.
|
String |
toString() |
compareTo, getIndex, getName, getString, getString, getString, getUnencodedString, hasIndex, isParentReference, isSelfReferencepublic IdentifierPathSegment(Name name)
public boolean isIdentifier()
Path.SegmentisIdentifier in interface Path.SegmentisIdentifier in class BasicPathSegmentpublic int hashCode()
hashCode in class BasicPathSegmentpublic boolean equals(Object obj)
equals in class BasicPathSegmentpublic String toString()
toString in class BasicPathSegmentpublic String getString(TextEncoder encoder)
ReadablegetString in interface ReadablegetString in class BasicPathSegmentencoder - the encoder to use, or null if the default encoder should be usedReadable.getString()public String getString(NamespaceRegistry namespaceRegistry, TextEncoder encoder, TextEncoder delimiterEncoder)
ReadablegetString in interface ReadablegetString in class BasicPathSegmentnamespaceRegistry - the namespace registry that should be used to obtain the prefix for the namespace URIs in the
segment namesencoder - the encoder to use for encoding the local part and namespace prefix of any names, 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 any
names, or null if the standard delimiter should be usedReadable.getString(NamespaceRegistry),
Readable.getString(NamespaceRegistry, TextEncoder)Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.