package com.c2kernel.lifecycle.instance.predefined.entitycreation; import org.w3c.dom.Element; import org.w3c.dom.NodeList; import org.w3c.dom.Text; import com.c2kernel.utils.CastorHashMap; import com.c2kernel.utils.KeyValuePair; public class AggregationMember implements java.io.Serializable { public int slotNo; public String itemDescriptionPath; public String itemPath; public Geometry geometry; public CastorHashMap props = new CastorHashMap(); public AggregationMember() { super(); } public AggregationMember(int slotNo, String itemDescPath, String itemPath, Geometry geometry) { this.slotNo = slotNo; this.itemDescriptionPath = itemDescPath; this.itemPath = itemPath; this.geometry = geometry; } public AggregationMember(Element memElem) { Element geom = (Element)memElem.getElementsByTagName("Geometry").item(0); this.slotNo = Integer.parseInt(memElem.getAttribute("slotNo")); this.itemDescriptionPath = memElem.getAttribute("itemDescriptionPath"); this.itemPath = memElem.getAttribute("itemPath"); this.geometry = new Geometry(Integer.parseInt(geom.getAttribute("x")), Integer.parseInt(geom.getAttribute("y")), Integer.parseInt(geom.getAttribute("width")), Integer.parseInt(geom.getAttribute("height"))); NodeList cmpnl = memElem.getElementsByTagName("MemberProperty"); for (int l=0; l