- com
- pcbsys
- nirvana
- nAdminAPI
- nSchedulerBuildHelper
This is a helper class used in the construction/parsing and validation of Nirvana Realm server Scheduler scripts. More...
Public Member Functions | |
int | getItemType (String token) |
Returns the type of the string passed. More... | |
String | getSource () |
Returns the source passed in during the construction. More... | |
boolean | isValid () throws nSchedulerParseException |
Parses and validates the script. More... | |
nSchedulerBuildHelper (String source, nSchedulerManager manager) | |
Constructs this helper class with the script source and the sheduler manager. More... | |
void | setSource (String source) |
Changes the current source to the string supplied. More... | |
Static Public Attributes | |
static final int | sDeclaredTask = 3 |
Is a declared task. | |
static final int | sDeclaredTrigger = 4 |
Is a delcared Trigger. | |
static final int | sKeyWord = 0 |
Is a reserved Key word specified by the grammer. | |
static final int | sTask = 2 |
Is a defined task. | |
static final int | sTrigger = 1 |
Is a defined trigger. | |
static final int | sUnknown = -1 |
Unknown, typically this would mean the script is syntatically incorrect. | |
This is a helper class used in the construction/parsing and validation of Nirvana Realm server Scheduler scripts.
com.pcbsys.nirvana.nAdminAPI.nSchedulerBuildHelper.nSchedulerBuildHelper | ( | String | source, |
nSchedulerManager | manager | ||
) |
Constructs this helper class with the script source and the sheduler manager.
source | of the script. |
manager | nSchedulerManager to use to validate the script. |
int com.pcbsys.nirvana.nAdminAPI.nSchedulerBuildHelper.getItemType | ( | String | token | ) |
Returns the type of the string passed.
token | String to perform the lookup on. |
String com.pcbsys.nirvana.nAdminAPI.nSchedulerBuildHelper.getSource | ( | ) |
Returns the source passed in during the construction.
boolean com.pcbsys.nirvana.nAdminAPI.nSchedulerBuildHelper.isValid | ( | ) | throws nSchedulerParseException |
Parses and validates the script.
If there are any errors in the script an exception is thrown specifying the linge and column of the offending syntax.
nSchedulerParseException | if the script has errors. |
void com.pcbsys.nirvana.nAdminAPI.nSchedulerBuildHelper.setSource | ( | String | source | ) |
Changes the current source to the string supplied.
source | new script to validate. |