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 21 public class ParticipantType extends XMLComplexElement { 22 private XMLAttribute attrType=new XMLAttribute("Type", 24 new String [] { 25 "RESOURCE_SET", 26 "RESOURCE", 27 "ROLE", 28 "ORGANIZATIONAL_UNIT", 29 "HUMAN", 30 "SYSTEM" 31 }, 32 2,false,true); 33 34 38 public ParticipantType () { 39 super(); 40 41 fillStructure(); 42 } 43 44 48 protected void fillStructure () { 49 attrType.setRequired(true); 50 complexStructure.add(attrType); 51 attributes.add(attrType); 52 } 53 54 60 public XMLPanel getPanel () { 61 return attrType.getPanel(); 62 } 63 64 72 public Object toValue () { 73 return attrType.toValue(); 74 } 75 76 84 public String toString () { 85 return attrType.toString(); 86 } 87 88 } 89 | Popular Tags |