
constraints, defaultValue, givenValue, optionalParameter, optionid, shortDescription| Constructor and Description |
|---|
PatternParameter(OptionID optionID)
Constructs a pattern parameter with the given optionID.
|
PatternParameter(OptionID optionID,
boolean optional)
Constructs a pattern parameter with the given optionID.
|
PatternParameter(OptionID optionID,
List<ParameterConstraint<Pattern>> constraints)
Constructs a pattern parameter with the given optionID, constraints and
default value.
|
PatternParameter(OptionID optionID,
List<ParameterConstraint<Pattern>> constraints,
boolean optional)
Constructs a pattern parameter with the given optionID, constraints and
default value.
|
PatternParameter(OptionID optionID,
List<ParameterConstraint<Pattern>> constraint,
Pattern defaultValue)
Constructs a pattern parameter with the given optionID, constraints and
default value.
|
PatternParameter(OptionID optionID,
List<ParameterConstraint<Pattern>> constraint,
String defaultValue)
Constructs a pattern parameter with the given optionID, constraints and
default value.
|
PatternParameter(OptionID optionID,
ParameterConstraint<Pattern> constraint)
Constructs a pattern parameter with the given optionID, constraints and
default value.
|
PatternParameter(OptionID optionID,
ParameterConstraint<Pattern> constraint,
boolean optional)
Constructs a pattern parameter with the given optionID, constraints and
default value.
|
PatternParameter(OptionID optionID,
ParameterConstraint<Pattern> constraint,
Pattern defaultValue)
Constructs a pattern parameter with the given optionID, constraints and
default value.
|
PatternParameter(OptionID optionID,
ParameterConstraint<Pattern> constraint,
String defaultValue)
Constructs a pattern parameter with the given optionID, constraints and
default value.
|
PatternParameter(OptionID optionID,
Pattern defaultValue)
Constructs a pattern parameter with the given optionID, and default value.
|
PatternParameter(OptionID optionID,
String defaultValue)
Constructs a pattern parameter with the given optionID, and default value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSyntax()
Returns a string representation of the parameter's type.
|
String |
getValueAsString()
Get the value as string.
|
protected Pattern |
parseValue(Object obj)
Parse a given value into the destination type.
|
addConstraint, getDefaultValue, getDefaultValueAsString, getFullDescription, getGivenValue, getName, getOptionID, getShortDescription, getValue, getValuesDescription, hasDefaultValue, hasValuesDescription, isDefined, isOptional, isValid, setDefaultValue, setOptional, setShortDescription, setValue, setValueInternal, tookDefaultValue, tryDefaultValue, useDefaultValue, validatepublic PatternParameter(OptionID optionID, List<ParameterConstraint<Pattern>> constraint, Pattern defaultValue)
optionID - the unique id of the parameterconstraint - parameter constraintdefaultValue - the default value of the parameterpublic PatternParameter(OptionID optionID, List<ParameterConstraint<Pattern>> constraint, String defaultValue)
optionID - the unique id of the parameterconstraint - parameter constraintdefaultValue - the default value of the parameterpublic PatternParameter(OptionID optionID, List<ParameterConstraint<Pattern>> constraints, boolean optional)
optionID - the unique id of the parameterconstraints - parameter constraintoptional - Flag to signal an optional parameter.public PatternParameter(OptionID optionID, List<ParameterConstraint<Pattern>> constraints)
optionID - the unique id of the parameterconstraints - parameter constraintpublic PatternParameter(OptionID optionID, ParameterConstraint<Pattern> constraint, Pattern defaultValue)
optionID - the unique id of the parameterconstraint - parameter constraintdefaultValue - the default value of the parameterpublic PatternParameter(OptionID optionID, ParameterConstraint<Pattern> constraint, String defaultValue)
optionID - the unique id of the parameterconstraint - parameter constraintdefaultValue - the default value of the parameterpublic PatternParameter(OptionID optionID, ParameterConstraint<Pattern> constraint, boolean optional)
optionID - the unique id of the parameterconstraint - parameter constraintoptional - Flag to signal an optional parameter.public PatternParameter(OptionID optionID, ParameterConstraint<Pattern> constraint)
optionID - the unique id of the parameterconstraint - parameter constraintpublic PatternParameter(OptionID optionID, Pattern defaultValue)
optionID - the unique id of the parameterdefaultValue - the default value of the parameterpublic PatternParameter(OptionID optionID, String defaultValue)
optionID - the unique id of the parameterdefaultValue - the default value of the parameterpublic PatternParameter(OptionID optionID, boolean optional)
optionID - the unique id of the parameteroptional - Flag to signal an optional parameter.public PatternParameter(OptionID optionID)
optionID - the unique id of the parameterpublic String getValueAsString()
ParameternullgetValueAsString in class Parameter<Pattern,Pattern>protected Pattern parseValue(Object obj) throws ParameterException
ParameterparseValue in class Parameter<Pattern,Pattern>obj - Object to parse (may be a string representation!)ParameterException - when the object cannot be parsed.