Package com.emc.documentum.rest.model
Class AtomContent
java.lang.Object
com.emc.documentum.rest.model.AtomContent
- Direct Known Subclasses:
Compat71TypeAtomContentJson
Atom content
-
Constructor Summary
ConstructorDescriptionConstructorAtomContent
(Object content) ConstructorAtomContent
(String type, String src) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet content object.<T> T
getContentAs
(Class<T> clazz) Get atom content object as the suggested data type.getSrc()
Get atom content sourcegetType()
Get atom content typeboolean
Check if atom content has inline content objectvoid
setContent
(Object content) Set content objectvoid
Set raw data for atom content objectvoid
Set atom content sourcevoid
Set atom content type
-
Constructor Details
-
AtomContent
public AtomContent()Constructor -
AtomContent
Constructor- Parameters:
type
- content typesrc
- content source
-
AtomContent
Constructor- Parameters:
content
- content object
-
-
Method Details
-
getType
Get atom content type- Returns:
- atom content type
-
setType
Set atom content type- Parameters:
type
- atom content type
-
getSrc
Get atom content source- Returns:
- atom content source
-
setSrc
Set atom content source- Parameters:
src
- atom content source
-
getContent
Get content object. When an atom content object is read from inline JSON feed, the content is null andgetContentAs(Class)
should be used instead.- Returns:
- atom content object
- See Also:
-
setContent
Set content object- Parameters:
content
- atom content object
-
hasInlineObject
public boolean hasInlineObject()Check if atom content has inline content object- Returns:
true
if the entry has the inline content
-
setRaw
Set raw data for atom content object- Parameters:
raw
- raw data
-
getContentAs
public <T> T getContentAs(Class<T> clazz) throws com.emc.documentum.rest.parser.AnnotationParseException Get atom content object as the suggested data type.- Type Parameters:
T
- serializable type- Parameters:
clazz
- the suggested data type- Returns:
- atom content object
- Throws:
com.emc.documentum.rest.parser.AnnotationParseException
- when the content can not be converted to the suggested data type- See Also:
-