public void load(File file) throws ALMException {
try {
ProcessXML pro = new ProcessXML(this);
JAXBContext jc = JAXBContext.newInstance("jaxb");
Unmarshaller unmarshaller = jc.createUnmarshaller();
ALMSchema almlayout = (ALMSchema) unmarshaller.unmarshal(file);
List<ALMSchema.Area> areaList = almlayout.getArea();
List<ALMSchema.Constraint> constraintList = almlayout.getConstraint();
for (int i = 0; i < areaList.size(); i++) {
pro.parseArea(areaList.get(i));
}
for (int i = 0; i < constraintList.size(); i++) {
pro.parseConstraint(constraintList.get(i));