Package org.openstreetmap.josm.actions
Class ActionParameter.StringActionParameter
- java.lang.Object
-
- org.openstreetmap.josm.actions.ActionParameter<java.lang.String>
-
- org.openstreetmap.josm.actions.ActionParameter.StringActionParameter
-
- Enclosing class:
- ActionParameter<T>
public static class ActionParameter.StringActionParameter extends ActionParameter<java.lang.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(java.lang.String name)Constructs a newStringActionParameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<java.lang.String>getType()Get the value type of this action parameter.java.lang.StringreadFromString(java.lang.String s)Create a value from the given string representation (deserialization).java.lang.StringwriteToString(java.lang.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(java.lang.String name)
Constructs a newStringActionParameter.- Parameters:
name- parameter name (the key)
-
-
Method Detail
-
getType
public java.lang.Class<java.lang.String> getType()
Description copied from class:ActionParameterGet the value type of this action parameter.- Specified by:
getTypein classActionParameter<java.lang.String>- Returns:
- the value type of this action parameter
-
readFromString
public java.lang.String readFromString(java.lang.String s)
Description copied from class:ActionParameterCreate a value from the given string representation (deserialization).- Specified by:
readFromStringin classActionParameter<java.lang.String>- Parameters:
s- the string representation of the value- Returns:
- the corresponding value object
-
writeToString
public java.lang.String writeToString(java.lang.String value)
Description copied from class:ActionParameterConvert a given value into a string (serialization).- Specified by:
writeToStringin classActionParameter<java.lang.String>- Parameters:
value- the value- Returns:
- a string representation of the value
-
-