public class DefaultParameterDescriptor extends Object implements ParameterDescriptor
ParameterDescriptor
interface.Modifier and Type | Class and Description |
---|---|
static class |
DefaultParameterDescriptor.XStreamConverter
Deprecated.
Class has no usage and has no API doc. It might be deleted without further notice.
|
Constructor and Description |
---|
DefaultParameterDescriptor() |
DefaultParameterDescriptor(String name,
Class<?> dataType) |
Modifier and Type | Method and Description |
---|---|
String |
getAlias() |
String |
getCondition()
Gets a conditional expression which must return
true in order to indicate
that the parameter value is valid, e.g. |
Class<? extends Converter> |
getConverterClass()
A converter to be used to convert a text to the parameter value and vice versa.
|
static ParameterDescriptor[] |
getDataMemberDescriptors(Class<?> dataType) |
Class<?> |
getDataType() |
String |
getDefaultValue()
Gets the parameter's default value.
|
String |
getDescription() |
Class<? extends DomConverter> |
getDomConverterClass()
A converter to be used to convert an (XML) DOM to the parameter value and vice versa.
|
String |
getFormat()
Gets a format string to which a textual parameter value must match in order to indicate
a valid value, e.g.
|
String |
getInterval()
Gets the valid interval for numeric parameters, e.g.
|
String |
getItemAlias() |
String |
getLabel() |
String |
getName() |
String |
getPattern()
Gets a regular expression pattern to which a textual parameter value must match in order to indicate
a valid value, e.g.
|
Class<? extends RasterDataNode> |
getRasterDataNodeClass()
Specifies which
RasterDataNode subclass of the source products is used
to fill the ParameterDescriptor.getValueSet() for this parameter. |
ParameterDescriptor[] |
getStructureMemberDescriptors() |
String |
getUnit() |
Class<? extends Validator> |
getValidatorClass()
A validator to be used to validate a parameter value.
|
String[] |
getValueSet()
Gets the set of values which can be assigned to a parameter field.
|
boolean |
isDeprecated()
Is the parameter marked as deprecated?
|
boolean |
isNotEmpty()
Parameter value must not be an empty string?
|
boolean |
isNotNull()
Parameter value must not be
null ? |
static boolean |
isSimple(Class<?> type) |
boolean |
isStructure() |
static boolean |
isStructure(Class<?> type) |
void |
setAlias(String alias) |
void |
setCondition(String condition) |
void |
setConverterClass(Class<? extends Converter> converter) |
void |
setDataType(Class<?> dataType) |
void |
setDefaultValue(String defaultValue) |
void |
setDeprecated(boolean deprecated) |
void |
setDescription(String description) |
void |
setDomConverterClass(Class<? extends DomConverter> domConverter) |
void |
setFormat(String format) |
void |
setInterval(String interval) |
void |
setItemAlias(String itemAlias) |
void |
setLabel(String label) |
void |
setName(String name) |
void |
setNotEmpty(boolean notEmpty) |
void |
setNotNull(boolean notNull) |
void |
setPattern(String pattern) |
void |
setRasterDataNodeClass(Class<? extends RasterDataNode> rasterDataNodeClass) |
void |
setUnit(String unit) |
void |
setValidatorClass(Class<? extends Validator> validator) |
void |
setValueSet(String[] valueSet) |
public String getName()
getName
in interface ElementDescriptor
public void setName(String name)
public Class<?> getDataType()
getDataType
in interface DataElementDescriptor
Object
.public void setDataType(Class<?> dataType)
public String getAlias()
getAlias
in interface ElementDescriptor
null
if not declared.public void setAlias(String alias)
public String getDefaultValue()
ParameterDescriptor
Converter
.getDefaultValue
in interface ParameterDescriptor
ParameterDescriptor.getConverterClass()
public void setDefaultValue(String defaultValue)
public String getDescription()
getDescription
in interface ElementDescriptor
null
if not declared.public void setDescription(String description)
public String getLabel()
getLabel
in interface ElementDescriptor
null
if not declared.public void setLabel(String label)
public String getUnit()
getUnit
in interface ParameterDescriptor
public void setUnit(String unit)
public String getInterval()
ParameterDescriptor
"[10,20)"
: in the range 10 (inclusive) to 20 (exclusive).getInterval
in interface ParameterDescriptor
public void setInterval(String interval)
public String[] getValueSet()
ParameterDescriptor
Converter
.getValueSet
in interface ParameterDescriptor
ParameterDescriptor.getConverterClass()
public void setValueSet(String[] valueSet)
public String getCondition()
ParameterDescriptor
true
in order to indicate
that the parameter value is valid, e.g. "value > 2.5"
.getCondition
in interface ParameterDescriptor
public void setCondition(String condition)
public String getPattern()
ParameterDescriptor
"a*"
.getPattern
in interface ParameterDescriptor
Pattern
public void setPattern(String pattern)
public String getFormat()
ParameterDescriptor
"yyyy-MM-dd HH:mm:ss.Z"
.getFormat
in interface ParameterDescriptor
Format
public void setFormat(String format)
public boolean isNotNull()
ParameterDescriptor
null
?isNotNull
in interface ParameterDescriptor
true
, if so. Defaults to false
.public void setNotNull(boolean notNull)
public boolean isNotEmpty()
ParameterDescriptor
isNotEmpty
in interface ParameterDescriptor
true
, if so. Defaults to false
.public boolean isDeprecated()
ParameterDescriptor
isDeprecated
in interface ParameterDescriptor
true
, if so. Defaults to false
.public void setDeprecated(boolean deprecated)
public void setNotEmpty(boolean notEmpty)
public Class<? extends RasterDataNode> getRasterDataNodeClass()
ParameterDescriptor
RasterDataNode
subclass of the source products is used
to fill the ParameterDescriptor.getValueSet()
for this parameter.getRasterDataNodeClass
in interface ParameterDescriptor
public void setRasterDataNodeClass(Class<? extends RasterDataNode> rasterDataNodeClass)
public Class<? extends Validator> getValidatorClass()
ParameterDescriptor
getValidatorClass
in interface ParameterDescriptor
public Class<? extends Converter> getConverterClass()
ParameterDescriptor
getConverterClass
in interface ParameterDescriptor
public Class<? extends DomConverter> getDomConverterClass()
ParameterDescriptor
getDomConverterClass
in interface ParameterDescriptor
public void setDomConverterClass(Class<? extends DomConverter> domConverter)
public String getItemAlias()
getItemAlias
in interface ParameterDescriptor
public void setItemAlias(String itemAlias)
public boolean isStructure()
isStructure
in interface ParameterDescriptor
true
if the parameter type is a composite data structure.DataElementDescriptor.getDataType()
,
ParameterDescriptor.getStructureMemberDescriptors()
public ParameterDescriptor[] getStructureMemberDescriptors()
getStructureMemberDescriptors
in interface ParameterDescriptor
DataElementDescriptor.getDataType()
,
ParameterDescriptor.isStructure()
public static boolean isStructure(Class<?> type)
public static boolean isSimple(Class<?> type)
public static ParameterDescriptor[] getDataMemberDescriptors(Class<?> dataType)
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.