01: /**
02: *
03: */package com.bostechcorp.cbesb.runtime.component.sequencing;
04:
05: /**
06: * @author sb.ji
07: *
08: */
09: public enum SequencingPropertiesEnumeration {
10: SERVICE_LIST {
11: String getValue(SequencingEndpoint endpoint) {
12: return endpoint.getServiceList();
13: }
14:
15: void setValue(SequencingEndpoint endpoint, Object value) {
16: if (isSetable())
17: endpoint.setServiceList((String) value);
18: }
19:
20: boolean isSetable() {
21: return false;
22: }
23: };
24: /**
25: *
26: * @param endpoint --
27: * endpoint in use
28: * @return - attribute value according to enumeration item
29: */
30: abstract String getValue(SequencingEndpoint endpoint);
31:
32: /**
33: *
34: * @param endpoint--
35: * endpoint in use
36: * @param value -
37: * sets attribute value according to enumeration item
38: */
39: abstract void setValue(SequencingEndpoint endpoint, Object value);
40:
41: /**
42: * tells either is possible or not to set the value false if the attribute
43: * is read only
44: *
45: * @return
46: */
47: abstract boolean isSetable();
48: }
|