|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--org.sapia.util.xml.Namespace
The Namespace class is an object representation of a XML namespace
definition. It has two arguments: a URI and a prefix.
| Constructor Summary | |
|---|---|
Namespace()
Creates a new Namespace instance. |
|
Namespace(String anURI,
String aPrefix)
Creates a new Namespace instance with the passed in arguments. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object anObject)
Returns true if the object passed in is of type Namespace and
has the same URI and prefix as this namespace instance. |
String |
getPrefix()
Returns the prefix of this namespace. |
String |
getURI()
Returns the URI of this namespace. |
int |
hashCode()
Returns the hash code of this namespace. |
void |
setPrefix(String aPrefix)
Changes the prefix of this namespace. |
void |
setURI(String anURI)
Changes the URI of this namespace. |
String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Namespace()
public Namespace(String anURI,
String aPrefix)
anURI - The URI of this namespace.aPrefix - The prefix of this namespace.| Method Detail |
public String getURI()
public String getPrefix()
public void setURI(String anURI)
anURI - The new URI of this namespace.public void setPrefix(String aPrefix)
aPrefix - The new prefix of this namespacepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object anObject)
Namespace and
has the same URI and prefix as this namespace instance.
equals in class ObjectanObject - The object to compare for equality.
public String toString()
toString in class Object
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||