|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.value.basic.BasicName
@Immutable public class BasicName
A basic implementation of Name
.
Constructor Summary | |
---|---|
BasicName(String namespaceUri,
String localName)
|
Method Summary | |
---|---|
int |
compareTo(Name that)
|
boolean |
equals(Object obj)
|
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 object. |
String |
getString(NamespaceRegistry namespaceRegistry)
Get the string form of the object, using the supplied namespace registry to convert any namespace URIs to prefixes. |
String |
getString(NamespaceRegistry namespaceRegistry,
TextEncoder encoder)
Get the encoded string form of the object, using the supplied namespace registry to convert the any namespace URIs to prefixes. |
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()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicName(String namespaceUri, String localName)
Method Detail |
---|
public String getLocalName()
Name
getLocalName
in interface Name
public String getNamespaceUri()
Name
getNamespaceUri
in interface Name
public String getString()
Readable
default encoder
is used to encode characters.
getString
in interface Readable
Readable.getString(TextEncoder)
public String getString(TextEncoder encoder)
Readable
getString
in interface Readable
encoder
- the encoder to use, or null if the default encoder
should be used
Readable.getString()
public String getString(NamespaceRegistry namespaceRegistry)
Readable
default encoder
is used to encode characters.
getString
in interface Readable
namespaceRegistry
- the namespace registry that should be used to obtain the prefix for any namespace URIs
Readable.getString(NamespaceRegistry,TextEncoder)
public String getString(NamespaceRegistry namespaceRegistry, TextEncoder encoder)
Readable
getString
in interface Readable
namespaceRegistry
- the namespace registry that should be used to obtain the prefix for the namespace URIsencoder
- the encoder to use, or null if the default encoder
should be used
Readable.getString(NamespaceRegistry)
public String getString(NamespaceRegistry namespaceRegistry, TextEncoder encoder, TextEncoder delimiterEncoder)
Readable
getString
in interface Readable
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 used
Readable.getString(NamespaceRegistry)
,
Readable.getString(NamespaceRegistry, TextEncoder)
public int compareTo(Name that)
compareTo
in interface Comparable<Name>
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |