|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.photos.impl.GphotoDataImpl
public class GphotoDataImpl
Basic implementation class for all of the GphotoData
objects. This
provides basic implementations of the standard methods that GphotoData
specifies as well as helper methods for subclasses to use when implementing
particular data interfaces.
Nested Class Summary | |
---|---|
static class |
GphotoDataImpl.GphotoRssLink
Deprecated. Clients should modify the alt-type themselves to request RSS. |
static class |
GphotoDataImpl.GphotoType
Deprecated. Clients should use the atom:category to discover the kind of an item. |
Constructor Summary | |
---|---|
GphotoDataImpl(ExtensionPoint extensionPoint)
Construct a new GphotoData implementation based on the given extension. |
Method Summary | ||
---|---|---|
void |
addExtension(Extension extension)
Add an extension. |
|
void |
addRepeatingExtension(Extension extension)
Add a repeating extension. |
|
protected void |
declare(ExtensionProfile extProfile,
ExtensionDescription description)
Helper method to declare an extension as available only on the local entry class. |
|
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an Extensible within the target extension profile. |
|
protected java.lang.Boolean |
getBooleanValue(java.lang.Class<? extends ValueConstruct> extClass)
Protected helper to get a boolean value from a simple construct. |
|
protected java.util.Date |
getDateValue(java.lang.Class<? extends ValueConstruct> extClass)
Protected helper to get a date value from a construct. |
|
protected
|
getExtension(java.lang.Class<T> extClass)
Get an extension by class. |
|
protected java.lang.Float |
getFloatValue(java.lang.Class<? extends ValueConstruct> extClass)
Protected helper to get a float value from a simple construct. |
|
java.lang.String |
getGphotoId()
Gets the gphoto:id of the data object. |
|
protected java.lang.Integer |
getIntegerValue(java.lang.Class<? extends ValueConstruct> extClass)
Protected helper to get an integer value from a simple construct. |
|
protected java.lang.Long |
getLongValue(java.lang.Class<? extends ValueConstruct> extClass)
Protected helper to get a long value from a simple construct. |
|
protected
|
getRepeatingExtension(java.lang.Class<T> extClass)
Get a repeating extension by class. |
|
protected java.lang.String |
getSimpleValue(java.lang.Class<? extends ValueConstruct> extClass)
Protected helper to get the simple value from a construct extension. |
|
void |
removeExtension(java.lang.Class<? extends Extension> extensionClass)
Remove an extension by class. |
|
void |
removeExtension(Extension extension)
Remove an extension. |
|
void |
removeRepeatingExtension(Extension ext)
Removes a repeating extension object. |
|
void |
setExtension(Extension extension)
Set an extension. |
|
void |
setGphotoId(java.lang.Long id)
Sets the id of this entry. |
|
void |
setGphotoId(java.lang.String id)
Sets the id of this entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GphotoDataImpl(ExtensionPoint extensionPoint)
Method Detail |
---|
public void declareExtensions(ExtensionProfile extProfile)
Extensible
ExtensionPoint.declareExtensions(ExtensionProfile)
.
declareExtensions
in interface Extensible
extProfile
- the ExtensionProfile to initialize.protected void declare(ExtensionProfile extProfile, ExtensionDescription description)
public java.lang.String getGphotoId()
GphotoData
getGphotoId
in interface GphotoData
public void setGphotoId(java.lang.Long id)
setGphotoId
in interface GphotoData
id
- the long version of the id of this feed or entry.public void setGphotoId(java.lang.String id)
setGphotoId
in interface GphotoData
id
- the string version of the id of this feed or entry.protected java.lang.String getSimpleValue(java.lang.Class<? extends ValueConstruct> extClass)
protected java.util.Date getDateValue(java.lang.Class<? extends ValueConstruct> extClass) throws ParseException
ParseException
protected java.lang.Integer getIntegerValue(java.lang.Class<? extends ValueConstruct> extClass) throws ParseException
ParseException
protected java.lang.Long getLongValue(java.lang.Class<? extends ValueConstruct> extClass) throws ParseException
ParseException
protected java.lang.Float getFloatValue(java.lang.Class<? extends ValueConstruct> extClass) throws ParseException
ParseException
protected java.lang.Boolean getBooleanValue(java.lang.Class<? extends ValueConstruct> extClass)
protected <T extends Extension> T getExtension(java.lang.Class<T> extClass)
ExtensionPoint.getExtension(Class)
protected <T extends Extension> java.util.List<T> getRepeatingExtension(java.lang.Class<T> extClass)
ExtensionPoint.getRepeatingExtension(Class)
public void setExtension(Extension extension)
setExtension
in interface Extensible
ExtensionPoint.setExtension(Extension)
public void addExtension(Extension extension)
addExtension
in interface Extensible
ExtensionPoint.addExtension(Extension)
public void addRepeatingExtension(Extension extension)
addRepeatingExtension
in interface Extensible
ExtensionPoint.addRepeatingExtension(Extension)
public void removeExtension(java.lang.Class<? extends Extension> extensionClass)
removeExtension
in interface Extensible
ExtensionPoint.removeExtension(Class)
public void removeExtension(Extension extension)
removeExtension
in interface Extensible
ExtensionPoint.removeExtension(Extension)
public void removeRepeatingExtension(Extension ext)
Extensible
ExtensionPoint.removeRepeatingExtension(Extension)
.
removeRepeatingExtension
in interface Extensible
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |