com.frevvo.forms.client
Class SchemaEntry

java.lang.Object
  extended by com.google.gdata.data.AbstractExtension
      extended by com.google.gdata.data.ExtensionPoint
          extended by com.google.gdata.data.BaseEntry<E>
              extended by com.google.gdata.data.media.MediaEntry<SchemaEntry>
                  extended by com.frevvo.forms.client.SchemaEntry
All Implemented Interfaces:
com.google.gdata.data.Extension, com.google.gdata.data.IAtom, com.google.gdata.data.IEntry, com.google.gdata.data.Kind.Adaptable, com.google.gdata.data.Kind.Adaptor, com.google.gdata.data.media.IMediaEntry

public class SchemaEntry
extends com.google.gdata.data.media.MediaEntry<SchemaEntry>

This entry represents a single Schema created by a user. It is also always owned/contained by an ApplicationEntry.

This entry does not contain any owned/contained feeds.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gdata.data.BaseEntry
com.google.gdata.data.BaseEntry.AtomHandler, com.google.gdata.data.BaseEntry.EntryState
 
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 REL_DOCUMENTTYPES
           
static java.lang.String SCHEMA_ENTRY_URL_FORMAT
           
 
Fields inherited from class com.google.gdata.data.BaseEntry
state
 
Fields inherited from class com.google.gdata.data.ExtensionPoint
xmlBlob
 
Fields inherited from class com.google.gdata.data.AbstractExtension
localName, namespace
 
Constructor Summary
SchemaEntry()
          Constructs a new Entry instance
 
Method Summary
 void declareExtensions(com.google.gdata.data.ExtensionProfile extProfile)
          Initializes an ExtensionProfile based upon the extensions expected by an this entry.
 DocumentTypeFeed getDocumentTypeFeed()
           Get the DocumentTypeFeed owned by this entry.
 com.google.gdata.data.Link getDocumentTypeFeedLink()
           Get the DocumentTypeFeed link owned by this entry.
static java.net.URL getEntryURL(java.net.URL baseUrl, java.lang.String id)
          Gets an URL for accessing an schema entry
 ApplicationEntry getOnwerEntry()
           Get the ApplicationEntry that owns this feed.
 java.lang.String getOwnerId()
           Get the application id that owns this feed.
 SchemaEntry update()
           
 SchemaEntry updateMedia(boolean arg0)
           
 
Methods inherited from class com.google.gdata.data.media.MediaEntry
getContentHandlerInfo, getMediaEditLink, getMediaSource, setMediaSource, setService
 
Methods inherited from class com.google.gdata.data.BaseEntry
addAdaptor, addHtmlLink, addLink, addLink, delete, generate, generateAtom, generateRss, getAdaptedEntry, getAdaptor, getAdaptors, getAuthors, getCanEdit, getCategories, getContent, getContributors, getEdited, getEditLink, getEtag, getHandler, getHtmlLink, getId, getKind, getLink, getLinks, getLinks, getPlainTextContent, getPubControl, getPublished, getRights, getSelf, getSelfLink, getService, getSource, getSummary, getTextContent, getTitle, getUpdated, getVersionId, isDraft, parseAtom, parseAtom, parseAtom, readEntry, readEntry, removeLinks, removeLinks, setCanEdit, setContent, setContent, setDraft, setEdited, setEtag, setId, setKind, setPubControl, setPublished, setRights, setSource, setSummary, setTitle, setUpdated, setVersionId, visitChildren
 
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.IEntry
getCanEdit, getContent, getEdited, getEditLink, getPublished, getSummary, setCanEdit, setEdited, setPublished
 
Methods inherited from interface com.google.gdata.data.IAtom
addLink, getAuthors, getCategories, getEtag, getId, getKind, getLink, getLinks, getSelfLink, getTitle, getUpdated, getVersionId, removeLinks, removeLinks, setEtag, setId, setKind, setUpdated, setVersionId
 

Field Detail

REL_DOCUMENTTYPES

public static final java.lang.String REL_DOCUMENTTYPES
See Also:
Constant Field Values

SCHEMA_ENTRY_URL_FORMAT

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

SchemaEntry

public SchemaEntry()
Constructs a new Entry instance

Method Detail

getEntryURL

public static java.net.URL getEntryURL(java.net.URL baseUrl,
                                       java.lang.String id)
                                throws java.net.MalformedURLException
Gets an URL for accessing an schema entry

Parameters:
id - the schema entry id
Returns:
The entry URL
Throws:
java.net.MalformedURLException

declareExtensions

public void declareExtensions(com.google.gdata.data.ExtensionProfile extProfile)
Initializes an ExtensionProfile based upon the extensions expected by an this entry.

Specified by:
declareExtensions in interface com.google.gdata.data.Kind.Adaptor
Overrides:
declareExtensions in class com.google.gdata.data.ExtensionPoint

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

getOnwerEntry

public ApplicationEntry getOnwerEntry()
                               throws com.google.gdata.util.ServiceException,
                                      java.io.IOException

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

getDocumentTypeFeedLink

public com.google.gdata.data.Link getDocumentTypeFeedLink()

Get the DocumentTypeFeed link owned by this entry. Each form always has one from scratch DocumentTypeEntry and zero or more DocumentTypeEntry's from uploaded schemas

Invoking this method will not hit the server.

Returns:
The DocumentTypeFeed link

getDocumentTypeFeed

public DocumentTypeFeed getDocumentTypeFeed()
                                     throws java.net.MalformedURLException,
                                            java.io.IOException,
                                            com.google.gdata.util.ServiceException

Get the DocumentTypeFeed owned by this entry.

Invoking this method will hit the server.

Returns:
The DocumentTypeFeed
Throws:
java.io.IOException
com.google.gdata.util.ServiceException
java.net.MalformedURLException

update

public SchemaEntry update()
                   throws java.io.IOException,
                          com.google.gdata.util.ServiceException
Overrides:
update in class com.google.gdata.data.BaseEntry<SchemaEntry>
Throws:
java.io.IOException
com.google.gdata.util.ServiceException

updateMedia

public SchemaEntry updateMedia(boolean arg0)
                        throws java.io.IOException,
                               com.google.gdata.util.ServiceException
Overrides:
updateMedia in class com.google.gdata.data.media.MediaEntry<SchemaEntry>
Throws:
java.io.IOException
com.google.gdata.util.ServiceException


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