public class ServiceDocument extends ExtensionPoint implements IServiceDocument
| Modifier and Type | Class and Description |
|---|---|
class |
ServiceDocument.Handler
XmlParser ElementHandler for
app:service |
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandlerAbstractExtension.AttributesHandlerxmlBloblocalName, namespace| Constructor and Description |
|---|
ServiceDocument() |
| Modifier and Type | Method and Description |
|---|---|
Workspace |
addWorkspace(java.lang.String title)
Add a new workspace to the service document, returning the newly created
workspace to the caller.
|
void |
addWorkspace(Workspace workspace) |
void |
generate(XmlWriter w,
ExtensionProfile extProfile)
Generates XML.
|
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. |
java.util.List<Workspace> |
getWorkspaces()
Returns the workspaces associated with this service.
|
void |
parse(ExtensionProfile extProfile,
java.io.InputStream inputStream)
Parses XML from an InputStream.
|
void |
parse(ExtensionProfile extProfile,
java.io.Reader reader)
Parses XML from a Reader.
|
void |
processEndElement() |
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, visitChildconsumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validatepublic java.util.List<Workspace> getWorkspaces()
IServiceDocumentgetWorkspaces in interface IServiceDocumentpublic void addWorkspace(Workspace workspace)
public Workspace addWorkspace(java.lang.String title)
IServiceDocumentaddWorkspace in interface IServiceDocumentprotected 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
generate in interface Extensiongenerate in class AbstractExtensionw - output writerextProfile - extension profilejava.io.IOExceptionpublic void parse(ExtensionProfile extProfile, java.io.Reader reader) throws java.io.IOException, ParseException
extProfile - extension profilereader - XML readerjava.io.IOExceptionParseExceptionpublic void parse(ExtensionProfile extProfile, java.io.InputStream inputStream) throws java.io.IOException, ParseException
extProfile - extension profileinputStream - XML input streamjava.io.IOExceptionParseExceptionpublic 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