Package org.gvsig.fmap.dal
Interface DataParameterDescriptor
public interface DataParameterDescriptor
This interface describes the properties of a parameter. It is useful
for any component that needs to know how to edit or visualize it.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionObject[]Returns an array containing the available values accepted by the parameter.intReturns one of the available values type.intReturns the parameter's data type.Returns the parameter's default value.Returns the parameter's descriptionReturns the maximum value when the parameter accepts a range of values.Returns the minimum value when the parameter accepts a range of values.getName()Returns the parameter's name
-
Field Details
-
SINGLE
static final int SINGLEAccepts a single value- See Also:
-
CHOICE
static final int CHOICEAccepts a single value from a value set- See Also:
-
RANGE
static final int RANGEAccepts a range of values defined with a minimum and a maximum value- See Also:
-
-
Method Details
-
getName
String getName()Returns the parameter's name- Returns:
- String containing the parameter's name
-
getDescription
String getDescription()Returns the parameter's description- Returns:
- String containing the parameter's description.
-
getDataType
int getDataType()Returns the parameter's data type.- Returns:
- parameter's data type.
- See Also:
-
getDefaultValue
Object getDefaultValue()Returns the parameter's default value.- Returns:
- an Object containing the default value. Use the data type to cast.
-
getAvailableValuesType
int getAvailableValuesType()Returns one of the available values type.- Returns:
- an
intwith one of the available values type. - See Also:
-
getAvailableValues
Object[] getAvailableValues()Returns an array containing the available values accepted by the parameter.- Returns:
- array of Object containing the available values accepted by the parameter. Use the data type to cast.
-
getMinValue
Object getMinValue()Returns the minimum value when the parameter accepts a range of values.- Returns:
- range's minimum value
-
getMaxValue
Object getMaxValue()Returns the maximum value when the parameter accepts a range of values.- Returns:
- range's maximum value.
-