1 10 11 package org.enhydra.jawe.xml.elements; 12 13 import org.enhydra.jawe.xml.*; 14 import org.enhydra.jawe.xml.panels.*; 15 16 23 public class TransitionRestrictions extends XMLCollection { 24 25 public TransitionRestrictions (Activity act) { 26 super(act); 27 } 28 29 36 public XMLElement generateNewElement() { 37 TransitionRestriction tr=new TransitionRestriction(); 38 tr.setRequired(true); 39 return tr; 40 } 41 42 49 public Object clone () { 50 TransitionRestrictions t=(TransitionRestrictions)super.clone(); 51 return t; 52 } 53 54 public boolean isEmpty () { 55 if (!super.isEmpty()) { 56 TransitionRestriction tr=(TransitionRestriction) 57 refCollectionElements.get(0); 58 if (tr.isEmpty() && size()==1) { 59 return true; 60 } 61 } 62 return false; 63 } 64 65 } 66 | Popular Tags |