org.restlet.ext.atom
Class Workspace

java.lang.Object
  extended by org.restlet.ext.atom.Workspace

public class Workspace
extends java.lang.Object

Workspace containing collections of members entries.

Author:
Jerome Louvel

Constructor Summary
Workspace(Service service)
          Constructor.
Workspace(Service service, java.lang.String title)
          Constructor.
 
Method Summary
 java.util.List<Collection> getCollections()
          Returns the list of collections.
 Service getService()
          Returns the parent service.
 java.lang.String getTitle()
          Returns the title.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Workspace

public Workspace(Service service)
Constructor.

Parameters:
service - The parent service.

Workspace

public Workspace(Service service,
                 java.lang.String title)
Constructor.

Parameters:
service - The parent service.
title - The title.
Method Detail

getCollections

public java.util.List<Collection> getCollections()
Returns the list of collections.

Returns:
The list of collections.

getService

public Service getService()
Returns the parent service.

Returns:
The parent service.

getTitle

public java.lang.String getTitle()
Returns the title.

Returns:
The title.

setService

public void setService(Service service)
Sets the parent service.

Parameters:
service - The parent service.

setTitle

public void setTitle(java.lang.String title)
Sets the title.

Parameters:
title - The title.

writeElement

public void writeElement(XmlWriter writer)
                  throws org.xml.sax.SAXException
Writes the current object as an XML element using the given SAX writer.

Parameters:
writer - The SAX writer.
Throws:
org.xml.sax.SAXException


Copyright © 2005-2008 Noelios Technologies.