com.frevvo.forms.client
Class FormTypeFeed

java.lang.Object
  extended by com.google.gdata.data.AbstractExtension
      extended by com.google.gdata.data.ExtensionPoint
          extended by com.google.gdata.data.Source
              extended by com.google.gdata.data.BaseFeed<F,E>
                  extended by com.google.gdata.data.media.MediaFeed<FormTypeFeed,FormTypeEntry>
                      extended by com.frevvo.forms.client.FormTypeFeed
All Implemented Interfaces:
com.google.gdata.data.Extension, com.google.gdata.data.IAtom, com.google.gdata.data.IFeed, com.google.gdata.data.Kind.Adaptable, com.google.gdata.data.Kind.Adaptor

public class FormTypeFeed
extends com.google.gdata.data.media.MediaFeed<FormTypeFeed,FormTypeEntry>

This feed contains a list of FormTypeEntry's and can also be used to create new FormTypeEntry's.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gdata.data.BaseFeed
com.google.gdata.data.BaseFeed.FeedHandler, com.google.gdata.data.BaseFeed.FeedState
 
Nested classes/interfaces inherited from class com.google.gdata.data.Source
com.google.gdata.data.Source.SourceHandler, com.google.gdata.data.Source.SourceState
 
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint
com.google.gdata.data.ExtensionPoint.CumulativeBlobHandler, com.google.gdata.data.ExtensionPoint.ExtensionHandler
 
Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension
com.google.gdata.data.AbstractExtension.AttributesHandler
 
Field Summary
static java.lang.String FORMTYPES_FEED_URL_FORMAT
           
 
Fields inherited from class com.google.gdata.data.BaseFeed
entries, entryClass, feedState
 
Fields inherited from class com.google.gdata.data.Source
srcState
 
Fields inherited from class com.google.gdata.data.ExtensionPoint
xmlBlob
 
Fields inherited from class com.google.gdata.data.AbstractExtension
localName, namespace
 
Constructor Summary
FormTypeFeed()
          Constructs a new Feed instance
 
Method Summary
 FormTypeEntry createEntry()
           
 FormTypeEntry createEntry(ApplicationEntry appEntry)
           Create a new FormTypeEntry using the given ApplicationEntry as the owner.
 com.google.gdata.data.Link getEntryPostLink()
           
static java.net.URL getFeedURL(java.net.URL baseUrl)
          Gets an URL for accessing the FormType feed
 ApplicationEntry getOwnerEntry()
           Get the ApplicationEntry that owns this feed.
 java.lang.String getOwnerId()
           Get the application id that owns this feed.
 FormTypeEntry uploadFormType(java.io.InputStream is)
           Upload a FormTypeEntry from a previously downloaded archive.
 FormTypeEntry uploadFormType(java.io.InputStream is, boolean replace)
           Upload a FormTypeEntry from a previously downloaded archive.
 
Methods inherited from class com.google.gdata.data.media.MediaFeed
insert, insert, setService
 
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, insert, 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
 
Methods inherited from interface com.google.gdata.data.IFeed
getLogo, setLogo
 
Methods inherited from interface com.google.gdata.data.IAtom
getAuthors, getCategories, getId, getLinks, getUpdated, removeLinks, removeLinks, setId, setUpdated
 

Field Detail

FORMTYPES_FEED_URL_FORMAT

public static final java.lang.String FORMTYPES_FEED_URL_FORMAT
See Also:
Constant Field Values
Constructor Detail

FormTypeFeed

public FormTypeFeed()
Constructs a new Feed instance

Method Detail

getFeedURL

public static java.net.URL getFeedURL(java.net.URL baseUrl)
                               throws java.net.MalformedURLException
Gets an URL for accessing the FormType feed

Returns:
the feed URL
Throws:
java.net.MalformedURLException

getEntryPostLink

public com.google.gdata.data.Link getEntryPostLink()
Specified by:
getEntryPostLink in interface com.google.gdata.data.IFeed
Overrides:
getEntryPostLink in class com.google.gdata.data.BaseFeed<FormTypeFeed,FormTypeEntry>

getOwnerId

public java.lang.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:
com.google.gdata.util.ServiceException
java.io.IOException

createEntry

public FormTypeEntry createEntry()
Specified by:
createEntry in interface com.google.gdata.data.IFeed
Overrides:
createEntry in class com.google.gdata.data.BaseFeed<FormTypeFeed,FormTypeEntry>

createEntry

public FormTypeEntry createEntry(ApplicationEntry appEntry)

Create a new FormTypeEntry using the given ApplicationEntry as the owner.

You only need to use this method instead of the createEntry() when inserting a FormTypeEntry into a global ApplicationFeed, i.e. a feed without an ownerId.

Parameters:
appEntry - The owner entry
Returns:
The new FormTypeEntry with the ownerId set

uploadFormType

public FormTypeEntry uploadFormType(java.io.InputStream is)
                             throws com.google.gdata.util.ServiceException,
                                    java.io.IOException

Upload a FormTypeEntry from a previously downloaded archive. If a FormTypeEntry with the same id already exists it will replaced.

Parameters:
is - The archive input stream
Returns:
The uploaded FormType
Throws:
com.google.gdata.util.ServiceException
java.io.IOException

uploadFormType

public FormTypeEntry uploadFormType(java.io.InputStream is,
                                    boolean replace)
                             throws com.google.gdata.util.ServiceException,
                                    java.io.IOException

Upload a FormTypeEntry from a previously downloaded archive. If a FormTypeEntry with the same id already exists, it will be replaced. Otherwise, the archive will be uploaded with the same id.

Parameters:
is - The input stream to the archive
replace - true will replace an existing form, otherwise a copy will be created
Returns:
Throws:
com.google.gdata.util.ServiceException
java.io.IOException


Copyright © 2006-2011 frevvo Inc. All Rights Reserved.