public final class

Namespaces

extends Object
java.lang.Object
   ↳ com.google.gdata.util.Namespaces

Class Overview

Collection of various namespace URIs.

Summary

Constants
String atom Atom namespace.
String atomPub This constant is deprecated. Use getAtomPubNs().getUri() instead. Use atomPubDraft if you absolutely want the draft app namespace and not the standard one.
String atomPubDraft Atom Publishing Protocol (draft) namespace.
String atomPubStandard Atom Publishing Protocol (final) namespace.
String batch Google data batch feeds namespace.
String batchAlias
String g Google data (GD) namespace
String gAlias
String gKind Google data kind scheme.
String gPrefix
String gdataConfig GData configuration namespace.
String gr Google data runtime namespace.
String openSearch This constant is deprecated. Use getOpenSearchNs().getUri() instead. Use openSearch1_0 if you absolutely want the namespace of opensearch 1.0 and not 1.1.
String openSearch1_0 Amazon OpenSearch/RSS 1.0 namespace.
String openSearch1_1 Amazon OpenSearch 1.1 namespace.
String openSearchDesc This constant is deprecated. Use getOpenSearchDescNs().getUri() instead.
String openSearchDesc1_1 This constant is deprecated. Use getOpenSearchDescNs().getUri() instead.
String xhtml XHTML namespace.
String xml Standard XML namespace used for xml:lang, xml:base, ...
Fields
public static final XmlNamespace atomNs Atom XML namespace, for assigning atom: prefix.
public static final XmlNamespace atomPubDraftNs Atom Publishing Protocol (draft) XML namespace.
public static final XmlNamespace atomPubNs This field is deprecated. Use getAtomPubNs() instead. Use atomPubDraftNs if you absolutely want the draft app namespace and not the standard one.
public static final XmlNamespace atomPubStandardNs Atom Publishing Protocol (final) XML namespace.
public static final XmlNamespace batchNs
public static final XmlNamespace gNs Google data XML namespace.
public static final XmlNamespace gdataConfigNs GData XML namespace.
public static final XmlNamespace grNs Google data runtime XML namespace.
public static final XmlNamespace openSearch1_0Ns Amazon OpenSearch/RSS 1.0 XML namespace.
public static final XmlNamespace openSearch1_1Ns Amazon OpenSearch 1.1 XML namespace.
public static final XmlNamespace openSearchDesc1_1Ns This field is deprecated. Use getOpenSearchDescNs() instead.
public static final XmlNamespace openSearchDescNs This field is deprecated. Use getOpenSearchDescNs() instead.
public static final XmlNamespace openSearchNs This field is deprecated. Use getOpenSearchNs() instead. Use openSearch1_0Ns if you absolutely want the namespace of opensearch 1.0.
public static final XmlNamespace rssNs RSS XML namespace.
public static final XmlNamespace xhtmlNs XHTML XML namespace.
public static final XmlNamespace xmlNs XML namespace
Public Methods
static String deflate(String uri)
Deflate a full GData URI using gPrefix (with "#") into a short name if possible.
static String deflate(String uri, String namespace)
Deflate a full URI into a short name if possible.
final static XmlNamespace getAtomPubNs()
Returns the XML namespace associated with the Atom Publishing Protocol.
final static XmlNamespace getOpenSearchDescNs()
Returns the XML namespace associated with OpenSearch Description.
final static XmlNamespace getOpenSearchNs()
Returns the XML namespace associated with OpenSearch.
static String inflate(String name)
Inflate a short name into a full GData URI using gPrefix (ending in "#").
static String inflate(String name, String namespace)
Inflate a short name into a full URI.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String atom

Atom namespace.

Constant Value: "http://www.w3.org/2005/Atom"

public static final String atomPub

This constant is deprecated.
Use getAtomPubNs().getUri() instead. Use atomPubDraft if you absolutely want the draft app namespace and not the standard one.

Atom Publishing Protocol (draft) namespace.

Constant Value: "http://purl.org/atom/app#"

public static final String atomPubDraft

Atom Publishing Protocol (draft) namespace.

Use this only when you are sure you want the draft version of the namespace. Use getAtomPubNs().getUri() when you want the atom pub namespace that should be used for the current version.

Constant Value: "http://purl.org/atom/app#"

public static final String atomPubStandard

Atom Publishing Protocol (final) namespace.

Use this only when you are sure you want the standard version of the namespace. Use getAtomPubNs().getUri() when you want the atom pub namespace that should be used for the current version.

Constant Value: "http://www.w3.org/2007/app"

public static final String batch

Google data batch feeds namespace.

Constant Value: "http://schemas.google.com/gdata/batch"

public static final String batchAlias

Constant Value: "batch"

public static final String g

Google data (GD) namespace

Constant Value: "http://schemas.google.com/g/2005"

public static final String gAlias

Constant Value: "gd"

public static final String gKind

Google data kind scheme.

