|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.dna.graph.property.basic.BasicNamespace
@Immutable public class BasicNamespace
Basic implementation of a NamespaceRegistry
namespace.
Constructor Summary | |
---|---|
BasicNamespace(String prefix,
String namespaceUri)
Create a namespace instance. |
Method Summary | |
---|---|
int |
compareTo(NamespaceRegistry.Namespace that)
|
boolean |
equals(Object obj)
|
String |
getNamespaceUri()
Get the URI for the namespace |
String |
getPrefix()
Get the prefix for the namespace |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicNamespace(String prefix, String namespaceUri)
prefix
- the namespace prefix; may not be null (this is not checked)namespaceUri
- the namespace URI; may not be null (this is not checked)Method Detail |
---|
public String getNamespaceUri()
getNamespaceUri
in interface NamespaceRegistry.Namespace
NamespaceRegistry.Namespace.getNamespaceUri()
public String getPrefix()
getPrefix
in interface NamespaceRegistry.Namespace
NamespaceRegistry.Namespace.getPrefix()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public int compareTo(NamespaceRegistry.Namespace that)
compareTo
in interface Comparable<NamespaceRegistry.Namespace>
Comparable.compareTo(java.lang.Object)
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |