| org.naturalcli.IParameterType
All known Subclasses: org.naturalcli.parameters.ShortParamType, org.naturalcli.parameters.FileParamType, org.naturalcli.parameters.WorkingURLParameterType, org.naturalcli.parameters.URLParameterType, org.naturalcli.parameters.ByteParamType, org.naturalcli.parameters.FloatParamType, org.naturalcli.parameters.StringParamType, org.naturalcli.parameters.BinaryParamType, org.naturalcli.parameters.DoubleParamType, org.naturalcli.parameters.IntegerParamType, org.naturalcli.parameters.LongParamType, org.naturalcli.parameters.IdentifierParamType, org.naturalcli.parameters.HexadecimalParamType, org.naturalcli.parameters.OctalParamType, org.naturalcli.parameters.EmailParamType,
IParameterType | public interface IParameterType (Code) | | A parameter type for all the commands.
author: Ferran Busquets |
convertParameterValue | public Object convertParameterValue(String strRepresentation)(Code) | | Converts the string representing the parameter value to
the corresponding type value.
Parameters: strRepresentation - the string representation of the value real object value |
getParameterTypeName | public String getParameterTypeName()(Code) | | Gets the parameter type name.
the name of the parameter type |
validateParameter | public boolean validateParameter(String value)(Code) | | Checks if a parameter value is of this type
of parameter.
Parameters: the - string to be validated as this parameter type true if the validation it's right;false otherwise |
validationMessage | public String validationMessage(String value)(Code) | | Checks if a parameter value is of this type
of parameter and returns a detailed message
if the validation fails.
Parameters: the - string to be validated as this parameter type null if the validation it's right;a detailed message if something it's wrong |
|
|