|
|||||||||
| 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(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. |
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 Namepublic String getNamespaceUri()
getNamespaceUri in interface Namepublic String getString()
default encoder is used to encode characters in the local
name and namespace.
getString in interface NameName.getString(TextEncoder)public String getString(TextEncoder encoder)
getString in interface Nameencoder - 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 NamenamespaceRegistry - 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 NamenamespaceRegistry - the namespace registry that should be used to obtain the prefix for the
namespace URIencoder - the encoder to use, or null if the default encoder should be used
Name.getString(NamespaceRegistry)
public String getString(NamespaceRegistry namespaceRegistry,
TextEncoder encoder,
TextEncoder delimiterEncoder)
getString in interface NamenamespaceRegistry - 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, 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
Name.getString(org.jboss.dna.graph.properties.NamespaceRegistry,
org.jboss.dna.common.text.TextEncoder, org.jboss.dna.common.text.TextEncoder)public int compareTo(Name that)
compareTo in interface Comparable<Name>public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||