|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Verifier implements method and module name checking for one given operating system. Classes implementing Verifier must be public and have a public no-argument constructor.
Method Summary | |
String |
getDefaultModule()
If there is a default module that system functions are stored in, the module's name may be returned here. |
Object |
handleString(String val,
String module,
String function)
Converts the given String to one of the following data types, based on the module and the function name: a byte array
a char array
|
boolean |
supports()
Returns if this Verifier supports the given operating system. |
String |
verifyFunctionName(String function)
Verifies that the given function name is correct. |
String |
verifyModuleName(String module)
Verifies that the given module name is correct. |
Method Detail |
public String getDefaultModule()
null
NativeCall.NativeCall(String)
public boolean supports() throws SecurityException
SecurityException
- because System
properties
may be queriedpublic String verifyModuleName(String module) throws NullPointerException, IllegalArgumentException
module
- the module name, may be null
null
NullPointerException
- if the module name is null
and there is no default module defined
IllegalArgumentException
- if the module is illegal in the
operating systemgetDefaultModule()
public String verifyFunctionName(String function) throws NullPointerException, IllegalArgumentException
function
- the function name, may be null
null
NullPointerException
- if the function name is null
IllegalArgumentException
- if the function is illegal in the
operating systempublic Object handleString(String val, String module, String function)
byte
arraychar
array
val
- the String, never null
module
- the module name, never null
function
- the function name, never null
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |