|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ObjectStructureDefinition | Line # 12 | 10 | 0% | 9 | 10 | 50% |
0.5
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (12) | |||
| Result | |||
|
0.3
|
org.kuali.student.common.assembly.dictionary.TestMetadataServiceImpl.testMetadataFormatter
org.kuali.student.common.assembly.dictionary.TestMetadataServiceImpl.testMetadataFormatter
|
1 PASS | |
|
0.3
|
org.kuali.student.common.assembly.TestAuthorizationFilter.testMaskPermissions
org.kuali.student.common.assembly.TestAuthorizationFilter.testMaskPermissions
|
1 PASS | |
|
0.3
|
org.kuali.student.common.assembly.dictionary.TestMetadataServiceImpl.testMetadataService
org.kuali.student.common.assembly.dictionary.TestMetadataServiceImpl.testMetadataService
|
1 PASS | |
|
0.3
|
org.kuali.student.common.assembly.TestAuthorizationFilter.testEditPermissions
org.kuali.student.common.assembly.TestAuthorizationFilter.testEditPermissions
|
1 PASS | |
|
0.2
|
org.kuali.student.common.validator.TestValidator.testDoubleValueRange
org.kuali.student.common.validator.TestValidator.testDoubleValueRange
|
1 PASS | |
|
0.2
|
org.kuali.student.common.validator.TestValidator.testRequired
org.kuali.student.common.validator.TestValidator.testRequired
|
1 PASS | |
|
0.2
|
org.kuali.student.common.validator.TestValidator.testValidChars
org.kuali.student.common.validator.TestValidator.testValidChars
|
1 PASS | |
|
0.2
|
org.kuali.student.common.validator.TestValidator.testNestedStructures
org.kuali.student.common.validator.TestValidator.testNestedStructures
|
1 PASS | |
|
0.2
|
org.kuali.student.common.validator.TestValidator.testMinLength
org.kuali.student.common.validator.TestValidator.testMinLength
|
1 PASS | |
|
0.2
|
org.kuali.student.common.validator.TestValidator.testMinDateValue
org.kuali.student.common.validator.TestValidator.testMinDateValue
|
1 PASS | |
|
0.2
|
org.kuali.student.common.validator.TestValidator.testMaxLength
org.kuali.student.common.validator.TestValidator.testMaxLength
|
1 PASS | |
|
0.2
|
org.kuali.student.common.validator.TestValidator.testLengthRange
org.kuali.student.common.validator.TestValidator.testLengthRange
|
1 PASS | |
| 1 | package org.kuali.student.common.dictionary.dto; | |
| 2 | ||
| 3 | import java.util.ArrayList; | |
| 4 | import java.util.List; | |
| 5 | ||
| 6 | import javax.xml.bind.annotation.XmlAccessType; | |
| 7 | import javax.xml.bind.annotation.XmlAccessorType; | |
| 8 | import javax.xml.bind.annotation.XmlElement; | |
| 9 | import javax.xml.bind.annotation.XmlID; | |
| 10 | ||
| 11 | @XmlAccessorType(XmlAccessType.FIELD) | |
| 12 | public class ObjectStructureDefinition { | |
| 13 | @XmlElement(required = true) | |
| 14 | @XmlID | |
| 15 | protected String name;// TODO do we need this? | |
| 16 | @XmlElement | |
| 17 | protected String businessObjectClass; | |
| 18 | @XmlElement | |
| 19 | protected List<FieldDefinition> attributes; | |
| 20 | @XmlElement | |
| 21 | protected boolean hasMetaData;//TODO do we need this? | |
| 22 | ||
| 23 | 0 |
public String getBusinessObjectClass() { |
| 24 | 0 | return businessObjectClass; |
| 25 | } | |
| 26 | ||
| 27 | 0 |
public void setBusinessObjectClass(String businessObjectClass) { |
| 28 | 0 | this.businessObjectClass = businessObjectClass; |
| 29 | } | |
| 30 | ||
| 31 | 45 |
public List<FieldDefinition> getAttributes() { |
| 32 | 45 | if(attributes==null){ |
| 33 | 0 | attributes = new ArrayList<FieldDefinition>(); |
| 34 | } | |
| 35 | 45 | return attributes; |
| 36 | } | |
| 37 | ||
| 38 | 36 |
public void setAttributes(List<FieldDefinition> attributes) { |
| 39 | 36 | this.attributes = attributes; |
| 40 | } | |
| 41 | ||
| 42 | 51 |
public String getName() { |
| 43 | 51 | return name; |
| 44 | } | |
| 45 | ||
| 46 | 36 |
public void setName(String name) { |
| 47 | 36 | this.name = name; |
| 48 | } | |
| 49 | ||
| 50 | 0 |
public boolean isHasMetaData() { |
| 51 | 0 | return hasMetaData; |
| 52 | } | |
| 53 | ||
| 54 | 0 |
public void setHasMetaData(boolean hasMetaData) { |
| 55 | 0 | this.hasMetaData = hasMetaData; |
| 56 | } | |
| 57 | } | |
|
||||||||||||