public class OptionalParameter
extends java.lang.Object
WMS optional parameter description object.
Modifier and Type | Field and Description |
---|---|
java.lang.String |
defaultValue
The default value.
|
java.util.regex.Pattern |
pattern
The regular expression to verify the parameters.
|
boolean |
replaceInvalidValue
When the parameter value is wrong, whether to use the default value to replace it, true means yes, false means not.
|
Constructor and Description |
---|
OptionalParameter(java.lang.String defaultValue, java.util.regex.Pattern pattern, boolean replaceInvalid)
Constructor.
|
public java.lang.String defaultValue
public java.util.regex.Pattern pattern
public boolean replaceInvalidValue
public OptionalParameter(java.lang.String defaultValue, java.util.regex.Pattern pattern, boolean replaceInvalid)
defaultValue
- The default value of the optional parameter.pattern
- The regular expression to verify the parameters.replaceInvalid
- When the parameter value is wrong, whether to use the default value to replace it, true means yes, false means not.