} else { // let's assume the user wants to load the view
dvtmp.setAvailable(true);
}
}
if (tag.equals("mapdefinition")) { mapdefinition = true;
vtmp = new View();
if (h.containsKey("view")) {
view = (String)h.get("view");
if (view != null && view.length() > 0) {
vtmp.setName(view);
vtmp.setLoadView(true); // this view has extra data and is supposed to be loaded (the map)
}
}
if (h.containsKey("BackgroundImage")) {
vtmp.setBackgroundImage((String)h.get("BackgroundImage"));
}
if (h.containsKey("LayoutTranslateX")) {
try {
translateX = Double.parseDouble((String)h.get("LayoutTranslateX"));
vtmp.setLayoutTranslateX(translateX);
} catch (NumberFormatException nfe) {}
}
if (h.containsKey("LayoutTranslateY")) {
try {
translateY = Double.parseDouble((String)h.get("LayoutTranslateY"));
vtmp.setLayoutTranslateY(translateY);
} catch (NumberFormatException nfe) {}
}
if (h.containsKey("ViewTranslateX")) {
try {
translateX = Double.parseDouble((String)h.get("ViewTranslateX"));
vtmp.setViewTranslateX(translateX);
} catch (NumberFormatException nfe) {}
}
if (h.containsKey("ViewTranslateY")) {
try {
translateY = Double.parseDouble((String)h.get("ViewTranslateY"));
vtmp.setViewTranslateY(translateY);
} catch (NumberFormatException nfe) {}
}
if (h.containsKey("scale")) {
try {
scale = Double.parseDouble((String)h.get("scale"));
vtmp.setScale(scale);
} catch (NumberFormatException nfe) {}
}
if (vtmp != null)
ll.addFirst(vtmp);
} //mapdefinition
if (tag.equals("config")) { conf = true; }
if (tag.equals("layouttranslatex")) { layouttranslatex = true; }
if (tag.equals("layouttranslatey")) { layouttranslatey = true; }
if (tag.equals("viewtranslatex")) { viewtranslatex = true; }
if (tag.equals("viewtranslatey")) { viewtranslatey = true; }
if (tag.equals("scale")) { sscale = true; }
if (tag.equals("backgroundimage")) { backgroundimage = true; }
if (tag.equals("backgroundtitle")) { backgroundtitle = true; }
if (tag.equals("testingpuller")) {
ctp = new ConfTestPuller();
testingpuller = true; }
if (tag.equals("edge")) { edge = true;
metmp = new MapEdge();
if (h.containsKey("hidden")) {
metmp.setHidden(Boolean.parseBoolean((String)h.get("hidden")));
}
}
if (edge && tag.equals("first")) { first = true; }
if (edge && tag.equals("second")) { second = true; }
if (edge && tag.equals("color")) { color = true; }
if (tag.equals("host")) { host = true;
htmp = new MapHost();
if (h.containsKey("hidden")) {
htmp.setHidden(Boolean.parseBoolean((String)h.get("hidden")));
}
if (h.containsKey("locked")) {
htmp.lock(Boolean.parseBoolean((String)h.get("locked")));
}
}
if (host) {
if (tag.equals("label_location")) { label_location = true; }
}
if (tag.equals("name")) { name = true; }
if (tag.equals("coords")) { coords = true; }
if (tag.equals("puller")) { puller = true; putmp = new ConfPuller(); }
if (tag.equals("pusher")) { pusher = true; pushtmp = new ConfPusher(); }
if (tag.equals("class")) { sclass = true; }
if (tag.equals("plugin")) { plugin = true; pltmp = new ConfPlugin(); }
if (tag.equals("param")) { param = true; patmp = new ConfParam(); }
if (tag.equals("value")) { value = true; }
if (tag.equals("type")) { type = true; }
if (tag.equals("views")) { views = true; }
if (tag.equals("view")) { viewitem = true; vtmp = new View(); }
/* error section */
if (tag.compareTo("error") == 0) { errorDefinition = true; etmp = new ErrorMapper();}
if (errorDefinition) {
if (tag.compareTo("type") == 0) { errorType = true; }