public class

XmlNamespace

extends Object
java.lang.Object
   ↳ com.google.gdata.util.common.xml.XmlNamespace
Known Direct Subclasses

Class Overview

Represents an XML namespace, including the associated namespace URI and an optional alias prefix to use in XML output.

Summary

Fields
final String alias
final String uri
Public Constructors
XmlNamespace(String uri)
Constructs a new namespace with the specified namespace URI and no defined prefix alias.
XmlNamespace(String alias, String uri)
Constructs a new namespace with the specified prefix alias and namespace URI.
Public Methods
boolean equals(Object obj)
Returns true if the target object is a Namespace instance that has a matching namespace URI and prefix (if specified).
final String getAlias()
Returns the prefix alias for the namespace or null if undefined.
final String getUri()
Returns the fully qualified URI for the namespace.
int hashCode()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

final String alias

final String uri

Public Constructors

public XmlNamespace (String uri)

Constructs a new namespace with the specified namespace URI and no defined prefix alias.

Parameters
uri

public XmlNamespace (String alias, String uri)

Constructs a new namespace with the specified prefix alias and namespace URI.

Parameters
alias
uri

Public Methods

public boolean equals (Object obj)

Returns true if the target object is a Namespace instance that has a matching namespace URI and prefix (if specified).

Parameters
obj

public final String getAlias ()

Returns the prefix alias for the namespace or null if undefined.

public final String getUri ()

Returns the fully qualified URI for the namespace.

public int hashCode ()