public class ProductNodeNameValidator extends Object implements org.esa.snap.core.param.ParamValidator
Modifier and Type | Field and Description |
---|---|
static String |
PRODUCT_PROPERTY_KEY
This key should only be specified
if the requested productNodeName have to be unique inside the given product.
|
Constructor and Description |
---|
ProductNodeNameValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
equalValues(org.esa.snap.core.param.Parameter parameter,
Object value1,
Object value2)
Tests if the given two values are equal taking the given parameter information into account.
|
String |
format(org.esa.snap.core.param.Parameter parameter,
Object value)
Converts the given value into a text taking the given parameter information into account.
|
Object |
parse(org.esa.snap.core.param.Parameter parameter,
String text)
Converts the given text into a value taking the given parameter information into account.
|
void |
validate(org.esa.snap.core.param.Parameter parameter,
Object value)
Tests if the given value passes all constraints given in the supplied parameter information.
|
public static final String PRODUCT_PROPERTY_KEY
public boolean equalValues(org.esa.snap.core.param.Parameter parameter, Object value1, Object value2)
org.esa.snap.core.param.ParamValidator
equalValues
in interface org.esa.snap.core.param.ParamValidator
parameter
- the parameter, must not be null
value1
- the first value, can be null
value2
- the second value, can also be null
true
if the value are equal, false
otherwisepublic String format(org.esa.snap.core.param.Parameter parameter, Object value) throws org.esa.snap.core.param.ParamFormatException
org.esa.snap.core.param.ParamValidator
format
in interface org.esa.snap.core.param.ParamValidator
parameter
- the parameter, must not be null
value
- the value to be converted into a text, can be null
null
.org.esa.snap.core.param.ParamFormatException
public Object parse(org.esa.snap.core.param.Parameter parameter, String text) throws org.esa.snap.core.param.ParamParseException
org.esa.snap.core.param.ParamValidator
parse
in interface org.esa.snap.core.param.ParamValidator
parameter
- the parameter, must not be null
text
- the text to be converted into a value, must not be null
org.esa.snap.core.param.ParamParseException
public void validate(org.esa.snap.core.param.Parameter parameter, Object value) throws org.esa.snap.core.param.ParamValidateException
org.esa.snap.core.param.ParamValidator
null
since parameters can be allowed to have the value 'null'.validate
in interface org.esa.snap.core.param.ParamValidator
parameter
- the parameter, must not be null
value
- the value to be tested, can be null
org.esa.snap.core.param.ParamValidateException
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.