public class GenericEntry extends BaseEntry<GenericEntry>
GenericFeed
BaseEntry.AtomHandler
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
Constructor and Description |
---|
GenericEntry() |
Modifier and Type | Method and Description |
---|---|
void |
addProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Convenience method to add multiple name-value pairs to this entry.
|
void |
addProperty(java.lang.String name,
java.lang.String value)
Add a new name-value pair to this entry.
|
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within
the target extension profile.
|
java.util.Map<java.lang.String,java.lang.String> |
getAllProperties() |
java.lang.String |
getProperty(java.lang.String name)
Retrieve the value for a name.
|
boolean |
removeProperty(java.lang.String name)
Remove the property with the given
name (if it exists). |
void |
validate()
A GenericEntry is valid if it satisfies the following conditions:
All Properties have a non-null names (values can be null)
No two properties have the same name
This method is called by the GData framework on the server side.
|
addAdaptor, addHtmlLink, addLink, addLink, delete, generate, generateAtom, generateRss, getAdaptedEntry, getAdaptor, getAdaptors, getAuthors, getCanEdit, getCategories, getContent, getContributors, getEdited, getEditLink, getEtag, getHandler, getHtmlLink, getId, getKind, getLink, getLinks, getLinks, getMediaEditLink, getPlainTextContent, getPubControl, getPublished, getResumableEditMediaLink, getRights, getSelectedFields, getSelf, getSelfLink, getService, getSource, getSummary, getTextContent, getTitle, getUpdated, getVersionId, isDraft, parseAtom, parseAtom, parseAtom, readEntry, readEntry, removeLinks, removeLinks, setCanEdit, setContent, setContent, setDraft, setEdited, setEtag, setId, setKind, setPubControl, setPublished, setRights, setSelectedFields, setService, setSource, setSummary, setTitle, setUpdated, setVersionId, update
addExtension, addRepeatingExtension, generateCumulativeXmlBlob, getExtension, getExtensions, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
public void declareExtensions(ExtensionProfile extProfile)
ExtensionPoint
declareExtensions
in interface Kind.Adaptor
declareExtensions
in class ExtensionPoint
extProfile
- the ExtensionProfile to initialize.ExtensionProfile.addDeclarations(Kind.Adaptor)
public void addProperty(java.lang.String name, java.lang.String value)
public void addProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- the Map
of name-value pairs to addpublic java.lang.String getProperty(java.lang.String name)
Note: If you want all the properties in this entry, use
getAllProperties()
public boolean removeProperty(java.lang.String name)
name
(if it exists).public java.util.Map<java.lang.String,java.lang.String> getAllProperties()
public void validate() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- If the current state of this entry is
invalid.