|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--TagParser
A VERY simple parser that helps the programmer search through the xml and collect course id's and prerequisites.
| Constructor Summary | |
TagParser(java.lang.String s)
Create a parser with the string to be parsed. |
|
| Method Summary | |
java.lang.String |
getString()
get the string pointed to by the index. |
java.lang.String |
getTag()
search the string for the next tag name (element name). |
static void |
main(java.lang.String[] args)
test driver |
java.lang.String |
nextPrereq()
Gathering prerequisites from within an attribute list. |
int |
skipDouble()
leave the index one char beyond the next double quote " if none exists return -1, otherwise return the index of the double quote + 1 |
int |
skipLeftAngle()
search the xml and leave the index one char beyond the next '<' if no '<' exists return -1, otherwise return the index of the '<' plus 1 |
java.lang.String |
skipParticularTag(java.lang.String tag)
move the index beyond a particular tag name. |
int |
skipToPrerequisite()
pre: the index is just beyond an element name but before any prerequisites. |
void |
skipWhite()
move the index past any white space. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public TagParser(java.lang.String s)
| Method Detail |
public int skipLeftAngle()
public int skipDouble()
public void skipWhite()
public java.lang.String getString()
public java.lang.String getTag()
public java.lang.String skipParticularTag(java.lang.String tag)
public int skipToPrerequisite()
public java.lang.String nextPrereq()
public static void main(java.lang.String[] args)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||