Constant Value: "http://schemas.google.com/g/2005#kind"

public static final String gPrefix

Constant Value: "http://schemas.google.com/g/2005#"

public static final String gdataConfig

GData configuration namespace.

Constant Value: "http://schemas.google.com/gdata/config/2005"

public static final String gr

Google data runtime namespace.

Constant Value: "http://schemas.google.com/g/2005#runtime"

public static final String openSearch

This constant is deprecated.
Use getOpenSearchNs().getUri() instead. Use openSearch1_0 if you absolutely want the namespace of opensearch 1.0 and not 1.1.

Amazon OpenSearch/RSS namespace.

Constant Value: "http://a9.com/-/spec/opensearchrss/1.0/"

public static final String openSearch1_0

Amazon OpenSearch/RSS 1.0 namespace.

Use this only when you are sure you want the version 1.0 of the namespace. Use getOpenSearchNs().getUri() when you want the opensearch URI that should be used for the current version.

Constant Value: "http://a9.com/-/spec/opensearchrss/1.0/"

public static final String openSearch1_1

Amazon OpenSearch 1.1 namespace.

Use this only when you are sure you want the version 1.1 of the namespace. Use getOpenSearchNs().getUri() when you want the opensearch URI that should be used for the current version.

Constant Value: "http://a9.com/-/spec/opensearch/1.1/"

public static final String openSearchDesc

This constant is deprecated.
Use getOpenSearchDescNs().getUri() instead.

Amazon OpenSearch/RSS Description Document namespace.

Constant Value: "http://a9.com/-/spec/opensearchdescription/1.0/"

public static final String openSearchDesc1_1

This constant is deprecated.
Use getOpenSearchDescNs().getUri() instead.

Amazon OpenSearch 1.1 Description Document namespace.

Constant Value: "http://a9.com/-/spec/opensearchdescription/1.1/"

public static final String xhtml

XHTML namespace.

Constant Value: "http://www.w3.org/1999/xhtml"

public static final String xml

Standard XML namespace used for xml:lang, xml:base, ...

Constant Value: "http://www.w3.org/XML/1998/namespace"

Fields

public static final XmlNamespace atomNs

Atom XML namespace, for assigning atom: prefix.

public static final XmlNamespace atomPubDraftNs

Atom Publishing Protocol (draft) XML namespace.

Use this only when you are sure you want the draft version of the namespace. Use getAtomPubNs() when you want the atom pub namespace that should be used for the current version.

public static final XmlNamespace atomPubNs

This field is deprecated.
Use getAtomPubNs() instead. Use atomPubDraftNs if you absolutely want the draft app namespace and not the standard one.

Atom Publishing Protocol (draft) XML namespace.

public static final XmlNamespace atomPubStandardNs

Atom Publishing Protocol (final) XML namespace.

Use this only when you are sure you want the standard version of the namespace. Use getAtomPubNs() when you want the atom pub namespace that should be used for the current version.

public static final XmlNamespace batchNs

public static final XmlNamespace gNs

Google data XML namespace.

public static final XmlNamespace gdataConfigNs

GData XML namespace.

public static final XmlNamespace grNs

Google data runtime XML namespace.

public static final XmlNamespace openSearch1_0Ns

Amazon OpenSearch/RSS 1.0 XML namespace.

Use this only when you are sure you want the version 1.0 of the namespace. Use getOpenSearchNs() when you want the opensearch URI that should be used for the current version.

public static final XmlNamespace openSearch1_1Ns

Amazon OpenSearch 1.1 XML namespace.

Use this only when you are sure you want the version 1.1 of the namespace. Use getOpenSearchNs().getUri() when you want the opensearch URI that should be used for the current version.

public static final XmlNamespace openSearchDesc1_1Ns

This field is deprecated.
Use getOpenSearchDescNs() instead.

Amazon OpenSearch 1.1 Description Document XML namespace.

public static final XmlNamespace openSearchDescNs

This field is deprecated.
Use getOpenSearchDescNs() instead.

Amazon OpenSearch/RSS Description Document XML namespace.

public static final XmlNamespace openSearchNs

This field is deprecated.
Use getOpenSearchNs() instead. Use openSearch1_0Ns if you absolutely want the namespace of opensearch 1.0.

Amazon OpenSearch/RSS XML namespace.

public static final XmlNamespace rssNs

RSS XML namespace.

public static final XmlNamespace xhtmlNs

XHTML XML namespace.

public static final XmlNamespace xmlNs

XML namespace

Public Methods

public static String deflate (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

public static String deflate (String uri, 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

public static final XmlNamespace getAtomPubNs ()

Returns the XML namespace associated with the Atom Publishing Protocol.

public static final XmlNamespace getOpenSearchDescNs ()

Returns the XML namespace associated with OpenSearch Description.

public static final XmlNamespace getOpenSearchNs ()

Returns the XML namespace associated with OpenSearch.

public static String inflate (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

public static String inflate (String name, 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