|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuniversity.UniversityXMLParser
public class UniversityXMLParser
UniversityXMLParser reads in an XML document containing members of the
University. The XML file is validated against a XML schema to determine
if the document is well formed and correct. The program then creates a
new person type of person depending on the type of node that is read. For
example if a Undergraduate node is read the program will create a new
Undergraduate object. When the program terminates a list of the people
created is displayed to the user.
To run the program:
java university/UniversityXMLParser [xmlDocument] [xmlSchema]
Constructor Summary | |
---|---|
UniversityXMLParser()
Creates a new instance of UniversityXMLParser |
Method Summary | |
---|---|
void |
display(java.util.ArrayList<Person> universityList)
Display all of the people that were created from the XML document. |
static void |
main(java.lang.String[] args)
Entry point to the UniversityXMLParser application. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UniversityXMLParser()
Method Detail |
---|
public void display(java.util.ArrayList<Person> universityList)
universityList
- A list of all of the people that were created.public static void main(java.lang.String[] args) throws java.lang.Exception
args
- the command line arguments
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |