01: package org.enhydra.shark.xpdl.elements;
02:
03: import org.enhydra.shark.xpdl.XMLAttribute;
04: import org.enhydra.shark.xpdl.XMLComplexElement;
05: import org.enhydra.shark.xpdl.XPDLConstants;
06:
07: /**
08: * Represents coresponding element from XPDL schema.
09: *
10: * @author Sasa Bojanic
11: */
12: public class ConformanceClass extends XMLComplexElement {
13:
14: public ConformanceClass(Package parent) {
15: super (parent, false);
16: }
17:
18: protected void fillStructure() {
19: XMLAttribute attrGraphConformance = new XMLAttribute(this ,
20: "GraphConformance", false, new String[] {
21: XPDLConstants.GRAPH_CONFORMANCE_NONE,
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:
34: public String getGraphConformance() {
35: return getGraphConformanceAttribute().toValue();
36: }
37:
38: public void setGraphConformanceNONE() {
39: getGraphConformanceAttribute().setValue(
40: XPDLConstants.GRAPH_CONFORMANCE_NONE);
41: }
42:
43: public void setGraphConformanceFULL_BLOCKED() {
44: getGraphConformanceAttribute().setValue(
45: XPDLConstants.GRAPH_CONFORMANCE_FULL_BLOCKED);
46: }
47:
48: public void setGraphConformanceLOOP_BLOCKED() {
49: getGraphConformanceAttribute().setValue(
50: XPDLConstants.GRAPH_CONFORMANCE_LOOP_BLOCKED);
51: }
52:
53: public void setGraphConformanceNON_BLOCKED() {
54: getGraphConformanceAttribute().setValue(
55: XPDLConstants.GRAPH_CONFORMANCE_NON_BLOCKED);
56: }
57:
58: }
|