1 package xuml.tools.model.compiler.info;
2
3 public class MyIndependentAttribute {
4 private final String fieldName;
5 private final String columnName;
6 private final MyTypeDefinition type;
7 private final boolean nullable;
8 private final String description;
9 private final MyAttributeExtensions extensions;
10 private final String attributeName;
11
12 public MyIndependentAttribute(String attributeName, String fieldName, String columnName,
13 MyTypeDefinition type, boolean nullable, String description,
14 MyAttributeExtensions extensions) {
15 super();
16 this.attributeName = attributeName;
17 this.fieldName = fieldName;
18 this.columnName = columnName;
19 this.type = type;
20 this.nullable = nullable;
21 this.description = description;
22 this.extensions = extensions;
23 }
24
25 public String getAttributeName() {
26 return attributeName;
27 }
28
29 public String getDescription() {
30 return description;
31 }
32
33 public String getFieldName() {
34 return fieldName;
35 }
36
37 public String getColumnName() {
38 return columnName;
39 }
40
41 public MyTypeDefinition getType() {
42 return type;
43 }
44
45 public MyAttributeExtensions getExtensions() {
46 return extensions;
47 }
48
49 public boolean isNullable() {
50 return nullable && !extensions.isGenerated();
51 }
52
53 }