Package org.openstreetmap.josm.actions
Class ActionParameter.StringActionParameter
java.lang.Object
org.openstreetmap.josm.actions.ActionParameter<String>
org.openstreetmap.josm.actions.ActionParameter.StringActionParameter
- Enclosing class:
- ActionParameter<T>
Simple ActionParameter implementation for string values.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.actions.ActionParameter
ActionParameter.StringActionParameter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()Get the value type of this action parameter.Create a value from the given string representation (deserialization).writeToString(String value) Convert a given value into a string (serialization).Methods inherited from class org.openstreetmap.josm.actions.ActionParameter
getName
-
Constructor Details
-
StringActionParameter
Constructs a newStringActionParameter.- Parameters:
name- parameter name (the key)
-
-
Method Details
-
getType
Description copied from class:ActionParameterGet the value type of this action parameter.- Specified by:
getTypein classActionParameter<String>- Returns:
- the value type of this action parameter
-
readFromString
Description copied from class:ActionParameterCreate a value from the given string representation (deserialization).- Specified by:
readFromStringin classActionParameter<String>- Parameters:
s- the string representation of the value- Returns:
- the corresponding value object
-
writeToString
Description copied from class:ActionParameterConvert a given value into a string (serialization).- Specified by:
writeToStringin classActionParameter<String>- Parameters:
value- the value- Returns:
- a string representation of the value
-