|
|||||||||
| 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 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 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 | ||||||||