public class Workspace extends ExtensionPoint implements IWorkspace
| Modifier and Type | Class and Description |
|---|---|
class |
Workspace.Handler
XmlParser ElementHandler for
app:workspace |
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandlerAbstractExtension.AttributesHandlerxmlBloblocalName, namespace| Constructor and Description |
|---|
Workspace() |
Workspace(TextConstruct title) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCollection(Collection coll) |
Collection |
addCollection(java.lang.String collectionUri,
java.lang.String title,
java.lang.String... acceptedTypes)
Add a new collection to the list of collections associated with this
workspace.
|
void |
consumeAttributes(AttributeHelper attrHelper)
Consumes attributes from the attribute helper.
|
void |
generate(XmlWriter w,
ExtensionProfile extProfile)
Generates an XML representation for the extension.
|
java.util.List<Collection> |
getCollections()
Returns the collections associated with this workspace.
|
XmlParser.ElementHandler |
getHandler(ExtensionProfile p,
java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
The default implementation uses the
AbstractExtension.AttributesHandler to handle
parsing the extension. |
TextConstruct |
getTitle() |
void |
processEndElement() |
void |
setTitle(TextConstruct v) |
protected void |
visitChildren(ExtensionVisitor ev)
Called to visit all children of this extension point.
|
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, visitChilddisableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validatepublic Workspace()
public Workspace(TextConstruct title)
public TextConstruct getTitle()
public void setTitle(TextConstruct v)
public java.util.List<Collection> getCollections()
IWorkspacegetCollections in interface IWorkspacepublic void addCollection(Collection coll)
public Collection addCollection(java.lang.String collectionUri, java.lang.String title, java.lang.String... acceptedTypes)
IWorkspaceaddCollection in interface IWorkspaceprotected void visitChildren(ExtensionVisitor ev) throws ExtensionVisitor.StoppedException
ExtensionPointvisitChildren in class ExtensionPointev - the extension visitor.ExtensionVisitor.StoppedExceptionpublic void generate(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
Extensiongenerate in interface Extensiongenerate in class AbstractExtensionw - XML writerextProfile - extension profilejava.io.IOExceptionpublic void consumeAttributes(AttributeHelper attrHelper) throws ParseException
AbstractExtensionAttributeHelper.consumeContent(boolean) to consume the element's text
content. Called from AbstractExtension.getHandler(com.google.gdata.data.ExtensionProfile, java.lang.String, java.lang.String, org.xml.sax.Attributes). Default implementation does
nothing, though generally this is discouraged unless there really are no
attributes.consumeAttributes in class AbstractExtensionattrHelper - attribute helperParseException - any parsing exceptionpublic XmlParser.ElementHandler getHandler(ExtensionProfile p, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs)
AbstractExtensionAbstractExtension.AttributesHandler to handle
parsing the extension.getHandler in interface ExtensiongetHandler in class ExtensionPointp - extension profilenamespace - extension namespacelocalName - tag name, without the namespace prefixattrs - tag attributespublic void processEndElement()
throws ParseException
ParseException