de.twenty11.skysail.server.restlet
Class ResourcesInfo

java.lang.Object
  extended by de.twenty11.skysail.server.restlet.DocumentedInfo
      extended by de.twenty11.skysail.server.restlet.ResourcesInfo

public class ResourcesInfo
extends DocumentedInfo


Constructor Summary
ResourcesInfo()
          Constructor.
ResourcesInfo(DocumentationInfo documentation)
          Constructor with a single documentation element.
ResourcesInfo(List<DocumentationInfo> documentations)
          Constructor with a list of documentation elements.
ResourcesInfo(String documentation)
          Constructor with a single documentation element.
 
Method Summary
 org.restlet.data.Reference getBaseRef()
          Returns the base URI for each child resource identifier.
 List<ResourceInfo> getResources()
          Returns the list of child resources.
 void setBaseRef(org.restlet.data.Reference baseRef)
          Sets the base URI for each child resource identifier.
 void setResources(List<ResourceInfo> resources)
          Sets the list of child resources.
 String toString()
           
 void updateNamespaces(Map<String,String> namespaces)
          Completes the given map of namespaces with the namespaces used in the documentation elements.
 
Methods inherited from class de.twenty11.skysail.server.restlet.DocumentedInfo
getDocumentations, resolveNamespaces, setDocumentation, setDocumentation, setDocumentations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourcesInfo

public ResourcesInfo()
Constructor.


ResourcesInfo

public ResourcesInfo(DocumentationInfo documentation)
Constructor with a single documentation element.

Parameters:
documentation - A single documentation element.

ResourcesInfo

public ResourcesInfo(List<DocumentationInfo> documentations)
Constructor with a list of documentation elements.

Parameters:
documentations - The list of documentation elements.

ResourcesInfo

public ResourcesInfo(String documentation)
Constructor with a single documentation element.

Parameters:
documentation - A single documentation element.
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getBaseRef

public org.restlet.data.Reference getBaseRef()
Returns the base URI for each child resource identifier.

Returns:
The base URI for each child resource identifier.

getResources

public List<ResourceInfo> getResources()
Returns the list of child resources.

Returns:
The list of child resources.

setBaseRef

public void setBaseRef(org.restlet.data.Reference baseRef)
Sets the base URI for each child resource identifier.

Parameters:
baseRef - The base URI for each child resource identifier.

setResources

public void setResources(List<ResourceInfo> resources)
Sets the list of child resources.

Parameters:
resources - The list of child resources.

updateNamespaces

public void updateNamespaces(Map<String,String> namespaces)
Description copied from class: DocumentedInfo
Completes the given map of namespaces with the namespaces used in the documentation elements. The key is the URI of the namespace and the value, the prefix.

Specified by:
updateNamespaces in class DocumentedInfo
Parameters:
namespaces - The given map of namespaces to complete.


Copyright © 2011-2013. All Rights Reserved.