|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.model.Element
com.google.gdata.model.atom.Content
com.google.gdata.model.atom.OtherContent
public class OtherContent
Variant of Content
for entries containing miscellaneous
inlined content types.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.google.gdata.data.IContent |
---|
IContent.Type |
Field Summary | |
---|---|
static ElementKey<java.lang.String,OtherContent> |
KEY
The key for this element. |
static java.lang.String |
KIND
The kind name for adaptation. |
Fields inherited from class com.google.gdata.model.atom.Content |
---|
CONSTRUCT, SRC, TYPE, XML_LANG |
Constructor Summary | |
---|---|
|
OtherContent()
Constructs a new instance using the default key. |
|
OtherContent(Content content)
Constructs a new instance from a more generic Content type. |
protected |
OtherContent(ElementKey<?,?> key)
Constructs a new instance using the specified element key. |
Method Summary | |
---|---|
byte[] |
getBytes()
|
java.lang.String |
getText()
|
int |
getType()
Returns this content's type. |
XmlBlob |
getXml()
|
Element |
getXmlContent()
Gets the nested xml content of this element. |
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element. |
void |
setBytes(byte[] v)
Specifies the binary contents. |
void |
setMimeType(ContentType v)
Specifies the MIME type. |
void |
setText(java.lang.String v)
Specifies the plain-text contents. |
void |
setXml(XmlBlob v)
Specifies the XML contents. |
void |
setXmlContent(Element content)
Sets the nested xml content of this element. |
protected void |
validate(ElementMetadata<?,?> metadata,
ValidationContext vc)
Validate the element using the given metadata, and placing any errors into the validation context. |
Methods inherited from class com.google.gdata.model.atom.Content |
---|
getLang, getMimeType, getSrc, narrow, setLang |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String KIND
public static final ElementKey<java.lang.String,OtherContent> KEY
Constructor Detail |
---|
public OtherContent()
public OtherContent(Content content)
Content
type.
content
- generic contentprotected OtherContent(ElementKey<?,?> key)
key
- the element key for this element.Method Detail |
---|
public static void registerMetadata(MetadataRegistry registry)
public int getType()
Content
IContent.Type
.
getType
in interface IContent
getType
in class Content
IContent.Type
public void setMimeType(ContentType v)
public XmlBlob getXml()
public void setXml(XmlBlob v)
public Element getXmlContent()
public void setXmlContent(Element content)
public java.lang.String getText()
public void setText(java.lang.String v)
public byte[] getBytes()
public void setBytes(byte[] v)
protected void validate(ElementMetadata<?,?> metadata, ValidationContext vc)
Element
validate
in class Element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |