KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > xpdl > elements > Participant


1 package org.enhydra.shark.xpdl.elements;
2
3 import org.enhydra.shark.xpdl.XMLAttribute;
4 import org.enhydra.shark.xpdl.XMLCollectionElement;
5
6 /**
7  * Represents coresponding element from XPDL schema.
8  *
9  * @author Sasa Bojanic
10  */

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); // min=0
21
ExternalReference refExternalReference=new ExternalReference(this, false); // min=0
22
ExtendedAttributes refExtendedAttributes=new ExtendedAttributes(this); // min=0
23

24       super.fillStructure();
25       add(attrName);
26       add(refParticipantType);
27       add(refDescription);
28       add(refExternalReference);
29       add(refExtendedAttributes);
30    }
31
32    public String JavaDoc getName() {
33       return get("Name").toValue();
34    }
35    public void setName(String JavaDoc name) {
36       set("Name",name);
37    }
38    public String JavaDoc getDescription() {
39       return get("Description").toValue();
40    }
41    public void setDescription(String JavaDoc 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