com.frevvo.forms.client
Class ControlTypeEntry

java.lang.Object
  extended by com.google.gdata.data.AbstractExtension
      extended by com.google.gdata.data.ExtensionPoint
          extended by com.google.gdata.data.BaseEntry<ControlTypeEntry>
              extended by com.frevvo.forms.client.ControlTypeEntry
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

public class ControlTypeEntry
extends com.google.gdata.data.BaseEntry<ControlTypeEntry>
implements com.google.gdata.data.Extension

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

This entry does not contain any owned/contained feeds.


Nested Class Summary
static interface ControlTypeEntry.Option
           
protected  class ControlTypeEntry.OptionHandler
           
 
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 COMMENTENABLED_ELEMENT
           
static java.lang.String CONTROLTYPE_ENTRY_URL_FORMAT
           
static java.lang.String ID_ATTRIBUTE
           
static java.lang.String OPTION_ELEMENT
           
static java.lang.String OPTION_LABEL_ATTRIBUTE
           
static java.lang.String OPTION_SELECTED_ATTRIBUTE
           
static java.lang.String OPTION_VALUE_ATTRIBUTE
           
static java.lang.String OPTIONS_ELEMENT
           
static java.lang.String READONLY_ELEMENT
           
static java.lang.String REL_CONTROLTYPE
           
static java.lang.String REL_PARENTCONTROLTYPE
           
static java.lang.String REQUIRED_ELEMENT
           
static java.lang.String SCHEME_CONTROLTYPE
           
static java.lang.String SCHEME_DISPLAYTYPE
           
static java.lang.String TYPE_ELEMENT
           
static java.lang.String VALUE_ATTRIBUTE
           
 
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
ControlTypeEntry()
          Constructs a new Entry instance
 
Method Summary
 void declareExtensions(com.google.gdata.data.ExtensionProfile extProfile)
           
 void delete()
           
 void generate(com.google.gdata.util.common.xml.XmlWriter w, com.google.gdata.data.ExtensionProfile extProfile)
           
 java.lang.String getControlType()
          Get the ControlType category for this ControlType entry.
static com.google.gdata.data.ExtensionDescription getCustomDescription()
           
 java.lang.String getDisplayType()
          Get the Display Type category for this ControlType entry.
static java.net.URL getEntryURL(java.net.URL baseUrl, java.lang.String id)
          Gets an URL for accessing an FormType entry
<T extends com.google.gdata.data.Extension>
T
getExtension(java.lang.Class<T> extensionClass)
           
 com.google.gdata.util.XmlParser.ElementHandler getHandler(com.google.gdata.data.ExtensionProfile p, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs)
           
 java.util.List<ControlTypeEntry.Option> getOptions()
           
static com.google.gdata.data.ExtensionDescription getOptionsDescription()
           
 ControlTypeEntry getParentEntry()
           Get the Parent ControlType entry for this entry
 com.google.gdata.data.Link getParentEntryLink()
           Get the Parent ControlType entry link for this entry
static com.google.gdata.data.ExtensionDescription getReadOnlyDescription()
           
static com.google.gdata.data.ExtensionDescription getRequiredDescription()
          Returns the suggested extension description.
 java.lang.String getTypeId()
           
 boolean isCommentEnabled()
          Is this control readonly?
 boolean isReadonly()
          Is this control readonly?
 boolean isRequired()
          Is this control required?
 ControlTypeEntry update()
           
 
Methods inherited from class com.google.gdata.data.BaseEntry
addAdaptor, addHtmlLink, addLink, addLink, generateAtom, generateRss, getAdaptedEntry, getAdaptor, getAdaptors, getAuthors, getCanEdit, getCategories, getContent, getContentHandlerInfo, getContributors, getEdited, getEditLink, getEtag, getHtmlLink, getId, getKind, getLink, getLinks, getLinks, getMediaEditLink, 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, setService, 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, 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
 

Field Detail

REL_CONTROLTYPE

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

REL_PARENTCONTROLTYPE

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

SCHEME_CONTROLTYPE

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

SCHEME_DISPLAYTYPE

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

CONTROLTYPE_ENTRY_URL_FORMAT

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

REQUIRED_ELEMENT

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

READONLY_ELEMENT

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

COMMENTENABLED_ELEMENT

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

VALUE_ATTRIBUTE

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

ID_ATTRIBUTE

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

TYPE_ELEMENT

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

OPTIONS_ELEMENT

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

OPTION_ELEMENT

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

OPTION_LABEL_ATTRIBUTE

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

OPTION_VALUE_ATTRIBUTE

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

OPTION_SELECTED_ATTRIBUTE

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

ControlTypeEntry

public ControlTypeEntry()
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 FormType entry

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

getRequiredDescription

public static com.google.gdata.data.ExtensionDescription getRequiredDescription()
Returns the suggested extension description.


getReadOnlyDescription

public static com.google.gdata.data.ExtensionDescription getReadOnlyDescription()

getCustomDescription

public static com.google.gdata.data.ExtensionDescription getCustomDescription()

getOptionsDescription

public static com.google.gdata.data.ExtensionDescription getOptionsDescription()

declareExtensions

public void declareExtensions(com.google.gdata.data.ExtensionProfile extProfile)
Specified by:
declareExtensions in interface com.google.gdata.data.Kind.Adaptor
Overrides:
declareExtensions in class com.google.gdata.data.ExtensionPoint

getControlType

public java.lang.String getControlType()

Get the ControlType category for this ControlType entry.

Here is a summary of the control types and their display types:

Returns:

getDisplayType

public java.lang.String getDisplayType()
Get the Display Type category for this ControlType entry. See getControlType() for a list of possible display types

Returns:
The display type

getParentEntryLink

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

Get the Parent ControlType entry link for this entry

Returns:
The ControlTypeFeed link

getParentEntry

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

Get the Parent ControlType entry for this entry

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

isRequired

public boolean isRequired()
Is this control required?

Returns:
true if required, false otherwise

isReadonly

public boolean isReadonly()
Is this control readonly?

Returns:
true if readonly, false otherwise

getOptions

public java.util.List<ControlTypeEntry.Option> getOptions()

isCommentEnabled

public boolean isCommentEnabled()
Is this control readonly?

Returns:
true if readonly, false otherwise

getTypeId

public java.lang.String getTypeId()

update

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

delete

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

getExtension

public <T extends com.google.gdata.data.Extension> T getExtension(java.lang.Class<T> extensionClass)
Overrides:
getExtension in class com.google.gdata.data.ExtensionPoint

generate

public void generate(com.google.gdata.util.common.xml.XmlWriter w,
                     com.google.gdata.data.ExtensionProfile extProfile)
              throws java.io.IOException
Specified by:
generate in interface com.google.gdata.data.Extension
Overrides:
generate in class com.google.gdata.data.BaseEntry<ControlTypeEntry>
Throws:
java.io.IOException

getHandler

public com.google.gdata.util.XmlParser.ElementHandler getHandler(com.google.gdata.data.ExtensionProfile p,
                                                                 java.lang.String namespace,
                                                                 java.lang.String localName,
                                                                 org.xml.sax.Attributes attrs)
Specified by:
getHandler in interface com.google.gdata.data.Extension
Overrides:
getHandler in class com.google.gdata.data.BaseEntry<ControlTypeEntry>


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