|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.introspection.ServiceDocument
public class ServiceDocument
The ServiceDocument class defines the basic Java object model representation and XML parsing/generation support for an Atom Publishing Protocol introspection document
Nested Class Summary | |
---|---|
class |
ServiceDocument.Handler
XmlParser ElementHandler for app:service |
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
Constructor Summary | |
---|---|
ServiceDocument()
|
Method Summary | |
---|---|
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 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()
|
Methods inherited from class com.google.gdata.data.ExtensionPoint |
---|
addExtension, addRepeatingExtension, declareExtensions, generateCumulativeXmlBlob, getExtension, getExtensions, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit |
Methods inherited from class com.google.gdata.data.AbstractExtension |
---|
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceDocument()
Method Detail |
---|
public java.util.List<Workspace> getWorkspaces()
IServiceDocument
getWorkspaces
in interface IServiceDocument
public void addWorkspace(Workspace workspace)
public Workspace addWorkspace(java.lang.String title)
IServiceDocument
addWorkspace
in interface IServiceDocument
public void generate(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
generate
in interface Extension
generate
in class AbstractExtension
w
- output writerextProfile
- extension profile
java.io.IOException
public void parse(ExtensionProfile extProfile, java.io.Reader reader) throws java.io.IOException, ParseException
extProfile
- extension profilereader
- XML reader
java.io.IOException
ParseException
public void parse(ExtensionProfile extProfile, java.io.InputStream inputStream) throws java.io.IOException, ParseException
extProfile
- extension profileinputStream
- XML input stream
java.io.IOException
ParseException
public XmlParser.ElementHandler getHandler(ExtensionProfile p, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs)
AbstractExtension
AttributesHandler
to handle
parsing the extension.
getHandler
in interface Extension
getHandler
in class ExtensionPoint
p
- extension profilenamespace
- extension namespacelocalName
- tag name, without the namespace prefixattrs
- tag attributes
public void processEndElement() throws ParseException
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |