Package org.esa.snap.core.datamodel
Class ProductNodeNameValidator
java.lang.Object
org.esa.snap.core.datamodel.ProductNodeNameValidator
- All Implemented Interfaces:
ParamValidator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis key should only be specified if the requested productNodeName have to be unique inside the given product. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequalValues(Parameter parameter, Object value1, Object value2) Tests if the given two values are equal taking the given parameter information into account.Converts the given value into a text taking the given parameter information into account.Converts the given text into a value taking the given parameter information into account.voidTests if the given value passes all constraints given in the supplied parameter information.
-
Field Details
-
PRODUCT_PROPERTY_KEY
This key should only be specified if the requested productNodeName have to be unique inside the given product. This applies to bandNames and tiePointGridNames.- See Also:
-
-
Constructor Details
-
ProductNodeNameValidator
public ProductNodeNameValidator()
-
-
Method Details
-
equalValues
Description copied from interface:ParamValidatorTests if the given two values are equal taking the given parameter information into account.- Specified by:
equalValuesin interfaceParamValidator- Parameters:
parameter- the parameter, must not benullvalue1- the first value, can benullvalue2- the second value, can also benull- Returns:
trueif the value are equal,falseotherwise
-
format
Description copied from interface:ParamValidatorConverts the given value into a text taking the given parameter information into account.- Specified by:
formatin interfaceParamValidator- Parameters:
parameter- the parameter, must not benullvalue- the value to be converted into a text, can benull- Returns:
- the value represented by the text, never
null. - Throws:
ParamFormatException
-
parse
Description copied from interface:ParamValidatorConverts the given text into a value taking the given parameter information into account.- Specified by:
parsein interfaceParamValidator- Parameters:
parameter- the parameter, must not benulltext- the text to be converted into a value, must not benull- Returns:
- the value represented by the text
- Throws:
ParamParseException
-
validate
Description copied from interface:ParamValidatorTests if the given value passes all constraints given in the supplied parameter information. The value can also benullsince parameters can be allowed to have the value 'null'.- Specified by:
validatein interfaceParamValidator- Parameters:
parameter- the parameter, must not benullvalue- the value to be tested, can benull- Throws:
ParamValidateException
-