public class GenericEntry extends BaseEntry<GenericEntry>
GenericFeedBaseEntry.AtomHandler, BaseEntry.EntryStateExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandlerAbstractExtension.AttributesHandlerxmlBloblocalName, namespace| 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, getContentHandlerInfo, 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, visitChildrenaddExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChildconsumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutablepublic void declareExtensions(ExtensionProfile extProfile)
ExtensionPointdeclareExtensions in interface Kind.AdaptordeclareExtensions in class ExtensionPointextProfile - 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
validate in class AbstractExtensionjava.lang.IllegalStateException - If the current state of this entry is
invalid.