public final class Namespaces extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
atom
Atom namespace.
|
static XmlNamespace |
atomNs
Atom XML namespace, for assigning
atom: prefix. |
static String |
atomPub
Deprecated.
Use
getAtomPubNs().getUri() instead. Use
atomPubDraft if you absolutely want the draft app namespace
and not the standard one. |
static String |
atomPubDraft
Atom Publishing Protocol (draft) namespace.
|
static XmlNamespace |
atomPubDraftNs
Atom Publishing Protocol (draft) XML namespace.
|
static XmlNamespace |
atomPubNs
Deprecated.
Use
getAtomPubNs() instead. Use
atomPubDraftNs if you absolutely want the draft app namespace
and not the standard one. |
static String |
atomPubStandard
Atom Publishing Protocol (final) namespace.
|
static XmlNamespace |
atomPubStandardNs
Atom Publishing Protocol (final) XML namespace.
|
static String |
batch
Google data batch feeds namespace.
|
static String |
batchAlias |
static XmlNamespace |
batchNs |
static String |
g
Google data (GD) namespace
|
static String |
gAlias |
static String |
gdataConfig
GData configuration namespace.
|
static XmlNamespace |
gdataConfigNs
GData XML namespace.
|
static String |
gKind
Google data kind scheme.
|
static XmlNamespace |
gNs
Google data XML namespace.
|
static String |
gPrefix |
static String |
gr
Google data runtime namespace.
|
static XmlNamespace |
grNs
Google data runtime XML namespace.
|
static String |
openSearch
Deprecated.
Use
getOpenSearchNs().getUri() instead. Use
openSearch1_0 if you absolutely want the namespace of
opensearch 1.0 and not 1.1. |
static String |
openSearch1_0
Amazon OpenSearch/RSS 1.0 namespace.
|
static XmlNamespace |
openSearch1_0Ns
Amazon OpenSearch/RSS 1.0 XML namespace.
|
static String |
openSearch1_1
Amazon OpenSearch 1.1 namespace.
|
static XmlNamespace |
openSearch1_1Ns
Amazon OpenSearch 1.1 XML namespace.
|
static String |
openSearchDesc
Deprecated.
Use
getOpenSearchDescNs().getUri() instead. |
static 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. Use
openSearch1_0Ns if you absolutely want the namespace of
opensearch 1.0. |
static XmlNamespace |
rssNs
RSS XML namespace.
|
static String |
xhtml
XHTML namespace.
|
static XmlNamespace |
xhtmlNs
XHTML XML namespace.
|
static String |
xml
Standard XML namespace used for
xml:lang, xml:base,
... |
static XmlNamespace |
xmlNs
XML namespace
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
static XmlNamespace |
getAtomPubNs()
Returns the XML namespace associated with the Atom Publishing
Protocol.
|
static XmlNamespace |
getOpenSearchDescNs()
Returns the XML namespace associated with OpenSearch Description.
|
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.
|
public static final String xml
xml:lang, xml:base,
...public static final XmlNamespace xmlNs
public static final String atom
public static final XmlNamespace atomNs
atom: prefix.public static final String atomPubDraft
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.
public static final XmlNamespace atomPubDraftNs
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 String atomPubStandard
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.
public static final XmlNamespace atomPubStandardNs
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.
@Deprecated public static final String atomPub
getAtomPubNs().getUri() instead. Use
atomPubDraft if you absolutely want the draft app namespace
and not the standard one.@Deprecated public static final XmlNamespace atomPubNs
getAtomPubNs() instead. Use
atomPubDraftNs if you absolutely want the draft app namespace
and not the standard one.public static final XmlNamespace rssNs
public static final String openSearch1_0
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.
public static final XmlNamespace openSearch1_0Ns
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 String openSearch1_1
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 openSearch1_1Ns
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.
@Deprecated public static final String openSearch
getOpenSearchNs().getUri() instead. Use
openSearch1_0 if you absolutely want the namespace of
opensearch 1.0 and not 1.1.@Deprecated public static final XmlNamespace openSearchNs
getOpenSearchNs() instead. Use
openSearch1_0Ns if you absolutely want the namespace of
opensearch 1.0.@Deprecated public static final String openSearchDesc
getOpenSearchDescNs().getUri() instead.@Deprecated public static final XmlNamespace openSearchDescNs
getOpenSearchDescNs() instead.@Deprecated public static final String openSearchDesc1_1
getOpenSearchDescNs().getUri() instead.@Deprecated public static final XmlNamespace openSearchDesc1_1Ns
getOpenSearchDescNs() instead.public static final String xhtml
public static final XmlNamespace xhtmlNs
public static final String gdataConfig
public static final XmlNamespace gdataConfigNs
public static final String g
public static final String gPrefix
public static final String gAlias
public static final XmlNamespace gNs
public static final String gr
public static final XmlNamespace grNs
public static final String gKind
public static final String batch
public static final String batchAlias
public static final XmlNamespace batchNs
public static final XmlNamespace getAtomPubNs()
public static final XmlNamespace getOpenSearchNs()
public static final XmlNamespace getOpenSearchDescNs()
public static String inflate(String name, String namespace)
name - the namenamespace - the base namespace for the namepublic static String inflate(String name)
name - the namepublic static String deflate(String uri, String namespace)
uri - the full URInamespace - the namespace namepublic static String deflate(String uri)
uri - the full URICopyright © 2012. All Rights Reserved.