Package org.restlet.ext.wadl
Class ParameterInfo
- java.lang.Object
-
- org.restlet.ext.wadl.DocumentedInfo
-
- org.restlet.ext.wadl.ParameterInfo
-
@Deprecated public class ParameterInfo extends DocumentedInfo
Deprecated.Will be removed in next major release.Describes a parameterized aspect of a parentResourceInfo,RequestInfo,ResponseInfoorRepresentationInfoelement.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringdefaultValueDeprecated.Default value of this parameter.private java.lang.StringfixedDeprecated.Provides a fixed value for the parameter.private java.lang.StringidentifierDeprecated.Identifier of this parameter element.private LinkInfolinkDeprecated.Link element.private java.lang.StringnameDeprecated.Name of this element.private java.util.List<OptionInfo>optionsDeprecated.List of option elements for that element.private java.lang.StringpathDeprecated.Path to the value of this parameter (within a parent representation).private booleanrepeatingDeprecated.Indicates whether the parameter is single valued or may have multiple values.private booleanrequiredDeprecated.Indicates whether the parameter is required.private ParameterStylestyleDeprecated.Parameter style.private java.lang.StringtypeDeprecated.Parameter type.
-
Constructor Summary
Constructors Constructor Description ParameterInfo()Deprecated.Constructor.ParameterInfo(java.lang.String name, boolean required, java.lang.String type, ParameterStyle style, java.lang.String documentation)Deprecated.Constructor.ParameterInfo(java.lang.String name, ParameterStyle style, java.lang.String documentation)Deprecated.Constructor with a single documentation element.ParameterInfo(java.lang.String name, ParameterStyle style, java.util.List<DocumentationInfo> documentations)Deprecated.Constructor with a list of documentation elements.ParameterInfo(java.lang.String name, ParameterStyle style, 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.StringgetDefaultValue()Deprecated.Returns the default value of this parameter.java.lang.StringgetFixed()Deprecated.Returns the fixed value for the parameter.java.lang.StringgetIdentifier()Deprecated.Returns the identifier of this parameter element.LinkInfogetLink()Deprecated.Returns the link element.java.lang.StringgetName()Deprecated.Returns the name of this element.java.util.List<OptionInfo>getOptions()Deprecated.Returns the list of option elements for that element.java.lang.StringgetPath()Deprecated.Returns the path to the value of this parameter (within a parent representation).ParameterStylegetStyle()Deprecated.Returns the parameter style.java.lang.StringgetType()Deprecated.Returns the parameter type.booleanisRepeating()Deprecated.Returns true if the parameter is single valued or may have multiple values, false otherwise.booleanisRequired()Deprecated.Indicates whether the parameter is required.voidsetDefaultValue(java.lang.String defaultValue)Deprecated.Sets the default value of this parameter.voidsetFixed(java.lang.String fixed)Deprecated.Sets the fixed value for the parameter.voidsetIdentifier(java.lang.String identifier)Deprecated.Sets the identifier of this parameter element.voidsetLink(LinkInfo link)Deprecated.Sets the link element.voidsetName(java.lang.String name)Deprecated.Sets the name of this element.voidsetOptions(java.util.List<OptionInfo> options)Deprecated.Sets the list of option elements for that element.voidsetPath(java.lang.String path)Deprecated.Sets the path to the value of this parameter (within a parent representation).voidsetRepeating(boolean repeating)Deprecated.Indicates whether the parameter is single valued or may have multiple values.voidsetRequired(boolean required)Deprecated.Indicates whether the parameter is required.voidsetStyle(ParameterStyle style)Deprecated.Sets the parameter style.voidsetType(java.lang.String type)Deprecated.Sets the parameter type.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
-
defaultValue
private java.lang.String defaultValue
Deprecated.Default value of this parameter.
-
fixed
private java.lang.String fixed
Deprecated.Provides a fixed value for the parameter.
-
identifier
private java.lang.String identifier
Deprecated.Identifier of this parameter element.
-
link
private LinkInfo link
Deprecated.Link element.
-
name
private java.lang.String name
Deprecated.Name of this element.
-
options
private java.util.List<OptionInfo> options
Deprecated.List of option elements for that element.
-
path
private java.lang.String path
Deprecated.Path to the value of this parameter (within a parent representation).
-
repeating
private boolean repeating
Deprecated.Indicates whether the parameter is single valued or may have multiple values.
-
required
private boolean required
Deprecated.Indicates whether the parameter is required.
-
style
private ParameterStyle style
Deprecated.Parameter style.
-
type
private java.lang.String type
Deprecated.Parameter type.
-
-
Constructor Detail
-
ParameterInfo
public ParameterInfo()
Deprecated.Constructor.
-
ParameterInfo
public ParameterInfo(java.lang.String name, boolean required, java.lang.String type, ParameterStyle style, java.lang.String documentation)Deprecated.Constructor.- Parameters:
name- The name of the parameter.required- True if thes parameter is required.type- The type of the parameter.style- The style of the parameter.documentation- A single documentation element.
-
ParameterInfo
public ParameterInfo(java.lang.String name, ParameterStyle style, DocumentationInfo documentation)Deprecated.Constructor with a single documentation element.- Parameters:
name- The required name of the parameter.style- The required style of the parameter.documentation- A single documentation element.
-
ParameterInfo
public ParameterInfo(java.lang.String name, ParameterStyle style, java.util.List<DocumentationInfo> documentations)Deprecated.Constructor with a list of documentation elements.- Parameters:
name- The required name of the parameter.style- The required style of the parameter.documentations- The list of documentation elements.
-
ParameterInfo
public ParameterInfo(java.lang.String name, ParameterStyle style, java.lang.String documentation)Deprecated.Constructor with a single documentation element.- Parameters:
name- The required name of the parameter.style- The required style of the parameter.documentation- A single documentation element.
-
-
Method Detail
-
getDefaultValue
public java.lang.String getDefaultValue()
Deprecated.Returns the default value of this parameter.- Returns:
- The default value of this parameter.
-
getFixed
public java.lang.String getFixed()
Deprecated.Returns the fixed value for the parameter.- Returns:
- The fixed value for the parameter.
-
getIdentifier
public java.lang.String getIdentifier()
Deprecated.Returns the identifier of this parameter element.- Returns:
- The identifier of this parameter element.
-
getLink
public LinkInfo getLink()
Deprecated.Returns the link element.- Returns:
- The link element.
-
getName
public java.lang.String getName()
Deprecated.Returns the name of this element.- Returns:
- The name of this element.
-
getOptions
public java.util.List<OptionInfo> getOptions()
Deprecated.Returns the list of option elements for that element.- Returns:
- The list of option elements for that element.
-
getPath
public java.lang.String getPath()
Deprecated.Returns the path to the value of this parameter (within a parent representation).- Returns:
- The path to the value of this parameter (within a parent representation).
-
getStyle
public ParameterStyle getStyle()
Deprecated.Returns the parameter style.- Returns:
- The parameter style.
-
getType
public java.lang.String getType()
Deprecated.Returns the parameter type.- Returns:
- The parameter type.
-
isRepeating
public boolean isRepeating()
Deprecated.Returns true if the parameter is single valued or may have multiple values, false otherwise.- Returns:
- True if the parameter is single valued or may have multiple values, false otherwise.
-
isRequired
public boolean isRequired()
Deprecated.Indicates whether the parameter is required.- Returns:
- True if the parameter is required, false otherwise.
-
setDefaultValue
public void setDefaultValue(java.lang.String defaultValue)
Deprecated.Sets the default value of this parameter.- Parameters:
defaultValue- The default value of this parameter.
-
setFixed
public void setFixed(java.lang.String fixed)
Deprecated.Sets the fixed value for the parameter.- Parameters:
fixed- The fixed value for the parameter.
-
setIdentifier
public void setIdentifier(java.lang.String identifier)
Deprecated.Sets the identifier of this parameter element.- Parameters:
identifier- The identifier of this parameter element.
-
setLink
public void setLink(LinkInfo link)
Deprecated.Sets the link element.- Parameters:
link- The link element.
-
setName
public void setName(java.lang.String name)
Deprecated.Sets the name of this element.- Parameters:
name- The name of this element.
-
setOptions
public void setOptions(java.util.List<OptionInfo> options)
Deprecated.Sets the list of option elements for that element.- Parameters:
options- The list of option elements for that element.
-
setPath
public void setPath(java.lang.String path)
Deprecated.Sets the path to the value of this parameter (within a parent representation).- Parameters:
path- The path to the value of this parameter (within a parent representation).
-
setRepeating
public void setRepeating(boolean repeating)
Deprecated.Indicates whether the parameter is single valued or may have multiple values.- Parameters:
repeating- True if the parameter is single valued or may have multiple values, false otherwise.
-
setRequired
public void setRequired(boolean required)
Deprecated.Indicates whether the parameter is required.- Parameters:
required- True if the parameter is required, false otherwise.
-
setStyle
public void setStyle(ParameterStyle style)
Deprecated.Sets the parameter style.- Parameters:
style- The parameter style.
-
setType
public void setType(java.lang.String type)
Deprecated.Sets the parameter type.- Parameters:
type- The parameter type.
-
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
-
-