com.frevvo.forms.client
Class SchemaFeed
java.lang.Object
com.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.Source
com.google.gdata.data.BaseFeed<F,E>
com.google.gdata.data.media.MediaFeed<SchemaFeed,SchemaEntry>
com.frevvo.forms.client.SchemaFeed
- All Implemented Interfaces:
- Extension, IAtom, IFeed, Kind.Adaptable, Kind.Adaptor
public class SchemaFeed
- extends MediaFeed<SchemaFeed,SchemaEntry>
This feed contains a list of SchemaEntry's and can be used to
create new SchemaEntry's.
|
Constructor Summary |
SchemaFeed()
Constructs a new Feed instance |
| Methods inherited from class com.google.gdata.data.BaseFeed |
addAdaptor, declareExtensions, generate, generateAtom, generateFeedEnd, generateFeedStart, generateRss, getAdaptedFeed, getAdaptor, getAdaptors, getCanPost, getEntries, getEntries, getEtag, getFeedBatchLink, getHandler, getItemsPerPage, getKind, getNextLink, getPreviousLink, getSelf, getSelfLink, getService, getStartIndex, getTotalResults, getVersionId, parseAtom, parseAtom, parseAtom, readFeed, readFeed, setCanPost, setEntries, setEtag, setItemsPerPage, setKind, setStartIndex, setTotalResults, setVersionId, visitChildren |
| Methods inherited from class com.google.gdata.data.Source |
addHtmlLink, addLink, generateInnerAtom, getAuthors, getCategories, getContributors, getHtmlLink, getIcon, getId, getLinks, getLinks, getLogo, getRights, getUpdated, removeLinks, removeLinks, setGenerator, setIcon, setId, setLogo, setRights, setSubtitle, setTitle, setUpdated |
| Methods inherited from class com.google.gdata.data.ExtensionPoint |
addExtension, 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, visitChild |
| Methods inherited from class com.google.gdata.data.AbstractExtension |
consumeAttributes, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCHEMAS_FEED_URL_FORMAT
public static final String SCHEMAS_FEED_URL_FORMAT
- See Also:
- Constant Field Values
SchemaFeed
public SchemaFeed()
- Constructs a new Feed instance
getFeedURL
public static URL getFeedURL(URL baseUrl)
throws MalformedURLException
- Gets an URL for accessing the Schema feed
- Returns:
- the feed URL
- Throws:
MalformedURLException
getEntryPostLink
public Link getEntryPostLink()
- Specified by:
getEntryPostLink in interface IFeed- Overrides:
getEntryPostLink in class BaseFeed<SchemaFeed,SchemaEntry>
getOwnerId
public String getOwnerId()
Get the application id that owns this feed.
You can use the ownerId to get the ApplicationEntry associated with this
SchemaFeed.
- Returns:
- The ownerId
getOwnerEntry
public ApplicationEntry getOwnerEntry()
Get the ApplicationEntry that owns this feed.
This method differs from the getOwnerId() method in that it
returns the associated ApplicationEntry as opposed to
returning the ownerId.
- Returns:
- The user entry
- Throws:
ServiceException
IOException
createEntry
public SchemaEntry createEntry()
- Specified by:
createEntry in interface IFeed- Overrides:
createEntry in class BaseFeed<SchemaFeed,SchemaEntry>
createEntry
public SchemaEntry createEntry(ApplicationEntry appEntry)
Create a new SchemaEntry using the given ApplicationEntry as the owner.
You only need to use this method instead of the
createEntry() when inserting a SchemaEntry into a global
ApplicationFeed, i.e. a feed without an ownerId.
- Parameters:
appEntry - The owner entry
- Returns:
- The created SchemaEntry with ownerId set
insert
public <T extends SchemaEntry> T insert(T arg0)
throws ServiceException,
IOException
- Overrides:
insert in class BaseFeed<SchemaFeed,SchemaEntry>
- Throws:
ServiceException
IOException
Copyright © 2006-2011 frevvo Inc. All Rights Reserved.