|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.naturalcli.parameters.OctalParamType
public class OctalParamType
The class implements an octal number parameter type.
Byte.valueOf(String, int)
Constructor Summary | |
---|---|
OctalParamType()
|
Method Summary | |
---|---|
java.lang.Object |
convertParameterValue(java.lang.String strRepresentation)
Converts the string representing the parameter value to the corresponding type value. |
java.lang.String |
getParameterTypeName()
Gets the parameter type name. |
boolean |
validateParameter(java.lang.String value)
Checks if a parameter value is of this type of parameter. |
java.lang.String |
validationMessage(java.lang.String value)
Checks if a parameter value is of this type of parameter and returns a detailed message if the validation fails. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OctalParamType()
Method Detail |
---|
public java.lang.String getParameterTypeName()
IParameterType
getParameterTypeName
in interface IParameterType
public boolean validateParameter(java.lang.String value)
IParameterType
validateParameter
in interface IParameterType
true
if the validation it's right;
false
otherwisepublic java.lang.String validationMessage(java.lang.String value)
IParameterType
validationMessage
in interface IParameterType
null
if the validation it's right;
a detailed message if something it's wrongpublic java.lang.Object convertParameterValue(java.lang.String strRepresentation)
IParameterType
convertParameterValue
in interface IParameterType
strRepresentation
- the string representation of the value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |