public class ParameterTypeString extends ParameterType<String>
String
parameters.
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
defaultValue
Constructor and Description |
---|
ParameterTypeString(String id,
String description) |
ParameterTypeString(String id,
String description,
Constraint<? super String> constraint) |
ParameterTypeString(String id,
String description,
String defaultValue) |
ParameterTypeString(String id,
String description,
String defaultValue,
Constraint<? super String> constraint) |
Modifier and Type | Method and Description |
---|---|
String |
printValue(Parameters parameters)
Print the given value from the map in Parameters in a presentable format.
|
String |
toString() |
check, checkConstraint, equals, getConstraint, getDefaultValue, getDescription, getId, getValueClass, hasDefaultValue, hashCode
public ParameterTypeString(String id, String description)
id
- String; short name of the new ParameterTypeStringdescription
- String; description or full name of the new ParameterTypeStringpublic ParameterTypeString(String id, String description, String defaultValue)
id
- String; short name of the new ParameterTypeStringdescription
- String; description or full name of the new ParameterTypeStringdefaultValue
- String; default value of the new ParameterTypeStringpublic ParameterTypeString(String id, String description, Constraint<? super String> constraint)
id
- String; short name of the new ParameterTypeStringdescription
- String; description or full name of the new ParameterTypeStringconstraint
- Constraint<? super String>; constraint that applies to the value of the new ParameterTypeStringpublic ParameterTypeString(String id, String description, String defaultValue, Constraint<? super String> constraint)
id
- String; short name of the new ParameterTypeStringdescription
- String; description or full name of the new ParameterTypeStringdefaultValue
- String; default value of the new ParameterTypeStringconstraint
- Constraint<? super String>; constraint that applies to the value of the new ParameterTypeStringpublic final String printValue(Parameters parameters) throws ParameterException
printValue
in class ParameterType<String>
parameters
- Parameters; Parameters to get the value fromParameterException
- If the parameter is not presentpublic String toString()
toString
in class ParameterType<String>
Copyright © 2014–2019 Delft University of Technology. All rights reserved.