public class Workspace
extends java.lang.Object
Constructor and Description |
---|
Workspace(Service service)
Constructor.
|
Workspace(Service service,
java.lang.String title)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Reference |
getBaseReference()
Returns the base reference used to resolve relative references found
within the scope of the xml:base attribute.
|
java.util.List<Collection> |
getCollections()
Returns the list of collections.
|
Service |
getService()
Returns the parent service.
|
java.lang.String |
getTitle()
Returns the title.
|
void |
setBaseReference(Reference baseReference)
Sets the base reference used to resolve relative references found within
the scope of the xml:base attribute.
|
void |
setService(Service service)
Sets the parent service.
|
void |
setTitle(java.lang.String title)
Sets the title.
|
void |
writeElement(XmlWriter writer)
Writes the current object as an XML element using the given SAX writer.
|
public Workspace(Service service)
service
- The parent service.public Workspace(Service service, java.lang.String title)
service
- The parent service.title
- The title.public Reference getBaseReference()
public java.util.List<Collection> getCollections()
public Service getService()
public java.lang.String getTitle()
public void setBaseReference(Reference baseReference)
baseReference
- The base reference used to resolve relative references found
within the scope of the xml:base attribute.public void setService(Service service)
service
- The parent service.public void setTitle(java.lang.String title)
title
- The title.public void writeElement(XmlWriter writer) throws org.xml.sax.SAXException
writer
- The SAX writer.org.xml.sax.SAXException
Copyright © 2005-2020 Restlet.