Clover Coverage Report - Kuali Student 1.2-M4-SNAPSHOT (Aggregated)
Coverage timestamp: Wed Jul 20 2011 11:14:35 EDT
../../../../../../img/srcFileCovDistChart9.png 24% of files have more coverage
24   134   24   1
0   104   1   24
24     1  
1    
 
  FieldDefinition       Line # 9 24 0% 24 8 83.3% 0.8333333
 
  (13)
 
1    package org.kuali.student.common.dictionary.dto;
2   
3    import javax.xml.bind.annotation.XmlAccessType;
4    import javax.xml.bind.annotation.XmlAccessorType;
5    import javax.xml.bind.annotation.XmlElement;
6    import javax.xml.bind.annotation.XmlIDREF;
7   
8    @XmlAccessorType(XmlAccessType.FIELD)
 
9    public class FieldDefinition extends Constraint {
10    // name (used in the path to identify this field within an object structure)
11    @XmlElement
12    protected String name;
13   
14    // Datatypes
15    @XmlElement
16    protected DataType dataType;// SHould be
17    // DATE,STRING,INTEGER,BOOLEAN,COMPLEX,...
18    @XmlIDREF
19    @XmlElement
20    protected ObjectStructureDefinition dataObjectStructure;
21   
22    //Dynamic attribute flag (SG wanted incase user typos the field name and all of a sudden all fields are attributes)
23    @XmlElement
24    protected boolean dynamic = false;
25   
26    // Default values
27    @XmlElement
28    protected Object defaultValue;// Set the default value
29   
30    @XmlElement
31    protected String defaultValuePath;// obtain the default value from another
32    // field? how will this work? some
33    // xpath-like syntax which might be able
34    // to access elements above this element
35    // like the //root/course/desc
36   
37    // AuthZ
38    // protected WriteAccess writeAccess; // Can we replace readOnly with the
39    // // writeaccess? a writeAccess of never
40    // // is readOnly=true, otherwise oncreate,
41    // // when null, required will imply
42    // // readOnly=false
43    @XmlElement
44    protected boolean readOnly = false;
45   
46    @XmlElement
47    protected boolean hide = false;
48   
49    @XmlElement
50    protected boolean mask = false;
51   
52    @XmlElement
53    protected boolean partialMask = false;
54   
55    @XmlElement
56    protected String partialMaskFormatter;//Regex replace to do a partial mask
57   
58    @XmlElement
59    protected String maskFormatter;//Regex replace to do a mask
60   
 
61  445 toggle public String getName() {
62  445 return name;
63    }
 
64  156 toggle public void setName(String name) {
65  156 this.name = name;
66    }
 
67  325 toggle public DataType getDataType() {
68  325 return dataType;
69    }
 
70  156 toggle public void setDataType(DataType dataType) {
71  156 this.dataType = dataType;
72    }
 
73  10 toggle public ObjectStructureDefinition getDataObjectStructure() {
74  10 return dataObjectStructure;
75    }
 
76  13 toggle public void setDataObjectStructure(ObjectStructureDefinition dataObjectStructure) {
77  13 this.dataObjectStructure = dataObjectStructure;
78    }
 
79  93 toggle public Object getDefaultValue() {
80  93 return defaultValue;
81    }
 
82  0 toggle public void setDefaultValue(Object defaultValue) {
83  0 this.defaultValue = defaultValue;
84    }
 
85  93 toggle public String getDefaultValuePath() {
86  93 return defaultValuePath;
87    }
 
88  0 toggle public void setDefaultValuePath(String defaultValuePath) {
89  0 this.defaultValuePath = defaultValuePath;
90    }
 
91  93 toggle public boolean isReadOnly() {
92  93 return readOnly;
93    }
 
94  26 toggle public void setReadOnly(boolean readOnly) {
95  26 this.readOnly = readOnly;
96    }
 
97  93 toggle public boolean isHide() {
98  93 return hide;
99    }
 
100  0 toggle public void setHide(boolean hide) {
101  0 this.hide = hide;
102    }
 
103  186 toggle public boolean isMask() {
104  186 return mask;
105    }
 
106  13 toggle public void setMask(boolean mask) {
107  13 this.mask = mask;
108    }
 
109  93 toggle public boolean isPartialMask() {
110  93 return partialMask;
111    }
 
112  13 toggle public void setPartialMask(boolean partialMask) {
113  13 this.partialMask = partialMask;
114    }
115   
 
116  93 toggle public boolean isDynamic() {
117  93 return dynamic;
118    }
 
119  0 toggle public void setDynamic(boolean dynamic) {
120  0 this.dynamic = dynamic;
121    }
 
122  11 toggle public String getPartialMaskFormatter() {
123  11 return partialMaskFormatter;
124    }
 
125  13 toggle public void setPartialMaskFormatter(String partialMaskFormatter) {
126  13 this.partialMaskFormatter = partialMaskFormatter;
127    }
 
128  11 toggle public String getMaskFormatter() {
129  11 return maskFormatter;
130    }
 
131  13 toggle public void setMaskFormatter(String maskFormatter) {
132  13 this.maskFormatter = maskFormatter;
133    }
134    }