Package org.restlet.ext.wadl
Class ApplicationInfo
- java.lang.Object
-
- org.restlet.ext.wadl.DocumentedInfo
-
- org.restlet.ext.wadl.ApplicationInfo
-
@Deprecated public class ApplicationInfo extends DocumentedInfo
Deprecated.Will be removed in next major release.Root of a WADL description document.
-
-
Field Summary
Fields Modifier and Type Field Description private GrammarsInfogrammarsDeprecated.Container for definitions of the format of data exchanged.private java.util.List<MethodInfo>methodsDeprecated.List of methods.private java.util.Map<java.lang.String,java.lang.String>namespacesDeprecated.Map of namespaces used in the WADL document.private java.util.List<RepresentationInfo>representationsDeprecated.List of representations.private ResourcesInforesourcesDeprecated.Resources provided by the application.private java.util.List<ResourceTypeInfo>resourceTypesDeprecated.Describes a set of methods that define the behavior of a type of resource.
-
Constructor Summary
Constructors Constructor Description ApplicationInfo()Deprecated.Constructor.ApplicationInfo(java.lang.String documentation)Deprecated.Constructor with a single documentation element.ApplicationInfo(java.util.List<DocumentationInfo> documentations)Deprecated.Constructor with a list of documentation elements.ApplicationInfo(DocumentationInfo documentation)Deprecated.Constructor with a single documentation element.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description GrammarsInfogetGrammars()Deprecated.Returns the grammar elements.java.util.List<MethodInfo>getMethods()Deprecated.Returns the list of method elements.java.util.Map<java.lang.String,java.lang.String>getNamespaces()Deprecated.Returns the map of namespaces used in the WADL document.java.util.List<RepresentationInfo>getRepresentations()Deprecated.Returns the list of representation elements.ResourcesInfogetResources()Deprecated.Returns the resources root element.java.util.List<ResourceTypeInfo>getResourceTypes()Deprecated.Returns the list of resource type elements.voidsetGrammars(GrammarsInfo grammars)Deprecated.Sets the grammars element.voidsetMethods(java.util.List<MethodInfo> methods)Deprecated.Sets the list of documentation elements.voidsetNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)Deprecated.Sets the map of namespaces used in the WADL document.voidsetRepresentations(java.util.List<RepresentationInfo> representations)Deprecated.Sets the list of representation elements.voidsetResources(ResourcesInfo resources)Deprecated.Sets the list of resource elements.voidsetResourceTypes(java.util.List<ResourceTypeInfo> resourceTypes)Deprecated.Sets the list of resource type elements.voidupdateNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)Deprecated.Completes the given map of namespaces with the namespaces used in the documentation elements.voidwriteElement(XmlWriter writer)Deprecated.Writes the current object as an XML element using the given SAX writer.-
Methods inherited from class org.restlet.ext.wadl.DocumentedInfo
getDocumentations, resolveNamespaces, setDocumentation, setDocumentation, setDocumentations
-
-
-
-
Field Detail
-
grammars
private GrammarsInfo grammars
Deprecated.Container for definitions of the format of data exchanged.
-
methods
private java.util.List<MethodInfo> methods
Deprecated.List of methods.
-
namespaces
private java.util.Map<java.lang.String,java.lang.String> namespaces
Deprecated.Map of namespaces used in the WADL document. The key is the URI of the namespace and the value, the prefix.
-
representations
private java.util.List<RepresentationInfo> representations
Deprecated.List of representations.
-
resources
private ResourcesInfo resources
Deprecated.Resources provided by the application.
-
resourceTypes
private java.util.List<ResourceTypeInfo> resourceTypes
Deprecated.Describes a set of methods that define the behavior of a type of resource.
-
-
Constructor Detail
-
ApplicationInfo
public ApplicationInfo()
Deprecated.Constructor.
-
ApplicationInfo
public ApplicationInfo(DocumentationInfo documentation)
Deprecated.Constructor with a single documentation element.- Parameters:
documentation- A single documentation element.
-
ApplicationInfo
public ApplicationInfo(java.util.List<DocumentationInfo> documentations)
Deprecated.Constructor with a list of documentation elements.- Parameters:
documentations- The list of documentation elements.
-
ApplicationInfo
public ApplicationInfo(java.lang.String documentation)
Deprecated.Constructor with a single documentation element.- Parameters:
documentation- A single documentation element.
-
-
Method Detail
-
getGrammars
public GrammarsInfo getGrammars()
Deprecated.Returns the grammar elements.- Returns:
- The grammar elements.
-
getMethods
public java.util.List<MethodInfo> getMethods()
Deprecated.Returns the list of method elements.- Returns:
- The list of method elements.
-
getNamespaces
public java.util.Map<java.lang.String,java.lang.String> getNamespaces()
Deprecated.Returns the map of namespaces used in the WADL document.- Returns:
- The ap of namespaces used in the WADL document.
-
getRepresentations
public java.util.List<RepresentationInfo> getRepresentations()
Deprecated.Returns the list of representation elements.- Returns:
- The list of representation elements.
-
getResources
public ResourcesInfo getResources()
Deprecated.Returns the resources root element.- Returns:
- The resources root element.
-
getResourceTypes
public java.util.List<ResourceTypeInfo> getResourceTypes()
Deprecated.Returns the list of resource type elements.- Returns:
- The list of resource type elements.
-
setGrammars
public void setGrammars(GrammarsInfo grammars)
Deprecated.Sets the grammars element.- Parameters:
grammars- The grammars element.
-
setMethods
public void setMethods(java.util.List<MethodInfo> methods)
Deprecated.Sets the list of documentation elements.- Parameters:
methods- The list of method elements.
-
setNamespaces
public void setNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
Deprecated.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.
-
setRepresentations
public void setRepresentations(java.util.List<RepresentationInfo> representations)
Deprecated.Sets the list of representation elements.- Parameters:
representations- The list of representation elements.
-
setResources
public void setResources(ResourcesInfo resources)
Deprecated.Sets the list of resource elements.- Parameters:
resources- The list of resource elements.
-
setResourceTypes
public void setResourceTypes(java.util.List<ResourceTypeInfo> resourceTypes)
Deprecated.Sets the list of resource type elements.- Parameters:
resourceTypes- The list of resource type elements.
-
updateNamespaces
public void updateNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
Deprecated.Description copied from class:DocumentedInfoCompletes 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:
updateNamespacesin classDocumentedInfo- Parameters:
namespaces- The given map of namespaces to complete.
-
writeElement
public void writeElement(XmlWriter writer) throws org.xml.sax.SAXException
Deprecated.Writes the current object as an XML element using the given SAX writer.- Parameters:
writer- The SAX writer.- Throws:
org.xml.sax.SAXException
-
-