source: xssim/src/schedframe/scheduling/plan/impl/ParameterProperty.java @ 104

Revision 104, 2.3 KB checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package schedframe.scheduling.plan.impl;
2
3import java.io.StringWriter;
4
5import org.exolab.castor.xml.MarshalException;
6import org.exolab.castor.xml.ValidationException;
7
8import schedframe.scheduling.plan.ParameterPropertyInterface;
9
10
11public class ParameterProperty implements ParameterPropertyInterface<org.qcg.broker.schemas.schedulingplan.ParameterProperty> {
12
13        private static final long serialVersionUID = -1452887249087909576L;
14        private org.qcg.broker.schemas.schedulingplan.ParameterProperty p;
15       
16        public ParameterProperty(){
17                p = new org.qcg.broker.schemas.schedulingplan.ParameterProperty();
18        }
19       
20        public ParameterProperty(org.qcg.broker.schemas.schedulingplan.ParameterProperty value){
21                this.p = value;
22        }
23       
24        public org.qcg.broker.schemas.schedulingplan.ParameterProperty getDescription() {
25                return p;
26        }
27
28        public String getDocument() {
29                StringWriter writer = new StringWriter();
30                try {
31                        p.marshal(writer);
32                } catch (MarshalException e) {
33                        e.printStackTrace();
34                } catch (ValidationException e) {
35                        e.printStackTrace();
36                }
37                return writer.toString();
38        }
39
40        public void addValue(String value) throws IndexOutOfBoundsException {
41                p.addValue(value);
42        }
43
44        public void addValue(int index, String value)
45                        throws IndexOutOfBoundsException {
46                p.addValue(index, value);
47        }
48
49        public void deleteExclude() {
50                p.deleteExclude();
51        }
52
53        public boolean getExclude() {
54                return p.getExclude();
55        }
56
57        public String getName() {
58                return p.getName();
59        }
60
61        public String getValue(int index) throws IndexOutOfBoundsException {
62                return p.getValue(index);
63        }
64
65        public String[] getValue() {
66                return p.getValue();
67        }
68
69        public int getValueCount() {
70                return p.getValueCount();
71        }
72
73        public boolean hasExclude() {
74                return p.hasExclude();
75        }
76
77        public boolean isExclude() {
78                return p.isExclude();
79        }
80
81        public boolean isValid() {
82                return p.isValid();
83        }
84
85        public void removeAllValue() {
86                p.removeAllValue();
87        }
88
89        public boolean removeValue(String value) {
90                return p.removeValue(value);
91        }
92
93        public String removeValueAt(int index) {
94                return p.removeValueAt(index);
95        }
96
97        public void setExclude(boolean exclude) {
98                p.setExclude(exclude);
99        }
100
101        public void setName(String name) {
102                p.setName(name);
103        }
104
105        public void setValue(int index, String value)
106                        throws IndexOutOfBoundsException {
107                p.setValue(index, value);
108        }
109
110        public void setValue(String[] valueArray) {
111                p.setValue(valueArray);
112        }
113
114}
Note: See TracBrowser for help on using the repository browser.