com.frevvo.forms.client.ext
Class TemplateExtension

java.lang.Object
  extended by com.google.gdata.data.AbstractExtension
      extended by com.google.gdata.data.ExtensionPoint
          extended by com.frevvo.forms.client.ext.TemplateExtension
All Implemented Interfaces:
Extension

public class TemplateExtension
extends ExtensionPoint
implements Extension


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
 
Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension
AbstractExtension.AttributesHandler
 
Field Summary
static String TEMPLATE_ELEMENT
           
static String TEMPLATE_ID_ATTRIBUTE
           
protected  String templateId
           
 
Fields inherited from class com.google.gdata.data.ExtensionPoint
xmlBlob
 
Fields inherited from class com.google.gdata.data.AbstractExtension
localName, namespace
 
Constructor Summary
TemplateExtension()
           
TemplateExtension(String ownerId)
           
 
Method Summary
 void generate(com.google.gdata.util.common.xml.XmlWriter w, ExtensionProfile extProfile)
           
static ExtensionDescription getDefaultDescription()
          Returns the suggested extension description.
 XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)
           
 String getTemplateId()
           
static String getTemplateId(ExtensionPoint extPoint)
           
static void setTemplateId(ExtensionPoint extPoint, String id)
           
 void setTemplateId(String id)
           
 
Methods inherited from class com.google.gdata.data.ExtensionPoint
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, declareExtensions, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild, visitChildren
 
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

TEMPLATE_ELEMENT

public static final String TEMPLATE_ELEMENT
See Also:
Constant Field Values

TEMPLATE_ID_ATTRIBUTE

public static final String TEMPLATE_ID_ATTRIBUTE
See Also:
Constant Field Values

templateId

protected String templateId
Constructor Detail

TemplateExtension

public TemplateExtension()

TemplateExtension

public TemplateExtension(String ownerId)
Method Detail

getTemplateId

public static String getTemplateId(ExtensionPoint extPoint)

setTemplateId

public static void setTemplateId(ExtensionPoint extPoint,
                                 String id)

getTemplateId

public String getTemplateId()

setTemplateId

public void setTemplateId(String id)

getDefaultDescription

public static ExtensionDescription getDefaultDescription()
Returns the suggested extension description.


generate

public void generate(com.google.gdata.util.common.xml.XmlWriter w,
                     ExtensionProfile extProfile)
              throws IOException
Specified by:
generate in interface Extension
Overrides:
generate in class AbstractExtension
Throws:
IOException

getHandler

public XmlParser.ElementHandler getHandler(ExtensionProfile extProfile,
                                           String namespace,
                                           String localName,
                                           Attributes attrs)
                                    throws ParseException
Specified by:
getHandler in interface Extension
Overrides:
getHandler in class ExtensionPoint
Throws:
ParseException


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