com.google.gdata.util
Class Namespaces

java.lang.Object
  extended by com.google.gdata.util.Namespaces

public final class Namespaces
extends java.lang.Object

Collection of various namespace URIs.


Field Summary
static java.lang.String atom
          Atom namespace.
static XmlNamespace atomNs
          Atom XML writer namespace, for assigning atom: prefix.
static java.lang.String atomPub
          Deprecated. Use getAtomPubNs().getUri() instead.
static XmlNamespace atomPubNs
          Deprecated. Use getAtomPubNs() instead.
static java.lang.String atomPubStandard
          Deprecated. Use getAtomPubNs().getUri() instead.
static XmlNamespace atomPubStandardNs
          Deprecated. Use getAtomPubNs() instead.
static java.lang.String batch
          Google data batch feeds namespace.
static java.lang.String batchAlias
           
static XmlNamespace batchNs
           
static java.lang.String g
          Google data (GD) namespace
static java.lang.String gAlias
           
static java.lang.String gdataConfig
          GData configuration namespace.
static XmlNamespace gdataConfigNs
          GData XML writer namespace.
static java.lang.String gKind
          Google data kind scheme.
static XmlNamespace gNs
          Google data XML writer namespace.
static java.lang.String gPrefix
           
static java.lang.String gr
          Google data runtime namespace.
static XmlNamespace grNs
          Google data runtime XML writer namespace.
static java.lang.String openSearch
          Deprecated. Use getOpenSearchNs().getUri() instead.
static java.lang.String openSearch1_1
          Deprecated. Use getOpenSearchNs().getUri() instead.
static XmlNamespace openSearch1_1Ns
          Deprecated. Use getOpenSearchNs() instead.
static java.lang.String openSearchDesc
          Deprecated. Use getOpenSearchDescNs().getUri() instead.
static java.lang.String openSearchDesc1_1
          Deprecated. Use getOpenSearchDescNs().getUri() instead.
static XmlNamespace openSearchDesc1_1Ns
          Deprecated. Use getOpenSearchDescNs() instead.
static XmlNamespace openSearchDescNs
          Deprecated. Use getOpenSearchDescNs() instead.
static XmlNamespace openSearchNs
          Deprecated. Use getOpenSearchNs() instead.
static XmlNamespace rssNs
          RSS XML writer namespace.
static java.lang.String xhtml
          XHTML namespace.
static XmlNamespace xhtmlNs
          XHTML XML writer namespace.
static java.lang.String xml
          Standard XML namespace used for xml:lang, xml:base, ...
static XmlNamespace xmlNs
          XML writer namespace
 
Method Summary
static java.lang.String deflate(java.lang.String uri)
          Deflate a full GData URI using gPrefix (with "#") into a short name if possible.
static java.lang.String deflate(java.lang.String uri, java.lang.String namespace)
          Deflate a full URI into a short name if possible.
static XmlNamespace getAtomPubNs()
          Returns the XML writer namespace associated with the Atom Publishing Protocol.
static XmlNamespace getOpenSearchDescNs()
          Returns the XML writer namespace associated with OpenSearch Description.
static XmlNamespace getOpenSearchNs()
          Returns the XML writer namespace associated with OpenSearch.
static java.lang.String inflate(java.lang.String name)
          Inflate a short name into a full GData URI using gPrefix (ending in "#").
static java.lang.String inflate(java.lang.String name, java.lang.String namespace)
          Inflate a short name into a full URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xml

public static final java.lang.String xml
Standard XML namespace used for xml:lang, xml:base, ...

See Also:
Constant Field Values

xmlNs

public static final XmlNamespace xmlNs
XML writer namespace


atom

public static final java.lang.String atom
Atom namespace.

See Also:
Constant Field Values

atomNs

public static final XmlNamespace atomNs
Atom XML writer namespace, for assigning atom: prefix.


atomPub

@Deprecated
public static final java.lang.String atomPub
Deprecated. Use getAtomPubNs().getUri() instead.
Atom Publishing Protocol (draft) namespace.

See Also:
Constant Field Values

atomPubNs

@Deprecated
public static final XmlNamespace atomPubNs
Deprecated. Use getAtomPubNs() instead.
Atom Publishing Protocol (draft) XML writer namespace.


atomPubStandard

@Deprecated
public static final java.lang.String atomPubStandard
Deprecated. Use getAtomPubNs().getUri() instead.
Atom Publishing Protocol (final) namespace.

See Also:
Constant Field Values

atomPubStandardNs

@Deprecated
public static final XmlNamespace atomPubStandardNs
Deprecated. Use getAtomPubNs() instead.
Atom Publishing Protocol (final) XML writer namespace.


rssNs

