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>
public static class ActionParameter.StringActionParameter extends ActionParameter<String>
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 Constructor Description StringActionParameter(String name)
Constructs a newStringActionParameter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<String>
getType()
Get the value type of this action parameter.String
readFromString(String s)
Create a value from the given string representation (deserialization).String
writeToString(String value)
Convert a given value into a string (serialization).-
Methods inherited from class org.openstreetmap.josm.actions.ActionParameter
getName
-
-
-
-
Constructor Detail
-
StringActionParameter
public StringActionParameter(String name)
Constructs a newStringActionParameter
.- Parameters:
name
- parameter name (the key)
-
-
Method Detail
-
getType
public Class<String> getType()
Description copied from class:ActionParameter
Get the value type of this action parameter.- Specified by:
getType
in classActionParameter<String>
- Returns:
- the value type of this action parameter
-
readFromString
public String readFromString(String s)
Description copied from class:ActionParameter
Create a value from the given string representation (deserialization).- Specified by:
readFromString
in classActionParameter<String>
- Parameters:
s
- the string representation of the value- Returns:
- the corresponding value object
-
writeToString
public String writeToString(String value)
Description copied from class:ActionParameter
Convert a given value into a string (serialization).- Specified by:
writeToString
in classActionParameter<String>
- Parameters:
value
- the value- Returns:
- a string representation of the value
-
-