com.google.gdata.model
Class XmlBlob

java.lang.Object
  extended by com.google.gdata.model.Element
      extended by com.google.gdata.model.XmlBlob

public class XmlBlob
extends Element

Arbitrary self-contained block of XML.

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


Field Summary
static ElementKey<java.lang.Void,XmlBlob> KEY
          The id-less key for XmlBlob, a real name must be set before being used.
 
Constructor Summary
XmlBlob(ElementKey<?,? extends XmlBlob> key)
          Constructs a new instance using the specified element key.
 
Method Summary
 java.lang.String getBase()
          Initial xml:base value.
 java.lang.String getBlob()
          Get blob content.
 java.lang.String getFullText()
          Get blob content full-text indexing.
 java.lang.String getLang()
          Initial xml:lang value.
static void registerMetadata(MetadataRegistry registry)
          Registers the metadata for this element.
 void setBase(java.lang.String v)
           
 void setBlob(java.lang.String v)
          Set blob content.
 void setFullText(java.lang.String v)
          Set blob content full-text indexing.
 void setLang(java.lang.String v)
           
 
Methods inherited from class com.google.gdata.model.Element
addElement, addElement, addElement, clear, createElement, createElement, equals, getAttributeCount, getAttributeIterator, getAttributeIterator, getAttributeValue, getAttributeValue, getDefaultKey, getElement, getElement, getElementCount, getElementId, getElementIterator, getElementIterator, getElementKey, getElements, getElements, getElementSet, getElementSet, getElementValue, getElementValue, getTextValue, getTextValue, hasAttribute, hasAttribute, hasElement, hasElement, hashCode, hasTextValue, isLocked, lock, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, toString, visit
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

KEY

public static final ElementKey<java.lang.Void,XmlBlob> KEY
The id-less key for XmlBlob, a real name must be set before being used.

Constructor Detail

XmlBlob

public XmlBlob(ElementKey<?,? extends XmlBlob> key)
Constructs a new instance using the specified element key.

Parameters:
key - the element key for this element.
Method Detail

registerMetadata

public static void registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.


getLang

public java.lang.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.


setLang

public void setLang(java.lang.String v)

getBase

public java.lang.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.


setBase

public void setBase(java.lang.String v)

getBlob

public java.lang.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

setBlob

public void setBlob(java.lang.String v)
Set blob content.

Parameters:
v - blob content

getFullText

public java.lang.String getFullText()
Get blob content full-text indexing.


setFullText

public void setFullText(java.lang.String v)
Set blob content full-text indexing.