|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.dna.graph.properties.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 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(TextEncoder encoder)
Get the encoded string form of the name, using the supplied encoder to encode characters in the local name and namespace. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicName(String namespaceUri, String localName)
Method Detail |
---|
public String getLocalName()
getLocalName
in interface Name
public String getNamespaceUri()
getNamespaceUri
in interface Name
public String getString()
default encoder
is used to encode characters in the local
name and namespace.
getString
in interface Name
Name.getString(TextEncoder)
public String getString(TextEncoder encoder)
getString
in interface Name
encoder
- the encoder to use, or null if the default encoder
should be used
Name.getString()
public String getString(NamespaceRegistry namespaceRegistry)
namespace URI
to a prefix. The default encoder
is used to encode
characters in each of the path segments.
getString
in interface Name
namespaceRegistry
- the namespace registry that should be used to obtain the prefix for the
namespace URI
Name.getString(NamespaceRegistry,TextEncoder)
public String getString(NamespaceRegistry namespaceRegistry, TextEncoder encoder)
namespace URI
to a prefix.
getString
in interface Name
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
Name.getString(NamespaceRegistry)
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |