Package org.restlet.ext.wadl
Class ResourceTypeInfo
- java.lang.Object
-
- org.restlet.ext.wadl.DocumentedInfo
-
- org.restlet.ext.wadl.ResourceTypeInfo
-
@Deprecated public class ResourceTypeInfo extends DocumentedInfo
Deprecated.Will be removed in next major release.Describes a reusable type of resources.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringidentifierDeprecated.Identifier for that element.private java.util.List<MethodInfo>methodsDeprecated.List of supported methods.private java.util.List<ParameterInfo>parametersDeprecated.List of parameters.
-
Constructor Summary
Constructors Constructor Description ResourceTypeInfo()Deprecated.Constructor.ResourceTypeInfo(java.lang.String documentation)Deprecated.Constructor with a single documentation element.ResourceTypeInfo(java.util.List<DocumentationInfo> documentations)Deprecated.Constructor with a list of documentation elements.ResourceTypeInfo(DocumentationInfo documentation)Deprecated.Constructor with a single documentation element.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetIdentifier()Deprecated.Returns the identifier for that element.java.util.List<MethodInfo>getMethods()Deprecated.Returns the list of supported methods.java.util.List<ParameterInfo>getParameters()Deprecated.Returns the list of parameters.voidsetIdentifier(java.lang.String identifier)Deprecated.Sets the identifier for that element.voidsetMethods(java.util.List<MethodInfo> methods)Deprecated.Sets the list of supported methods.voidsetParameters(java.util.List<ParameterInfo> parameters)Deprecated.Sets the list of parameters.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
-
identifier
private java.lang.String identifier
Deprecated.Identifier for that element.
-
methods
private java.util.List<MethodInfo> methods
Deprecated.List of supported methods.
-
parameters
private java.util.List<ParameterInfo> parameters
Deprecated.List of parameters.
-
-
Constructor Detail
-
ResourceTypeInfo
public ResourceTypeInfo()
Deprecated.Constructor.
-
ResourceTypeInfo
public ResourceTypeInfo(DocumentationInfo documentation)
Deprecated.Constructor with a single documentation element.- Parameters:
documentation- A single documentation element.
-
ResourceTypeInfo
public ResourceTypeInfo(java.util.List<DocumentationInfo> documentations)
Deprecated.Constructor with a list of documentation elements.- Parameters:
documentations- The list of documentation elements.
-
ResourceTypeInfo
public ResourceTypeInfo(java.lang.String documentation)
Deprecated.Constructor with a single documentation element.- Parameters:
documentation- A single documentation element.
-
-
Method Detail
-
getIdentifier
public java.lang.String getIdentifier()
Deprecated.Returns the identifier for that element.- Returns:
- The identifier for that element.
-
getMethods
public java.util.List<MethodInfo> getMethods()
Deprecated.Returns the list of supported methods.- Returns:
- The list of supported methods.
-
getParameters
public java.util.List<ParameterInfo> getParameters()
Deprecated.Returns the list of parameters.- Returns:
- The list of parameters.
-
setIdentifier
public void setIdentifier(java.lang.String identifier)
Deprecated.Sets the identifier for that element.- Parameters:
identifier- The identifier for that element.
-
setMethods
public void setMethods(java.util.List<MethodInfo> methods)
Deprecated.Sets the list of supported methods.- Parameters:
methods- The list of supported methods.
-
setParameters
public void setParameters(java.util.List<ParameterInfo> parameters)
Deprecated.Sets the list of parameters.- Parameters:
parameters- The list of parameters.
-
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
-
-