|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 IParameterTypepublic boolean validateParameter(java.lang.String value)
IParameterType
validateParameter in interface IParameterTypetrue if the validation it's right;
false otherwisepublic java.lang.String validationMessage(java.lang.String value)
IParameterType
validationMessage in interface IParameterTypenull 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 IParameterTypestrRepresentation - the string representation of the value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||