|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--admin.RequirementParser
In the add modify module, the requirement strings the user builds are not in the native format stored in the SAS database. This class acts as the bridge between the two formats, allowing convienient conversion between the two formats. The format used in the database is referred to as database format, and the format used in displaying the requirement to the user is referred to as display format. Database format looks something like "1|(4#5)|^06" and display format looks something like "CSC 175N or ( MTH 072A xor MTH 073A ) or all PHY".
| Constructor Summary | |
RequirementParser()
|
|
| Method Summary | |
static java.lang.String |
toCourseDatabaseString(java.lang.String in)
Converts a String in display format to database format. |
static java.lang.String |
toCourseDisplayString(java.lang.String in)
Converts a String in database format to display format. |
static java.lang.String |
toMajorDatabaseString(java.lang.String in)
Converts a String in display format to database format. |
static java.lang.String |
toMajorDisplayString(java.lang.String in)
Converts a String in database format to display format. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RequirementParser()
| Method Detail |
public static java.lang.String toCourseDisplayString(java.lang.String in)
throws java.sql.SQLException
in - a String in database format
java.sql.SQLException - If an error occured while connecting to the SAS database.
public static java.lang.String toCourseDatabaseString(java.lang.String in)
throws java.sql.SQLException
in - A String in display format.
java.sql.SQLException - if an error occurs while connecting to the SAS database.
public static java.lang.String toMajorDisplayString(java.lang.String in)
throws java.sql.SQLException
in - A String in database format.
java.sql.SQLException - if an error occurs while connecting to the SAS database.
public static java.lang.String toMajorDatabaseString(java.lang.String in)
throws java.sql.SQLException
in - A String in display format.
java.sql.SQLException - if an error occurs while connecting to the SAS database.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||