| Public Methods |
|
void
|
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within
the target extension profile.
The implementation of this method for BaseFeed will declare any
extensions associated with the contained entry type.
|
|
List<AlbumEntry>
|
getAlbumEntries()
|
|
Integer
|
getMaxPhotos()
The number of photos a user can have in a single album.
|
|
String
|
getNickname()
The nickname of the user.
|
|
Long
|
getQuotaLimit()
The quota limit of the user.
|
|
Long
|
getQuotaUsed()
The quota in bytes that the user has used.
|
|
List<TagEntry>
|
getTagEntries()
Get a list of entries of the TagEntry kind.
|
|
String
|
getThumbnail()
A url to the user's portrait.
|
|
String
|
getUsername()
The username of the user.
|
|
void
|
setMaxPhotos(Integer max)
Set the maximum number of photos the user is allowed.
|
|
void
|
setNickname(String nickname)
Set the nickname of the user this data represents.
|
|
void
|
setQuotaLimit(Long quota)
Set the quota limit for the user this data represents.
|
|
void
|
setQuotaUsed(Long quota)
Set the used quota for the user.
|
|
void
|
setThumbnail(String thumbnail)
Set the thumbnail for the user portrait.
|
|
void
|
setUsername(String username)
Set the username for the user this data represents.
|
|
[Expand]
Inherited Methods |
From class
com.google.gdata.data.photos.GphotoFeed
|
From class
com.google.gdata.data.media.MediaFeed
|
From class
com.google.gdata.data.BaseFeed
|
void
|
addAdaptor(Kind.Adaptor adaptor)
|
|
E
|
createEntry()
Creates a new entry for the feed.
|
|
void
|
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within
the target extension profile.
The implementation of this method for BaseFeed will declare any
extensions associated with the contained entry type.
|
|
void
|
generate(XmlWriter w, ExtensionProfile p)
Generates an XML representation for the extension.
|
|
void
|
generateAtom(XmlWriter w, ExtensionProfile extProfile)
Generates XML in the Atom format.
|
|
void
|
generateFeedEnd(XmlWriter w)
|
|
void
|
generateFeedStart(ExtensionProfile extProfile, XmlWriter w, Collection<XmlNamespace> namespaces)
Generates everything that's in the feed up to and not including the
entries.
|
|
void
|
generateRss(XmlWriter w, ExtensionProfile extProfile)
Generates XML in the RSS format.
|
|
BaseFeed<?, ?>
|
getAdaptedFeed()
Locates and returns the most specific Kind.Adaptor feed
subtype for this feed.
|
|
<A extends Kind.Adaptor>
A
|
getAdaptor(Class<A> adaptorClass)
|
|
Collection<Kind.Adaptor>
|
getAdaptors()
Returns the collection of Kind.Adaptor instances associated with the
this Adaptable instance.
|
|
boolean
|
getCanPost()
Gets the property that indicates if it is possible to post new entries
to the feed.
|
|
<T extends BaseEntry>
List<T>
|
getEntries(Class<T> returnClass)
Gets a list of entries of a particular kind.
|
|
List<E>
|
getEntries()
Returns the list of entries in this feed
|
|
Link
|
getEntryPostLink()
Returns the entry post link for the feed.
|
|
String
|
getEtag()
Returns the current entity tag value for this feed.
|
|
Link
|
getFeedBatchLink()
Returns the link that provides the URI that can be used to batch operations
to query, insert, update and delete entries on this feed.
|
|
XmlParser.ElementHandler
|
getHandler(ExtensionProfile p, String namespace, String localName, Attributes attrs)
|
|
int
|
getItemsPerPage()
Gets the number of items that will be returned per page for paged feeds.
|
|
String
|
getKind()
Returns the current gd:kind attribute value for this feed.
|
|
Link
|
getNextLink()
Returns the link that provides the URI of next page in a paged feed.
|
|
Link
|
getPreviousLink()
Returns the link that provides the URI of previous page in a paged feed.
|
|
String
|
getSelectedFields()
Returns the current fields selection for this partial feed.
|
|
F
|
getSelf()
Returns the current representation of the feed by requesting it from
the associated service using the feed's self link.
|
|
Link
|
getSelfLink()
Returns the self link for the feed.
|
|
Service
|
getService()
Returns that GData Service instance associated with this feed.
|
|
int
|
getStartIndex()
Gets the starting index of the contained entries for paged feeds.
|
|
int
|
getTotalResults()
Gets the total number of results associated with this feed.
|
|
String
|
getVersionId()
Returns the entity version for this feed.
|
|
<T extends E extends BaseEntry>
T
|
insert(T newEntry)
Inserts a new Entry into the feed, if the feed is currently
associated with a Service.
|
|
void
|
parseAtom(ExtensionProfile extProfile, XmlEventSource source)
Parses XML in the Atom format from a parser-defined content source.
|
|
void
|
parseAtom(ExtensionProfile extProfile, InputStream input)
Parses XML in the Atom format.
|
|
void
|
parseAtom(ExtensionProfile extProfile, Reader reader)
Parses XML in the Atom format.
|
|
static
<F extends BaseFeed>
F
|
readFeed(ParseSource source, Class<F> feedClass, ExtensionProfile extProfile)
This method provides the base implementation of feed reading using either
static or dynamic typing.
|
|
static
BaseFeed<?, ?>
|
readFeed(ParseSource source)
Reads a feed representation from the provided ParseSource.
|
|
void
|
setCanPost(boolean v)
Sets the property that indicates if it is possible to post new entries
to the feed.
|
|
void
|
setEntries(List<E> entryList)
Sets the list to use for storing the entry list
|
|
void
|
setEtag(String v)
Sets the current entity tag value for this feed.
|
|
void
|
setItemsPerPage(int v)
Sets the number of items that will be returned per page for paged feeds.
|
|
void
|
setKind(String v)
Sets the current gd:kind attribute value for this feed.
|
|
void
|
setSelectedFields(String fields)
Sets the current fields selection for this partial feed.
|
|
void
|
setService(Service v)
Sets that GData Service instance associated with this feed.
|
|
void
|
setStartIndex(int v)
Sets the starting index of the contained entries for paged feeds.
|
|
void
|
setTotalResults(int v)
Sets the total number of results associated with this feed.
|
|
void
|
setVersionId(String v)
Sets the entity version for this feed.
|
|
void
|
visitChildren(ExtensionVisitor ev)
Called to visit all children of this extension point.
|
|
From class
com.google.gdata.data.Source
|
void
|
addHtmlLink(String htmlUri, String lang, String title)
Adds a link pointing to an HTML representation.
|
|
Link
|
addLink(String rel, String type, String href)
|
|
void
|
addLink(Link link)
|
|
void
|
generateAtom(XmlWriter w, ExtensionProfile extProfile)
Generates XML in the Atom format.
|
|
void
|
generateInnerAtom(XmlWriter w, ExtensionProfile extProfile)
Generates inner XML content in the Atom format.
|
|
List<Person>
|
getAuthors()
|
|
Set<Category>
|
getCategories()
|
|
List<Person>
|
getContributors()
|
|
Generator
|
getGenerator()
|
|
Link
|
getHtmlLink()
Retrieves the first HTML link.
|
|
String
|
getIcon()
|
|
String
|
getId()
|
|
Link
|
getLink(String rel, String type)
Retrieves the first link with the supplied rel and/or
type value.
|
|
List<Link>
|
getLinks()
|
|
List<Link>
|
getLinks(String relToMatch, String typeToMatch)
Return the links that match the given rel and type values.
|
|
String
|
getLogo()
|
|
TextConstruct
|
getRights()
|
|
TextConstruct
|
getSubtitle()
|
|
TextConstruct
|
getTitle()
|
|
DateTime
|
getUpdated()
|
|
void
|
parseAtom(ExtensionProfile extProfile, InputStream stream)
Parses XML in the Atom format.
|
|
void
|
parseAtom(ExtensionProfile extProfile, Reader reader)
Parses XML in the Atom format.
|
|
void
|
removeLinks(String relToMatch, String typeToMatch)
Remove all links that match the given rel and type values.
|
|
void
|
removeLinks()
Removes all links.
|
|
void
|
setGenerator(Generator v)
|
|
Generator
|
setGenerator(String version, String uri, String name)
|
|
void
|
setIcon(String v)
|
|
void
|
setId(String v)
|
|
void
|
setLogo(String v)
|
|
void
|
setRights(TextConstruct v)
|
|
void
|
setSubtitle(TextConstruct v)
|
|
void
|
setTitle(TextConstruct v)
|
|
void
|
setUpdated(DateTime v)
|
|
From class
com.google.gdata.data.ExtensionPoint
|
boolean
|
addExtension(Extension ext, Class<? extends Extension> extClass)
Internal helper method.
|
|
void
|
addExtension(Extension ext)
Adds an extension object.
|
|
void
|
addRepeatingExtension(Extension ext)
Adds a repeating extension object.
|
|
void
|
addRepeatingExtension(Extension ext, Class<? extends Extension> extClass)
Internal helper method.
|
|
void
|
checkRequiredExtensions(ExtensionManifest profManifest)
Checks whether all required extensions are present.
|
|
static
<T extends Extension>
T
|
createExtensionInstance(Class<T> extClass)
Creates an instance of the given extension class.
|
|
void
|
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within
the target extension profile.
|
|
void
|
generate(XmlWriter w, ExtensionProfile p, XmlNamespace namespace, String localName, List<XmlWriter.Attribute> attrs, AttributeGenerator generator)
Generates the XML into the XML writer.
|
|
XmlBlob
|
generateCumulativeXmlBlob(ExtensionProfile extProfile)
Generates an XML blob containing all recognized and unrecognized
extensions.
|
|
void
|
generateExtensions(XmlWriter w, ExtensionProfile extProfile)
Generates XML corresponding to extended properties.
|
|
void
|
generateStartElement(XmlWriter w, XmlNamespace namespace, String elementName, Collection<XmlWriter.Attribute> additionalAttrs, Collection<XmlNamespace> additionalNs)
|
|
<T extends Extension>
T
|
getExtension(Class<T> extensionClass)
Retrieves a non-repeating extension or null if not present.
|
|
ExtensionDescription
|
getExtensionDescription(ExtensionProfile extProfile, Class<? extends ExtensionPoint> extPoint, String namespaceUri, String localName)
Returns the extension description for the namespace URI and local name for
the XML element based on the extension point in the extension profile.
|
|
XmlParser.ElementHandler
|
getExtensionHandler(ExtensionProfile extProfile, Class<? extends ExtensionPoint> extPoint, String namespaceUri, String localName, Attributes attrs)
XML parser callback for extended properties.
|
|
Collection<Extension>
|
getExtensions()
Returns an unmodifiable collection of non-repeating extensions in this
ExtensionPoint.
|
|
XmlParser.ElementHandler
|
getHandler(ExtensionProfile p, String namespace, String localName, Attributes attrs)
|
|
ExtensionManifest
|
getManifest(ExtensionProfile extProfile, Class<? extends ExtensionPoint> extendedClass)
Retrieves the manifest for the specified class.
|
|
<T extends Extension>
List<T>
|
getRepeatingExtension(Class<T> extensionClass)
Retrieves a repeating extension list (an empty list if not present).
|
|
Collection<List<Extension>>
|
getRepeatingExtensions()
Returns an unmodifiable collection of lists of repeating extensions in this
ExtensionPoint.
|
|
XmlBlob
|
getXmlBlob()
Retrieves the XML blob containing arbitrary (unrecognized) extensions.
|
|
final
<T extends Extension>
boolean
|
hasExtension(Class<T> extensionClass)
Returns whether the non-repeating extension is present.
|
|
final
<T extends Extension>
boolean
|
hasRepeatingExtension(Class<T> extensionClass)
Returns whether the repeating extension is present.
|
|
void
|
initializeArbitraryXml(ExtensionProfile profile, Class<? extends ExtensionPoint> extPoint, XmlParser.ElementHandler handler)
Initializes parser handler's XML blob state.
|
|
void
|
parseCumulativeXmlBlob(XmlBlob blob, ExtensionProfile extProfile, Class<? extends ExtensionPoint> extendedClass)
|
|
void
|
removeExtension(Extension ext)
Removes an extension object.
|
|
void
|
removeExtension(Class<? extends Extension> extensionClass)
Removes an extension object based on its class.
|
|
void
|
removeRepeatingExtension(Extension ext)
Removes a repeating extension object.
|
|
void
|
setExtension(Extension ext)
Sets an extension object.
|
|
<T extends Extension>
void
|
setRepeatingExtension(Class<T> extensionClass, List<T> value)
|
|
void
|
setXmlBlob(XmlBlob xmlBlob)
Sets the XML blob containing arbitrary (unrecognized) extensions.
|
|
void
|
visit(ExtensionVisitor ev, ExtensionPoint parent)
Visits the tree of extension data associated with this extension point
instance using the specified ExtensionVisitor, starting at this
extension point.
|
|
void
|
visitChild(ExtensionVisitor ev, Extension child)
Called to visit a child of this extension point.
|
|
void
|
visitChildren(ExtensionVisitor ev)
Called to visit all children of this extension point.
|
|
From class
com.google.gdata.data.AbstractExtension
|
void
|
consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
|
|
final
static
void
|
disableStrictValidation()
|
|
final
static
void
|
enableStrictValidation()
|
|
static
boolean
|
eq(Object o1, Object o2)
|
|
void
|
generate(XmlWriter w, ExtensionProfile p)
Generates an XML representation for the extension.
|
|
void
|
generate(XmlWriter w, ExtensionProfile p, XmlNamespace namespace, String localName, List<XmlWriter.Attribute> attrs, AttributeGenerator generator)
Generates the XML into the XML writer.
|
|
void
|
generateAttributes(List<XmlWriter.Attribute> attrs, AttributeGenerator generator)
Generates the attributes in the generator into the list of attributes.
|
|
final
String
|
getExtensionLocalName()
Gets the extension's localname.
|
|
final
XmlNamespace
|
getExtensionNamespace()
Gets the extension's namespace.
|
|
XmlParser.ElementHandler
|
getHandler(ExtensionProfile p, String namespace, String localName, Attributes attrs)
|
|
final
boolean
|
isImmutable()
|
|
final
static
boolean
|
isStrictValidation()
|
|
void
|
putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
|
|
boolean
|
sameClassAs(Object o)
|
|
final
void
|
setImmutable(boolean isImmutable)
|
|
final
static
void
|
throwExceptionForMissingAttribute(String attrName)
Throws an IllegalStateException if the value is required
and it is missing.
|
|
final
void
|
throwExceptionIfImmutable()
Throws an IllegalStateException if this instance is immutable.
|
|
void
|
validate()
Checks the attributes to see if there are any problems.
|
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
com.google.gdata.data.Extension
|
From interface
com.google.gdata.data.IAtom
|
abstract
ILink
|
addLink(String rel, String type, String href)
Adds a link with the given rel, type, and href.
|
|
abstract
List<? extends IPerson>
|
getAuthors()
Returns the list of all authors on this resource.
|
|
abstract
Set<? extends ICategory>
|
getCategories()
Returns a set of categories on this resource.
|
|
abstract
String
|
getEtag()
Gets the value of the gd:etag attribute for this resource.
|
|
abstract
String
|
getId()
Get the unique id for this resource.
|
|
abstract
String
|
getKind()
Returns the value of the gd:kind attribute for this resource.
|
|
abstract
ILink
|
getLink(String rel, String type)
Returns a particular atom:link element with the given rel and type, or null
if one was not found.
|
|
abstract
List<? extends ILink>
|
getLinks()
Returns a list of atom:link elements on this resource.
|
|
abstract
ILink
|
getSelfLink()
Returns the self link for the resource.
|
|
abstract
ITextConstruct
|
getTitle()
Returns the atom:title element of this resource.
|
|
abstract
DateTime
|
getUpdated()
Get a DateTime instance representing the last time this resource
was updated.
|
|
abstract
String
|
getVersionId()
Version ID.
|
|
abstract
void
|
removeLinks(String relToMatch, String typeToMatch)
Remove all links that match the given rel and type values.
|
|
abstract
void
|
removeLinks()
Removes all links from the this resource.
|
|
abstract
void
|
setEtag(String etag)
Sets the value of the gd:etag attribute for this resource.
|
|
abstract
void
|
setId(String id)
Sets the unique id for this resource.
|
|
abstract
void
|
setKind(String kind)
Sets the value of the gd:kind attribute for this resource.
|
|
abstract
void
|
setService(Service s)
Sets the service that this resource is being used with.
|
|
abstract
void
|
setUpdated(DateTime updated)
Sets the last time this resource was updated.
|
|
abstract
void
|
setVersionId(String versionId)
Sets the versionId.
|
|
From interface
com.google.gdata.data.IFeed
|
abstract
IEntry
|
createEntry()
Creates a new entry of the appropriate type for this feed.
|
|
abstract
boolean
|
getCanPost()
Returns true if this feed accepts entries POSTed to it.
|
|
abstract
List<? extends IEntry>
|
getEntries()
Returns a list of entries for this feed.
|
|
abstract
ILink
|
getEntryPostLink()
Returns the entry post link for the feed.
|
|
abstract
ILink
|
getFeedBatchLink()
Returns the link that provides the URI that can be used to batch operations
to query, insert, update and delete entries on this feed.
|
|
abstract
IGenerator
|
getGenerator()
Returns the atom:generator element on this feed.
|
|
abstract
int
|
getItemsPerPage()
Gets the number of items that will be returned per page for paged feeds.
|
|
abstract
String
|
getLogo()
Returns the value of the atom:logo element.
|
|
abstract
ILink
|
getNextLink()
Returns the link that provides the URI of next page in a paged feed.
|
|
abstract
ILink
|
getPreviousLink()
Returns the link that provides the URI of previous page in a paged feed.
|
|
abstract
int
|
getStartIndex()
Gets the starting index of the contained entries for paged feeds.
|
|
abstract
ITextConstruct
|
getSubtitle()
Returns the atom:subtitle element of this feed.
|
|
abstract
int
|
getTotalResults()
Gets the total number of results associated with this feed.
|
|
abstract
void
|
setCanPost(boolean canPost)
Sets whether this feed accepts entries POSTed to it.
|
|
abstract
IGenerator
|
setGenerator(String version, String uri, String name)
Sets the atom:generator element on this feed.
|
|
abstract
void
|
setItemsPerPage(int numResults)
Sets the number of items that will be returned per page for paged feeds.
|
|
abstract
void
|
setLogo(String logo)
Sets the value of the logo field on this feed.
|
|
abstract
void
|
setStartIndex(int startIndex)
Sets the starting index of the contained entries for paged feeds.
|
|
abstract
void
|
setTotalResults(int totalResults)
Sets the total number of results associated with this feed.
|
|
From interface
com.google.gdata.data.Kind.Adaptable
|
From interface
com.google.gdata.data.Kind.Adaptor
|
From interface
com.google.gdata.data.photos.AtomData
|
From interface
com.google.gdata.data.photos.Extensible
|
From interface
com.google.gdata.data.photos.GphotoData
|
abstract
String
|
getGphotoId()
Gets the gphoto:id of the data object.
|
|
abstract
void
|
setGphotoId(String id)
Sets the id of this feed or entry.
|
|
abstract
void
|
setGphotoId(Long id)
Sets the id of this feed or entry.
|
|
From interface
com.google.gdata.data.photos.UserData
|
abstract
Integer
|
getMaxPhotos()
The number of photos a user can have in a single album.
|
|
abstract
String
|
getNickname()
The nickname of the user.
|
|
abstract
Long
|
getQuotaLimit()
The quota limit of the user.
|
|
abstract
Long
|
getQuotaUsed()
The quota in bytes that the user has used.
|
|
abstract
String
|
getThumbnail()
A url to the user's portrait.
|
|
abstract
String
|
getUsername()
The username of the user.
|
|
abstract
void
|
setMaxPhotos(Integer max)
Set the maximum number of photos the user is allowed.
|
|
abstract
void
|
setNickname(String nickname)
Set the nickname of the user this data represents.
|
|
abstract
void
|
setQuotaLimit(Long quota)
Set the quota limit for the user this data represents.
|
|
abstract
void
|
setQuotaUsed(Long quota)
Set the used quota for the user.
|
|
abstract
void
|
setThumbnail(String thumbnail)
Set the thumbnail for the user portrait.
|
|
abstract
void
|
setUsername(String username)
Set the username for the user this data represents.
|
|