IContent.Type
Modifier and Type | Field and Description |
---|---|
static ElementKey<java.lang.String,OtherContent> |
KEY
The key for this element.
|
static java.lang.String |
KIND
The kind name for adaptation.
|
Constructor and Description |
---|
OtherContent()
Constructs a new instance using the default key.
|
OtherContent(Content content)
Constructs a new instance from a more generic
Content type. |
Modifier and Type | Method and Description |
---|---|
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.
|
getLang, getMimeType, getSrc, setLang
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
public static final java.lang.String KIND
public static final ElementKey<java.lang.String,OtherContent> KEY
public OtherContent()
public static void registerMetadata(MetadataRegistry registry)
public int getType()
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)