public static final XmlNamespace rssNs
RSS XML writer namespace.


openSearch

@Deprecated
public static final java.lang.String openSearch
Deprecated. Use getOpenSearchNs().getUri() instead.
Amazon OpenSearch/RSS namespace.

See Also:
Constant Field Values

openSearchNs

@Deprecated
public static final XmlNamespace openSearchNs
Deprecated. Use getOpenSearchNs() instead.
Amazon OpenSearch/RSS XML writer namespace.


openSearch1_1

@Deprecated
public static final java.lang.String openSearch1_1
Deprecated. Use getOpenSearchNs().getUri() instead.
Amazon OpenSearch 1.1 namespace.

See Also:
Constant Field Values

openSearch1_1Ns

@Deprecated
public static final XmlNamespace openSearch1_1Ns
Deprecated. Use getOpenSearchNs() instead.
Amazon OpenSearch 1.1 XML writer namespace.


openSearchDesc

@Deprecated
public static final java.lang.String openSearchDesc
Deprecated. Use getOpenSearchDescNs().getUri() instead.
Amazon OpenSearch/RSS Description Document namespace.

See Also:
Constant Field Values

openSearchDescNs

@Deprecated
public static final XmlNamespace openSearchDescNs
Deprecated. Use getOpenSearchDescNs() instead.
Amazon OpenSearch/RSS Description Document XML writer namespace.


openSearchDesc1_1

@Deprecated
public static final java.lang.String openSearchDesc1_1
Deprecated. Use getOpenSearchDescNs().getUri() instead.
Amazon OpenSearch 1.1 Description Document namespace.

See Also:
Constant Field Values

openSearchDesc1_1Ns

@Deprecated
public static final XmlNamespace openSearchDesc1_1Ns
Deprecated. Use getOpenSearchDescNs() instead.
Amazon OpenSearch 1.1 Description Document XML writer namespace.


xhtml

public static final java.lang.String xhtml
XHTML namespace.

See Also:
Constant Field Values

xhtmlNs

public static final XmlNamespace xhtmlNs
XHTML XML writer namespace.


gdataConfig

public static final java.lang.String gdataConfig
GData configuration namespace.

See Also:
Constant Field Values

gdataConfigNs

public static final XmlNamespace gdataConfigNs
GData XML writer namespace.


g

public static final java.lang.String g
Google data (GD) namespace

See Also:
Constant Field Values

gPrefix

public static final java.lang.String gPrefix
See Also:
Constant Field Values

gAlias

public static final java.lang.String gAlias
See Also:
Constant Field Values

gNs

public static final XmlNamespace gNs
Google data XML writer namespace.


gr

public static final java.lang.String gr
Google data runtime namespace.

See Also:
Constant Field Values

grNs

public static final XmlNamespace grNs
Google data runtime XML writer namespace.


gKind

public static final java.lang.String gKind
Google data kind scheme.

See Also:
Constant Field Values

batch

public static final java.lang.String batch
Google data batch feeds namespace.

See Also:
Constant Field Values

batchAlias

public static final java.lang.String batchAlias
See Also:
Constant Field Values

batchNs

public static final XmlNamespace batchNs
Method Detail

getAtomPubNs

public static final XmlNamespace getAtomPubNs()
Returns the XML writer namespace associated with the Atom Publishing Protocol.


getOpenSearchNs

public static final XmlNamespace getOpenSearchNs()
Returns the XML writer namespace associated with OpenSearch.


getOpenSearchDescNs

public static final XmlNamespace getOpenSearchDescNs()
Returns the XML writer namespace associated with OpenSearch Description.


inflate

public static java.lang.String inflate(java.lang.String name,
                                       java.lang.String namespace)
Inflate a short name into a full URI. Names that already look like URIs are left alone.

Parameters:
name - the name
namespace - the base namespace for the name
Returns:
the full URI

inflate

public static java.lang.String inflate(java.lang.String name)
Inflate a short name into a full GData URI using gPrefix (ending in "#"). Names that already look like URIs are left alone. For example, "foo" becomes "http://schemas.google.com/g/2005#foo".

Parameters:
name - the name
Returns:
the full URI

deflate

public static java.lang.String deflate(java.lang.String uri,
                                       java.lang.String namespace)
Deflate a full URI into a short name if possible. URIs that belong to a different namespace are left alone.

Parameters:
uri - the full URI
namespace - the namespace name

deflate

public static java.lang.String deflate(java.lang.String uri)
Deflate a full GData URI using gPrefix (with "#") into a short name if possible. Names that belong to a non-GData namespace are left alone. For example, "http://schemas.google.com/g/2005#foo" becomes "foo".

Parameters:
uri - the full URI
Returns:
the short name or full URI