KickJava   Java API By Example, From Geeks To Geeks.

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


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

12 public class ConformanceClass extends XMLComplexElement {
13    
14    public ConformanceClass (Package JavaDoc parent) {
15       super(parent, false);
16    }
17
18    protected void fillStructure () {
19       XMLAttribute attrGraphConformance=new XMLAttribute(this,"GraphConformance",
20             false,new String JavaDoc[] {
21                "",
22                XPDLConstants.GRAPH_CONFORMANCE_FULL_BLOCKED,
23                XPDLConstants.GRAPH_CONFORMANCE_LOOP_BLOCKED,
24                XPDLConstants.GRAPH_CONFORMANCE_NON_BLOCKED
25             }, 0);
26
27       add(attrGraphConformance);
28    }
29
30    public XMLAttribute getGraphConformanceAttribute() {
31       return (XMLAttribute)get("GraphConformance");
32    }
33    public String JavaDoc getGraphConformance () {
34       return getGraphConformanceAttribute().toValue();
35    }
36    public void setGraphConformanceNONE () {
37       getGraphConformanceAttribute().setValue("");
38    }
39    public void setGraphConformanceFULL_BLOCKED () {
40       getGraphConformanceAttribute().setValue(XPDLConstants.GRAPH_CONFORMANCE_FULL_BLOCKED);
41    }
42    public void setGraphConformanceLOOP_BLOCKED () {
43       getGraphConformanceAttribute().setValue(XPDLConstants.GRAPH_CONFORMANCE_LOOP_BLOCKED);
44    }
45    public void setGraphConformanceNON_BLOCKED () {
46       getGraphConformanceAttribute().setValue(XPDLConstants.GRAPH_CONFORMANCE_NON_BLOCKED);
47    }
48    
49 }
50
Popular Tags