KickJava   Java API By Example, From Geeks To Geeks.

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


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

11 public class EnumerationValue extends XMLComplexElement {
12
13    public EnumerationValue (EnumerationType parent) {
14       super(parent,true);
15    }
16
17    protected void fillStructure () {
18       XMLAttribute attrName=new XMLAttribute(parent,"Name",true); // required
19
add(attrName);
20    }
21
22    public String JavaDoc getName() {
23       return get("Name").toValue();
24    }
25    public void setName(String JavaDoc name) {
26       set("Name",name);
27    }
28    
29 }
30
Popular Tags