public class MarsDocument extends AbstractJsonConvertibleRecord implements JsonConvertibleRecord
Constructor and Description |
---|
MarsDocument(com.fasterxml.jackson.core.JsonParser jParser) |
MarsDocument(java.lang.String name) |
MarsDocument(java.lang.String name,
java.lang.String content) |
Modifier and Type | Method and Description |
---|---|
protected void |
createIOMaps()
Must be implemented in subclasses to define how fields, objects, arrays
should be saved based on the Jackson streaming API.
|
java.lang.String |
getContent() |
java.lang.String |
getMedia(java.lang.String id) |
java.util.Set<java.lang.String> |
getMediaIDs() |
java.lang.String |
getName()
Get position name.
|
void |
putMedia(java.lang.String id,
java.lang.String mediaData) |
void |
removeAllMedia() |
void |
removeMedia(java.lang.String id) |
void |
setContent(java.lang.String content) |
void |
setName(java.lang.String name)
Set position name.
|
dumpJSON, fromJSON, getJsonGenerator, getJsonParser, setJsonField, setShowWarnings, toJSON
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dumpJSON, fromJSON, getJsonGenerator, getJsonParser, setJsonField, setShowWarnings, toJSON
public MarsDocument(java.lang.String name)
public MarsDocument(java.lang.String name, java.lang.String content)
public MarsDocument(com.fasterxml.jackson.core.JsonParser jParser) throws java.io.IOException
java.io.IOException
protected void createIOMaps()
AbstractJsonConvertibleRecord
createIOMaps
in class AbstractJsonConvertibleRecord
public java.lang.String getName()
public void setName(java.lang.String name)
name
- Position name.public java.lang.String getContent()
public void setContent(java.lang.String content)
public void putMedia(java.lang.String id, java.lang.String mediaData)
public java.lang.String getMedia(java.lang.String id)
public java.util.Set<java.lang.String> getMediaIDs()
public void removeMedia(java.lang.String id)
public void removeAllMedia()