public class GphotoDataImpl extends java.lang.Object implements GphotoData
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.Constructor and Description |
---|
GphotoDataImpl(ExtensionPoint extensionPoint)
Construct a new GphotoData implementation based on the given extension.
|
Modifier and Type | Method and Description |
---|---|
void |
addExtension(Extension extension)
Add an extension.
|
void |
addRepeatingExtension(Extension extension)
Add a repeating extension.
|
void |
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an Extensible
within the target extension profile.
|
java.lang.String |
getGphotoId()
Gets the gphoto:id of the data object.
|
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.
|
public GphotoDataImpl(ExtensionPoint extensionPoint)
public void declareExtensions(ExtensionProfile extProfile)
Extensible
ExtensionPoint.declareExtensions(ExtensionProfile)
.declareExtensions
in interface Extensible
extProfile
- the ExtensionProfile to initialize.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.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