protected void doModelRemove(XmlAdapter child) {
   String type = child.getElementType();
   Swimlane swimlane = (Swimlane) getSemanticElement();
   if ("assignment".equals(type)) {
     swimlane.setAssignment(null);
   }
 }
 protected void initialize() {
   super.initialize();
   Swimlane swimlane = (Swimlane) getSemanticElement();
   if (swimlane != null) {
     setAttribute("name", swimlane.getName());
     addElement(swimlane.getAssignment());
   }
 }
 protected void doModelAdd(XmlAdapter child) {
   String type = child.getElementType();
   SemanticElement jpdlElement = createSemanticElementFor(child);
   child.initialize(jpdlElement);
   Swimlane swimlane = (Swimlane) getSemanticElement();
   if ("assignment".equals(type)) {
     swimlane.setAssignment((Assignment) jpdlElement);
   }
 }
 protected void doModelUpdate(String name, String newValue) {
   Swimlane swimlane = (Swimlane) getSemanticElement();
   if ("name".equals(name)) {
     swimlane.setName(newValue);
   }
 }
 public void initialize(SemanticElement jpdlElement) {
   super.initialize(jpdlElement);
   Swimlane swimlane = (Swimlane) jpdlElement;
   swimlane.setName(getAttribute("name"));
   swimlane.addPropertyChangeListener(this);
 }