de.twenty11.skysail.server.restlet
Class ApplicationInfo

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

public class ApplicationInfo
extends DocumentedInfo


Constructor Summary
ApplicationInfo()
          Constructor.
ApplicationInfo(DocumentationInfo documentation)
          Constructor with a single documentation element.
ApplicationInfo(List<DocumentationInfo> documentations)
          Constructor with a list of documentation elements.
ApplicationInfo(String documentation)
          Constructor with a single documentation element.
 
Method Summary
 List<MethodInfo> getMethods()
          Returns the list of method elements.
 Map<String,String> getNamespaces()
          Returns the map of namespaces used in the WADL document.
 List<RepresentationInfo> getRepresentations()
          Returns the list of representation elements.
 void setMethods(List<MethodInfo> methods)
          Sets the list of documentation elements.
 void setNamespaces(Map<String,String> namespaces)
          Sets the map of namespaces used in the WADL document.
 void setRepresentations(List<RepresentationInfo> representations)
           
 void setResources(ResourcesInfo resources)
          Sets the list of resource elements.
 String toString()
          Describes a set of methods that define the behavior of a type of resource.
 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

ApplicationInfo

public ApplicationInfo()
Constructor.


ApplicationInfo

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

Parameters:
documentation - A single documentation element.

ApplicationInfo

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

Parameters:
documentations - The list of documentation elements.

ApplicationInfo

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

Parameters:
documentation - A single documentation element.
Method Detail

toString

public String toString()
Describes a set of methods that define the behavior of a type of resource.

Overrides:
toString in class Object

getMethods

public List<MethodInfo> getMethods()
Returns the list of method elements.

Returns:
The list of method elements.

getNamespaces

public Map<String,String> getNamespaces()
Returns the map of namespaces used in the WADL document.

Returns:
The ap of namespaces used in the WADL document.

getRepresentations

public List<RepresentationInfo> getRepresentations()
Returns the list of representation elements.

Returns:
The list of representation elements.

setResources

public void setResources(ResourcesInfo resources)
Sets the list of resource elements.

Parameters:
resources - The list of resource elements.

setRepresentations

public void setRepresentations(List<RepresentationInfo> representations)

setMethods

public void setMethods(List<MethodInfo> methods)
Sets the list of documentation elements.

Parameters:
methods - The list of method elements.

setNamespaces

public void setNamespaces(Map<String,String> namespaces)
Sets the map of namespaces used in the WADL document. The key is the URI of the namespace and the value, the prefix.

Parameters:
namespaces - The map of namespaces used in the WADL document.

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.