01: package org.romaframework.module.designer.domain;
02:
03: import org.romaframework.aspect.core.annotation.AnnotationConstants;
04: import org.romaframework.aspect.core.annotation.CoreClass;
05: import org.romaframework.aspect.view.annotation.ViewField;
06: import org.romaframework.core.domain.type.TreeNodeList;
07: import org.romaframework.core.schema.SchemaField;
08:
09: @CoreClass(orderFields="name type modifiers")
10: public class RadField extends RadMember {
11: @ViewField(enabled=AnnotationConstants.FALSE)
12: private String type;
13:
14: public RadField(TreeNodeList iParent, String iName) {
15: super (iParent, iName);
16: }
17:
18: public RadField(TreeNodeList iParent, String iName,
19: SchemaField iSchemaField) {
20: super (iParent, iName);
21: schemaFeatures = iSchemaField;
22: name = iSchemaField.getName();
23: type = iSchemaField.getTypeClass().getName();
24: }
25:
26: public String getType() {
27: return type;
28: }
29:
30: public void setType(String type) {
31: this .type = type;
32: }
33:
34: @Override
35: @ViewField(enabled=AnnotationConstants.FALSE)
36: public String getName() {
37: return super .getName();
38: }
39:
40: @ViewField(visible=AnnotationConstants.FALSE)
41: public SchemaField getSchemaField() {
42: return (SchemaField) schemaFeatures;
43: }
44: }
|