com.frevvo.forms.client
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.
Modifier and Type | Class and Description |
---|---|
static interface |
ControlTypeEntry.Option |
protected class |
ControlTypeEntry.OptionHandler |
com.google.gdata.data.BaseEntry.AtomHandler, com.google.gdata.data.BaseEntry.EntryState
Modifier and Type | Field and Description |
---|---|
static String |
COMMENTENABLED_ELEMENT |
static String |
CONTROLTYPE_ENTRY_URL_FORMAT |
static String |
ID_ATTRIBUTE |
static String |
OPTION_ELEMENT |
static String |
OPTION_LABEL_ATTRIBUTE |
static String |
OPTION_SELECTED_ATTRIBUTE |
static String |
OPTION_VALUE_ATTRIBUTE |
static String |
OPTIONS_ELEMENT |
static String |
READONLY_ELEMENT |
static String |
REL_CONTROLTYPE |
static String |
REL_PARENTCONTROLTYPE |
static String |
REQUIRED_ELEMENT |
static String |
SCHEME_CONTROLTYPE |
static String |
SCHEME_DISPLAYTYPE |
static String |
TYPE_ELEMENT |
static String |
VALUE_ATTRIBUTE |
Constructor and Description |
---|
ControlTypeEntry()
Constructs a new Entry instance
|
Modifier and Type | Method and Description |
---|---|
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) |
String |
getControlType()
Get the ControlType category for this ControlType entry.
|
static com.google.gdata.data.ExtensionDescription |
getCustomDescription() |
String |
getDisplayType()
Get the Display Type category for this ControlType entry.
|
static URL |
getEntryURL(URL baseUrl,
String id)
Gets an URL for accessing an FormType entry
|
<T extends com.google.gdata.data.Extension> |
getExtension(Class<T> extensionClass) |
com.google.gdata.util.XmlParser.ElementHandler |
getHandler(com.google.gdata.data.ExtensionProfile p,
String namespace,
String localName,
Attributes attrs) |
org.json.JSONObject |
getJsonState() |
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.
|
String |
getTypeId() |
boolean |
isCommentEnabled()
Is this control readonly?
|
boolean |
isReadonly()
Is this control readonly?
|
boolean |
isRequired()
Is this control required?
|
ControlTypeEntry |
update() |
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
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
public static final String REL_CONTROLTYPE
public static final String REL_PARENTCONTROLTYPE
public static final String SCHEME_CONTROLTYPE
public static final String SCHEME_DISPLAYTYPE
public static final String CONTROLTYPE_ENTRY_URL_FORMAT
public static final String REQUIRED_ELEMENT
public static final String READONLY_ELEMENT
public static final String COMMENTENABLED_ELEMENT
public static final String VALUE_ATTRIBUTE
public static final String ID_ATTRIBUTE
public static final String TYPE_ELEMENT
public static final String OPTIONS_ELEMENT
public static final String OPTION_ELEMENT
public static final String OPTION_LABEL_ATTRIBUTE
public static final String OPTION_VALUE_ATTRIBUTE
public static final String OPTION_SELECTED_ATTRIBUTE
public static URL getEntryURL(URL baseUrl, String id) throws MalformedURLException
id
- the theme entry idMalformedURLException
public static com.google.gdata.data.ExtensionDescription getRequiredDescription()
public static com.google.gdata.data.ExtensionDescription getReadOnlyDescription()
public static com.google.gdata.data.ExtensionDescription getCustomDescription()
public static com.google.gdata.data.ExtensionDescription getOptionsDescription()
public void declareExtensions(com.google.gdata.data.ExtensionProfile extProfile)
declareExtensions
in interface com.google.gdata.data.Kind.Adaptor
declareExtensions
in class com.google.gdata.data.ExtensionPoint
public String getControlType()
Get the ControlType category for this ControlType entry.
Here is a summary of the control types and their display types:
public String getDisplayType()
getControlType()
for a list of possible display typespublic com.google.gdata.data.Link getParentEntryLink()
Get the Parent ControlType entry link for this entry
public ControlTypeEntry getParentEntry() throws MalformedURLException, IOException, com.google.gdata.util.ServiceException
Get the Parent ControlType entry for this entry
IOException
com.google.gdata.util.ServiceException
MalformedURLException
public boolean isRequired()
public boolean isReadonly()
public List<ControlTypeEntry.Option> getOptions()
public boolean isCommentEnabled()
public String getTypeId()
public ControlTypeEntry update() throws IOException, com.google.gdata.util.ServiceException
update
in class com.google.gdata.data.BaseEntry<ControlTypeEntry>
IOException
com.google.gdata.util.ServiceException
public void delete() throws IOException, com.google.gdata.util.ServiceException
delete
in class com.google.gdata.data.BaseEntry<ControlTypeEntry>
IOException
com.google.gdata.util.ServiceException
public org.json.JSONObject getJsonState() throws org.json.JSONException
org.json.JSONException
public <T extends com.google.gdata.data.Extension> T getExtension(Class<T> extensionClass)
getExtension
in class com.google.gdata.data.ExtensionPoint
public void generate(com.google.gdata.util.common.xml.XmlWriter w, com.google.gdata.data.ExtensionProfile extProfile) throws IOException
generate
in interface com.google.gdata.data.Extension
generate
in class com.google.gdata.data.BaseEntry<ControlTypeEntry>
IOException
public com.google.gdata.util.XmlParser.ElementHandler getHandler(com.google.gdata.data.ExtensionProfile p, String namespace, String localName, Attributes attrs)
getHandler
in interface com.google.gdata.data.Extension
getHandler
in class com.google.gdata.data.BaseEntry<ControlTypeEntry>
Copyright © 2006–2015 frevvo Inc. All rights reserved.