@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, isSelfReference
public IdentifierPathSegment(Name name)
public boolean isIdentifier()
Path.Segment
isIdentifier
in interface Path.Segment
isIdentifier
in class BasicPathSegment
public int hashCode()
hashCode
in class BasicPathSegment
public boolean equals(Object obj)
equals
in class BasicPathSegment
public String toString()
toString
in class BasicPathSegment
public String getString(TextEncoder encoder)
Readable
getString
in interface Readable
getString
in class BasicPathSegment
encoder
- the encoder to use, or null if the default encoder
should be usedReadable.getString()
public String getString(NamespaceRegistry namespaceRegistry, TextEncoder encoder, TextEncoder delimiterEncoder)
Readable
getString
in interface Readable
getString
in class BasicPathSegment
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 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–2016 JBoss, a division of Red Hat. All rights reserved.