| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
package org.kuali.rice.kns.util.documentserializer; |
| 17 |
|
|
| 18 |
|
import java.util.ArrayList; |
| 19 |
|
import java.util.Collection; |
| 20 |
|
import java.util.List; |
| 21 |
|
|
| 22 |
|
import org.kuali.rice.kns.bo.BusinessObject; |
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
@link |
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
|
|
|
| 0% |
Uncovered Elements: 13 (13) |
Complexity: 6 |
Complexity Density: 0.86 |
|
| 32 |
|
public class DocumentSerializationState { |
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 3 |
Complexity Density: 0.75 |
|
| 33 |
|
protected class SerializationPropertyElement { |
| 34 |
|
private String elementName; |
| 35 |
|
private PropertyType propertyType; |
| 36 |
|
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 37 |
0
|
public SerializationPropertyElement(String elementName, PropertyType propertyType) {... |
| 38 |
0
|
this.elementName = elementName; |
| 39 |
0
|
this.propertyType = propertyType; |
| 40 |
|
} |
| 41 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 42 |
0
|
public String getElementName() {... |
| 43 |
0
|
return this.elementName; |
| 44 |
|
} |
| 45 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 46 |
0
|
public PropertyType getPropertyType() {... |
| 47 |
0
|
return this.propertyType; |
| 48 |
|
} |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
private List<SerializationPropertyElement> pathElements; |
| 52 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 53 |
0
|
public DocumentSerializationState() {... |
| 54 |
0
|
pathElements = new ArrayList<SerializationPropertyElement>(); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
|
| 58 |
|
|
| 59 |
|
|
| 60 |
|
@return |
| 61 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 62 |
0
|
public int numPropertyElements() {... |
| 63 |
0
|
return pathElements.size(); |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
|
| 67 |
|
|
| 68 |
|
|
| 69 |
|
@param |
| 70 |
|
@param |
| 71 |
|
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 72 |
0
|
public void addSerializedProperty(String elementName, PropertyType propertyType) {... |
| 73 |
0
|
SerializationPropertyElement serializationPropertyElement = new SerializationPropertyElement(elementName, propertyType); |
| 74 |
0
|
pathElements.add(serializationPropertyElement); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
|
| 78 |
|
|
| 79 |
|
|
| 80 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 81 |
0
|
public void removeSerializedProperty() {... |
| 82 |
0
|
pathElements.remove(pathElements.size() - 1); |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
|
| 86 |
|
|
| 87 |
|
@link |
| 88 |
|
@link |
| 89 |
|
|
| 90 |
|
@param@link |
| 91 |
|
@return |
| 92 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 93 |
0
|
public String getElementName(int propertyIndex) {... |
| 94 |
0
|
return pathElements.get(propertyIndex).getElementName(); |
| 95 |
|
} |
| 96 |
|
|
| 97 |
|
|
| 98 |
|
|
| 99 |
|
@link |
| 100 |
|
@link |
| 101 |
|
|
| 102 |
|
@param@link |
| 103 |
|
@return |
| 104 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 105 |
0
|
public PropertyType getPropertyType(int propertyIndex) {... |
| 106 |
0
|
return pathElements.get(propertyIndex).getPropertyType(); |
| 107 |
|
} |
| 108 |
|
} |