public class Content extends Element implements IContent
IContent.Type| Modifier and Type | Field and Description |
|---|---|
static ElementKey<java.lang.String,Content> |
CONSTRUCT
The key for Content used as a construct.
|
static ElementKey<java.lang.String,Content> |
KEY
The key for a Content element used as atom:content.
|
static AttributeKey<java.net.URI> |
SRC
The src attribute.
|
static AttributeKey<java.lang.String> |
TYPE
The content type attribute.
|
static AttributeKey<java.lang.String> |
XML_LANG
Key for the XML lang attribute
|
| Constructor and Description |
|---|
Content(ElementKey<?,?> key)
Constructs a new instance using the specified element metadata.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLang()
Returns the human language that this content is written in
|
ContentType |
getMimeType() |
java.net.URI |
getSrc() |
int |
getType()
Returns this content's type.
|
static void |
registerMetadata(MetadataRegistry registry)
Registers the default metadata for this element.
|
void |
setLang(java.lang.String lang)
Sets the human language that this content was is written in.
|
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, visitpublic static final ElementKey<java.lang.String,Content> CONSTRUCT
public static final ElementKey<java.lang.String,Content> KEY
public static final AttributeKey<java.lang.String> XML_LANG
public static final AttributeKey<java.lang.String> TYPE
public static final AttributeKey<java.net.URI> SRC
public Content(ElementKey<?,?> key)
key - the element key for the content element.public static void registerMetadata(MetadataRegistry registry)
public int getType()
IContent.Type.public java.lang.String getLang()
public void setLang(java.lang.String lang)
public ContentType getMimeType()
null if none existspublic java.net.URI getSrc()
null if none exists