1 package org.enhydra.shark.xpdl.elements; 2 3 import org.enhydra.shark.xpdl.XMLAttribute; 4 import org.enhydra.shark.xpdl.XMLCollectionElement; 5 6 11 public class Participant extends XMLCollectionElement { 12 13 public Participant (Participants parent) { 14 super(parent, true); 15 } 16 17 protected void fillStructure () { 18 XMLAttribute attrName=new XMLAttribute(this,"Name", false); 19 ParticipantType refParticipantType=new ParticipantType(this); 20 Description refDescription=new Description(this); ExternalReference refExternalReference=new ExternalReference(this, false); ExtendedAttributes refExtendedAttributes=new ExtendedAttributes(this); 24 super.fillStructure(); 25 add(attrName); 26 add(refParticipantType); 27 add(refDescription); 28 add(refExternalReference); 29 add(refExtendedAttributes); 30 } 31 32 public String getName() { 33 return get("Name").toValue(); 34 } 35 public void setName(String name) { 36 set("Name",name); 37 } 38 public String getDescription() { 39 return get("Description").toValue(); 40 } 41 public void setDescription(String description) { 42 set("Description",description); 43 } 44 public ExtendedAttributes getExtendedAttributes() { 45 return (ExtendedAttributes)get("ExtendedAttributes"); 46 } 47 public ExternalReference getExternalReference() { 48 return (ExternalReference)get("ExternalReference"); 49 } 50 public ParticipantType getParticipantType() { 51 return (ParticipantType)get("ParticipantType"); 52 } 53 } 54 | Popular Tags |