Class TemplateParamInfo
java.lang.Object
org.opengis.cite.cat30.opensearch.TemplateParamInfo
Provides information about a URL template parameter appearing in an OpenSearch
description document.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor sets the parameter type to be String with a zero-length string as the default value.TemplateParamInfo
(QName name, boolean isRequired) Constructs a new TemplateParamInfo with the given qualified name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the default value of the parameter.getName()
Get the qualified name of the parameter.getType()
Get the data type of the parameter.int
hashCode()
boolean
Get the value of isRequiredvoid
setDefaultValue
(Object defaultValue) Set the default value of the parameter.void
setIsRequired
(boolean isRequired) Set the value of isRequiredvoid
Set the (qualified) name of the parameter.void
Set the data type of the parameter (java.lang.String by default).
-
Constructor Details
-
TemplateParamInfo
public TemplateParamInfo()Default constructor sets the parameter type to be String with a zero-length string as the default value. -
TemplateParamInfo
Constructs a new TemplateParamInfo with the given qualified name.- Parameters:
name
- A QName representing the name of the parameter.isRequired
- A boolean value indicating whether or not the parameter is required.
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getDefaultValue
Get the default value of the parameter.- Returns:
- A instance of the parameter's type, or a zero-length string if it has not been set.
-
setDefaultValue
Set the default value of the parameter.- Parameters:
defaultValue
- A type-compatible value.
-
getType
Get the data type of the parameter.- Returns:
- The parameter type.
-
setType
Set the data type of the parameter (java.lang.String by default).- Parameters:
type
- The new data type.
-
isRequired
public boolean isRequired()Get the value of isRequired- Returns:
- the value of isRequired
-
setIsRequired
public void setIsRequired(boolean isRequired) Set the value of isRequired- Parameters:
isRequired
- new value of isRequired
-
getName
Get the qualified name of the parameter.- Returns:
- A QName object specifying a name.
-
setName
Set the (qualified) name of the parameter.- Parameters:
name
- A QName object.
-