|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Immutable public interface Name
A qualified name consisting of a namespace and a local name.
Method Summary | |
---|---|
String |
getLocalName()
Get the local name part of this qualified name. |
String |
getNamespaceUri()
Get the URI for the namespace used in this qualified name. |
String |
getString()
Get the string form of the name. |
String |
getString(NamespaceRegistry namespaceRegistry)
Get the string form of the name, using the supplied namespace registry to convert the namespace
URI to a prefix. |
String |
getString(NamespaceRegistry namespaceRegistry,
TextEncoder encoder)
Get the encoded string form of the name, using the supplied namespace registry to convert the namespace URI to a prefix. |
String |
getString(NamespaceRegistry namespaceRegistry,
TextEncoder encoder,
TextEncoder delimiterEncoder)
Get the encoded string form of the name, 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, and using the second delimiter to encode (or convert) the delimiter used between the namespace prefix and the local part. |
String |
getString(TextEncoder encoder)
Get the encoded string form of the name, using the supplied encoder to encode characters in the local name and namespace. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
String getLocalName()
String getNamespaceUri()
String getString()
default encoder
is used to encode characters in the local
name and namespace.
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)
namespace
URI
to a prefix. The 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
IllegalArgumentException
- if the namespace registry is nullgetString(NamespaceRegistry,TextEncoder)
String getString(NamespaceRegistry namespaceRegistry, TextEncoder encoder)
namespace URI
to a prefix.
namespaceRegistry
- the namespace registry that should be used to obtain the prefix for the
namespace URI
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)
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
, or null if the default encoder
should
be useddelimiterEncoder
- the encoder to use for encoding the delimiter between the local part
and namespace prefix
, or null if the standard delimiter should be used
getString(NamespaceRegistry)
,
getString(NamespaceRegistry, TextEncoder)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |