@Deprecated public class ParameterInfo extends DocumentedInfo
ResourceInfo
,
RequestInfo
, ResponseInfo
or RepresentationInfo
element.Constructor and 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,
DocumentationInfo 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,
java.lang.String documentation)
Deprecated.
Constructor with a single documentation element.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultValue()
Deprecated.
Returns the default value of this parameter.
|
java.lang.String |
getFixed()
Deprecated.
Returns the fixed value for the parameter.
|
java.lang.String |
getIdentifier()
Deprecated.
Returns the identifier of this parameter element.
|
LinkInfo |
getLink()
Deprecated.
Returns the link element.
|
java.lang.String |
getName()
Deprecated.
Returns the name of this element.
|
java.util.List<OptionInfo> |
getOptions()
Deprecated.
Returns the list of option elements for that element.
|
java.lang.String |
getPath()
Deprecated.
Returns the path to the value of this parameter (within a parent
representation).
|
ParameterStyle |
getStyle()
Deprecated.
Returns the parameter style.
|
java.lang.String |
getType()
Deprecated.
Returns the parameter type.
|
boolean |
isRepeating()
Deprecated.
Returns true if the parameter is single valued or may have multiple
values, false otherwise.
|
boolean |
isRequired()
Deprecated.
Indicates whether the parameter is required.
|
void |
setDefaultValue(java.lang.String defaultValue)
Deprecated.
Sets the default value of this parameter.
|
void |
setFixed(java.lang.String fixed)
Deprecated.
Sets the fixed value for the parameter.
|
void |
setIdentifier(java.lang.String identifier)
Deprecated.
Sets the identifier of this parameter element.
|
void |
setLink(LinkInfo link)
Deprecated.
Sets the link element.
|
void |
setName(java.lang.String name)
Deprecated.
Sets the name of this element.
|
void |
setOptions(java.util.List<OptionInfo> options)
Deprecated.
Sets the list of option elements for that element.
|
void |
setPath(java.lang.String path)
Deprecated.
Sets the path to the value of this parameter (within a parent
representation).
|
void |
setRepeating(boolean repeating)
Deprecated.
Indicates whether the parameter is single valued or may have multiple
values.
|
void |
setRequired(boolean required)
Deprecated.
Indicates whether the parameter is required.
|
void |
setStyle(ParameterStyle style)
Deprecated.
Sets the parameter style.
|
void |
setType(java.lang.String type)
Deprecated.
Sets the parameter type.
|
void |
updateNamespaces(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.
|
void |
writeElement(XmlWriter writer)
Deprecated.
Writes the current object as an XML element using the given SAX writer.
|
getDocumentations, resolveNamespaces, setDocumentation, setDocumentation, setDocumentations
public ParameterInfo()
public ParameterInfo(java.lang.String name, boolean required, java.lang.String type, ParameterStyle style, java.lang.String documentation)
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.public ParameterInfo(java.lang.String name, ParameterStyle style, DocumentationInfo documentation)
name
- The required name of the parameter.style
- The required style of the parameter.documentation
- A single documentation element.public ParameterInfo(java.lang.String name, ParameterStyle style, java.util.List<DocumentationInfo> documentations)
name
- The required name of the parameter.style
- The required style of the parameter.documentations
- The list of documentation elements.public ParameterInfo(java.lang.String name, ParameterStyle style, java.lang.String documentation)
name
- The required name of the parameter.style
- The required style of the parameter.documentation
- A single documentation element.public java.lang.String getDefaultValue()
public java.lang.String getFixed()
public java.lang.String getIdentifier()
public LinkInfo getLink()
public java.lang.String getName()
public java.util.List<OptionInfo> getOptions()
public java.lang.String getPath()
public ParameterStyle getStyle()
public java.lang.String getType()
public boolean isRepeating()
public boolean isRequired()
public void setDefaultValue(java.lang.String defaultValue)
defaultValue
- The default value of this parameter.public void setFixed(java.lang.String fixed)
fixed
- The fixed value for the parameter.public void setIdentifier(java.lang.String identifier)
identifier
- The identifier of this parameter element.public void setLink(LinkInfo link)
link
- The link element.public void setName(java.lang.String name)
name
- The name of this element.public void setOptions(java.util.List<OptionInfo> options)
options
- The list of option elements for that element.public void setPath(java.lang.String path)
path
- The path to the value of this parameter (within a parent
representation).public void setRepeating(boolean repeating)
repeating
- True if the parameter is single valued or may have multiple
values, false otherwise.public void setRequired(boolean required)
required
- True if the parameter is required, false otherwise.public void setStyle(ParameterStyle style)
style
- The parameter style.public void setType(java.lang.String type)
type
- The parameter type.public void updateNamespaces(java.util.Map<java.lang.String,java.lang.String> namespaces)
DocumentedInfo
updateNamespaces
in class DocumentedInfo
namespaces
- The given map of namespaces to complete.public void writeElement(XmlWriter writer) throws org.xml.sax.SAXException
writer
- The SAX writer.org.xml.sax.SAXException
Copyright © 2005-2020 Restlet.