|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuniversity.BuildFromXML
public class BuildFromXML
Creates the Objects from the values that were parsed from the XML document.
Constructor Summary | |
---|---|
BuildFromXML()
Creates a new instance of CreateObjectFromXML |
Method Summary | |
---|---|
Address |
createAddress(java.util.HashMap<java.lang.String,java.lang.String> map)
Creates an Address object from the values read in from the xml document. |
Graduate |
createGraduate(java.util.HashMap<java.lang.String,java.lang.String> graduateMap)
Create a new Graduate student from the values read in from the xml document. |
Person |
createPerson(java.util.HashMap<java.lang.String,java.lang.String> personMap)
Creates a new Person from the values read in from the xml document. |
Undergraduate |
createUndergraduate(java.util.HashMap<java.lang.String,java.lang.String> undergraduateMap)
Create a new Undergraduate student from the values read in from the xml document. |
Sex |
getGender(java.lang.String gender)
getGender return a Sex object for the String supplied |
GraduateLevel |
getGraduateLevel(java.lang.String level)
getGraduateLevel returns a GraduateLevel object for the String. |
UndergraduateLevel |
getUndergraduateLevel(java.lang.String level)
getUndergraduateLevel returns a UndergraduateLevel object for the String. |
Unit |
getUnit(java.lang.String unitName)
Returns a Unit object from the value read in from the xml document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuildFromXML()
Method Detail |
---|
public Address createAddress(java.util.HashMap<java.lang.String,java.lang.String> map)
map
- A map containing all of the values need to create
a new Address object.
public Person createPerson(java.util.HashMap<java.lang.String,java.lang.String> personMap)
personMap
- A map contain all of the values read in from the
xml document. The map contains the
public Undergraduate createUndergraduate(java.util.HashMap<java.lang.String,java.lang.String> undergraduateMap)
undergraduateMap
- A HashMap containing all of the values to
construct a new Undergraduate.
public Graduate createGraduate(java.util.HashMap<java.lang.String,java.lang.String> graduateMap)
graduateMap
- A HashMap containing all of the values needed
to construct a Graduate student.
public Unit getUnit(java.lang.String unitName)
unitName
- The name of the Unit object to get a reference to.
public Sex getGender(java.lang.String gender)
gender
- A String contain the value "male" or "female"
public GraduateLevel getGraduateLevel(java.lang.String level)
level
- A String for the graduate level can contain the
value "masters" or "phd"
public UndergraduateLevel getUndergraduateLevel(java.lang.String level)
level
- A String for the undergraduate level can contain the
value "freshman", "sophmore", "junior" or "senior"
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |