org.opengis.parameter
Interface ParameterDescriptor
-
- All Superinterfaces:
- GeneralParameterDescriptor, IdentifiedObject
@UML(identifier="CC_OperationParameter", specification=ISO_19111) public interface ParameterDescriptor extends GeneralParameterDescriptor
The definition of a parameter used by an operation method. Most parameter values are numeric, but other types of parameter values are possible.- Since:
- GeoAPI 2.0
- See Also:
ParameterValue,ParameterDescriptorGroup
-
-
Field Summary
-
Fields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.ObjectgetDefaultValue()Returns the default value for the parameter.java.lang.ComparablegetMaximumValue()Returns the maximum parameter value.java.lang.ComparablegetMinimumValue()Returns the minimum parameter value.UnitgetUnit()java.util.Set<? extends java.lang.Object>getValidValues()If this parameter allows only a finite set of values, returns this set.java.lang.ClassgetValueClass()Returns the class that describe the type of the parameter.-
Methods inherited from interface org.opengis.parameter.GeneralParameterDescriptor
createValue, getMaximumOccurs, getMinimumOccurs
-
Methods inherited from interface org.opengis.referencing.IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
-
-
-
-
Method Detail
-
getValueClass
@UML(identifier="GC_ParameterInfo.type", obligation=MANDATORY, specification=ISO_19111) java.lang.Class getValueClass()
Returns the class that describe the type of the parameter.
-
getValidValues
@Extension java.util.Set<? extends java.lang.Object> getValidValues()
If this parameter allows only a finite set of values, returns this set. This set is usually a {linkplain org.opengis.util.CodeList code list} or enumerations. This method returnsnullif this parameter doesn't limits values to a finite set.Note even when CodeList is used one can use this set to allow only a subset of the permissable values provided by the CodeList.
When the getValueClass() is an array or Collection getValidValues() may be used to constrain the contained elements.
- Returns:
- A finite set of valid values (usually from a
{linkplain org.opengis.util.CodeList code list}),
or
nullif it doesn't apply.
-
getDefaultValue
@UML(identifier="GC_ParameterInfo.defaultValue", obligation=OPTIONAL, specification=ISO_19111) java.lang.Object getDefaultValue()
Returns the default value for the parameter. The return type can be any type including aNumberor aString. If there is no default value, then this method returnsnull.- Returns:
- The default value, or
nullin none.
-
getMinimumValue
@UML(identifier="GC_ParameterInfo.minimumValue", obligation=OPTIONAL, specification=ISO_19111) java.lang.Comparable getMinimumValue()
Returns the minimum parameter value. If there is no minimum value, or if minimum value is inappropriate for the parameter type, then this method returnsnull.When the getValueClass() is an array or Collection getMinimumValue may be used to constrain the contained elements.
- Returns:
- The minimum parameter value (often an instance of
Double), ornull.
-
getMaximumValue
@UML(identifier="GC_ParameterInfo.maximumValue", obligation=OPTIONAL, specification=ISO_19111) java.lang.Comparable getMaximumValue()
Returns the maximum parameter value. If there is no maximum value, or if maximum value is inappropriate for the parameter type, then this method returnsnull.When the getValueClass() is an array or Collection getMaximumValue may be used to constratin the contained elements.
- Returns:
- The minimum parameter value (often an instance of
Double), ornull.
-
getUnit
@Extension Unit getUnit()
Returns the unit for default, minimum and maximum values. This attribute apply only if the values is of numeric type (usually an instance ofDouble).- Returns:
- The unit for numeric value, or
nullif it doesn't apply to the value type.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG