public class

XmlBlob

extends Element
java.lang.Object
   ↳ com.google.gdata.model.Element
     ↳ com.google.gdata.model.XmlBlob

Class Overview

Arbitrary self-contained block of XML.

Need to support multi-rooted content e.g. <a/><b/>.

Summary

Fields
public static final ElementKey<Void, XmlBlob> KEY The id-less key for XmlBlob, a real name must be set before being used.
[Expand]
Inherited Fields
From class com.google.gdata.model.Element
Public Constructors
XmlBlob(ElementKey<?, ? extends XmlBlob> key)
Constructs a new instance using the specified element key.
Public Methods
String getBase()
Initial xml:base value.
String getBlob()
Get blob content.
String getFullText()
Get blob content full-text indexing.
String getLang()
Initial xml:lang value.
static void registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
void setBase(String v)
void setBlob(String v)
Set blob content.
void setFullText(String v)
Set blob content full-text indexing.
void setLang(String v)
[Expand]
Inherited Methods
From class com.google.gdata.model.Element
From class java.lang.Object

Fields

public static final ElementKey<Void, XmlBlob> KEY

The id-less key for XmlBlob, a real name must be set before being used.

Public Constructors

public XmlBlob (ElementKey<?, ? extends XmlBlob> key)

Constructs a new instance using the specified element key.

Parameters
key The element key for this element.

Public Methods

public String getBase ()

Initial xml:base value. This value is typically inherited through the XML tree. The blob itself may contain overrides.

See http://www.cafeconleche.org/books/xmljava/chapters/ch03s03.html for more information.

public String getBlob ()

Get blob content. Depending on how the blob was parsed, it may contain top-level text() nodes mixed together with child elements.

Returns
  • blob content

public String getFullText ()

Get blob content full-text indexing.

public String getLang ()

Initial xml:lang value. This value is typically inherited through the XML tree. The blob itself may contain overrides.

See http://www.w3.org/TR/REC-xml/#sec-lang-tag for more information.

public static void registerMetadata (MetadataRegistry registry)

Registers the metadata for this element.

Parameters
registry

public void setBase (String v)

Parameters
v

public void setBlob (String v)

Set blob content.

Parameters
v Blob content

public void setFullText (String v)

Set blob content full-text indexing.

Parameters
v

public void setLang (String v)

Parameters
v