|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.wmsui.guij.ExprChecker
Implementation of the ExprChecker class. This class provides some parsing methods. It is used to check the correctness of a file or string classad representation and to create a JobAd containing attributes with corresponding values.
Constructor Summary | |
ExprChecker()
|
Method Summary | |
static java.lang.String |
checkResult(java.lang.String result,
java.lang.String[] attributesToCheck)
Checks a String representing a job. |
static java.lang.String |
checkResult(java.lang.String result,
java.lang.String[] attributesToCheck,
boolean localAccess)
Checks a String representing a job. |
java.lang.String |
getErrorMsg()
Returns all parsing errors found during last parse operation. |
java.lang.String |
getWarningMsg()
|
org.glite.jdl.JobAd |
parse(java.io.File file)
Parses a file and creates a JobAd containing the found attributes. |
org.glite.jdl.JobAd |
parse(java.io.File file,
boolean localAccess)
Parses a file and creates a JobAd containing the found attributes. |
org.glite.jdl.JobAd |
parse(java.io.File file,
boolean localAccess,
int type)
Parses a file and creates a JobAd containing the found attributes. |
org.glite.jdl.JobAd |
parse(java.io.File file,
boolean localAccess,
org.glite.jdl.JobAd jobAdAttributeToAdd)
Parses a file and creates a JobAd containing the found attributes. |
org.glite.jdl.JobAd |
parse(java.lang.String inputString)
Parses an input string and creates a JobAd containing the found attributes. |
org.glite.jdl.JobAd |
parse(java.lang.String inputString,
boolean localAccess,
java.lang.String defaultRequirements,
java.lang.String defaultRank)
Parses an input string and creates a JobAd containing the found attributes. |
org.glite.jdl.JobAd |
parseLineByLine(java.lang.String inputString)
Parses an input String representing a job. |
java.lang.String |
rTrim(java.lang.String text)
Returns right trimmed input String |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExprChecker()
Method Detail |
public org.glite.jdl.JobAd parse(java.io.File file) throws java.text.ParseException
file
- the file to parse.
java.text.ParseException
public org.glite.jdl.JobAd parse(java.io.File file, boolean localAccess) throws java.text.ParseException
file
- the file to parse.localAccess
- a boolean value indicating if local check must be done.
java.text.ParseException
public org.glite.jdl.JobAd parse(java.io.File file, boolean localAccess, int type) throws java.text.ParseException
localAccess
parameter.
file
- the file to parse.localAccess
- a boolean value indicating if local check must be done.type
- the type of the file to parse: normal or XML
java.text.ParseException
public org.glite.jdl.JobAd parse(java.io.File file, boolean localAccess, org.glite.jdl.JobAd jobAdAttributeToAdd) throws java.text.ParseException
localAccess
parameter.
file
- the file to parse.localAccess
- a boolean value indicating if local check must
be done.
java.text.ParseException
public org.glite.jdl.JobAd parse(java.lang.String inputString)
inputString
- the input string to parse.
public org.glite.jdl.JobAd parse(java.lang.String inputString, boolean localAccess, java.lang.String defaultRequirements, java.lang.String defaultRank)
localAccess
parameter.
inputString
- the input string to parse.localAccess
- a boolean value indicating if local check must
be done.defaultRequirements
- requirements attribute default value.defaultRank
- rank attribute default value.
public java.lang.String getErrorMsg()
public java.lang.String getWarningMsg()
public org.glite.jdl.JobAd parseLineByLine(java.lang.String inputString)
inputString
- the String to parse
public java.lang.String rTrim(java.lang.String text)
text
- the input String to trim
public static java.lang.String checkResult(java.lang.String result, java.lang.String[] attributesToCheck)
result
- String to checkattributesToCheck
- the attributes array to check
public static java.lang.String checkResult(java.lang.String result, java.lang.String[] attributesToCheck, boolean localAccess)
result
- String to checkattributesToCheck
- the attributes array to checklocalAccess
- declares if the local access check has to be made
or not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |