01: package org.romaframework.module.designer.domain;
02:
03: import org.romaframework.aspect.core.annotation.CoreClass;
04:
05: @CoreClass(orderFields="setted name value source")
06: public class RadAnnotation {
07: private String name;
08: private Object value;
09: private boolean setted;
10: private short source;
11:
12: @Override
13: public String toString() {
14: return name + " = " + value;
15: }
16:
17: public RadAnnotation() {
18: }
19:
20: public RadAnnotation(String iName, Object iValue) {
21: name = iName;
22: value = iValue;
23: setted = value != null;
24: }
25:
26: public RadAnnotation(String name, Object value, boolean setted,
27: short source) {
28: this .name = name;
29: this .value = value;
30: this .setted = setted;
31: this .source = source;
32: }
33:
34: public String getName() {
35: return name;
36: }
37:
38: public void setName(String name) {
39: this .name = name;
40: }
41:
42: public Object getValue() {
43: return value;
44: }
45:
46: public void setValue(Object value) {
47: this .value = value;
48: }
49:
50: public boolean isSetted() {
51: return setted;
52: }
53:
54: public void setSetted(boolean setted) {
55: this .setted = setted;
56: }
57:
58: public short getSource() {
59: return source;
60: }
61:
62: public void setSource(short source) {
63: this.source = source;
64: }
65: }
|