Class BusinessObjectPropertySerializibilityEvaluator
java.lang.Object
org.kuali.rice.krad.util.documentserializer.PropertySerializabilityEvaluatorBase
org.kuali.rice.krad.util.documentserializer.BusinessObjectPropertySerializibilityEvaluator
- All Implemented Interfaces:
PropertySerializabilityEvaluator
public class BusinessObjectPropertySerializibilityEvaluator
extends PropertySerializabilityEvaluatorBase
implements PropertySerializabilityEvaluator
This implementation of
PropertySerializabilityEvaluator uses the <workflowProperties> defined within the data dictionary
for a document. If the property being serialized corresponds to one of the properties in the data dictionary, then it will be serialized.
If a property specified in the data dictionary corresponds to a business object, then all primitives will be serialized of the business object.
All primitives of a primitive that has already been serialized will be serialized as well. If a property specified in the data dictionary corresponds
to a collection, then all primitives of all collection elements will be serialized.-
Field Summary
Fields inherited from class org.kuali.rice.krad.util.documentserializer.PropertySerializabilityEvaluatorBase
serializableProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitializeEvaluatorForDocument(Document document) Reads the data dictionary to determine which properties of the document should be serialized.Methods inherited from class org.kuali.rice.krad.util.documentserializer.PropertySerializabilityEvaluatorBase
determinePropertyType, evaluateCompleteMatch, evaluatePartialMatch, initializeEvaluatorForDataObject, isPrimitiveObject, isPropertySerializableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.util.documentserializer.PropertySerializabilityEvaluator
determinePropertyType, initializeEvaluatorForDataObject, isPropertySerializable
-
Constructor Details
-
BusinessObjectPropertySerializibilityEvaluator
public BusinessObjectPropertySerializibilityEvaluator()
-
-
Method Details
-
initializeEvaluatorForDocument
Reads the data dictionary to determine which properties of the document should be serialized. Initializes the evaluator so that calls toPropertySerializabilityEvaluator.isPropertySerializable(SerializationState, Object, String, Object)andPropertySerializabilityEvaluator.determinePropertyType(Object)will function properly- Specified by:
initializeEvaluatorForDocumentin interfacePropertySerializabilityEvaluator- Overrides:
initializeEvaluatorForDocumentin classPropertySerializabilityEvaluatorBase- Parameters:
document- the document instance
-