1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.datadictionary;
17
18 import org.kuali.rice.krad.datadictionary.validator.ValidationTrace;
19
20
21
22
23
24
25
26
27 public class ComplexAttributeDefinition extends AttributeDefinitionBase {
28 private static final long serialVersionUID = 3977923609388434447L;
29
30 protected DataDictionaryEntry dataObjectEntry;
31
32
33
34
35 public DataDictionaryEntry getDataObjectEntry() {
36 return this.dataObjectEntry;
37 }
38
39
40
41
42 public void setDataObjectEntry(DataDictionaryEntry dataObjectEntry) {
43 this.dataObjectEntry = dataObjectEntry;
44 }
45
46 public void completeValidation(Class<?> rootObjectClass, Class<?> otherObjectClass, ValidationTrace tracer) {
47 tracer.addBean(this.getClass().getSimpleName(), "id: " + getId());
48 if (getDataObjectEntry() == null) {
49 String currentValues[] = {"id = " + getId(), "class = " + rootObjectClass.getName()};
50 tracer.createError("ComplexAttributeDefinition missing dataObjectClass", currentValues);
51 }
52 }
53 }