|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.BaseEntry<GenericEntry>
com.google.gdata.data.appsforyourdomain.generic.GenericEntry
public class GenericEntry
GData entry class that models a generic feed entry which contains only name-value pairs of data.
GenericFeed
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gdata.data.BaseEntry |
---|
BaseEntry.AtomHandler |
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
Constructor Summary | |
---|---|
GenericEntry()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.google.gdata.data.BaseEntry |
---|
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 |
Methods inherited from class com.google.gdata.data.ExtensionPoint |
---|
addExtension, addRepeatingExtension, generateCumulativeXmlBlob, getExtension, getExtensions, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit |
Methods inherited from class com.google.gdata.data.AbstractExtension |
---|
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericEntry()
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |