|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.util.common.xml.XmlNamespace
public class XmlNamespace
Represents an XML namespace, including the associated namespace URI and an optional alias prefix to use in XML output.
| Constructor Summary | |
|---|---|
XmlNamespace(java.lang.String uri)
Constructs a new namespace with the specified namespace URI and no defined prefix alias. |
|
XmlNamespace(java.lang.String alias,
java.lang.String uri)
Constructs a new namespace with the specified prefix alias and namespace URI. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true if the target object is a Namespace instance that has a matching namespace URI and prefix (if specified). |
java.lang.String |
getAlias()
Returns the prefix alias for the namespace or null if undefined. |
java.lang.String |
getUri()
Returns the fully qualified URI for the namespace. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlNamespace(java.lang.String uri)
public XmlNamespace(java.lang.String alias,
java.lang.String uri)
| Method Detail |
|---|
public final java.lang.String getAlias()
null if undefined.
public final java.lang.String getUri()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||