org.kuali.rice.krad.util.documentserializer
Interface PropertySerializabilityEvaluator

All Known Implementing Classes:
AlwaysFalsePropertySerializabilityEvaluator, AlwaysTruePropertySerializibilityEvaluator, BusinessObjectPropertySerializibilityEvaluator, MaintenanceDocumentPropertySerializibilityEvaluator, PropertySerializabilityEvaluatorBase

public interface PropertySerializabilityEvaluator

Specifies an implementation used during document workflow XML serialization that will be able to determine whether a specific property is serializable


Method Summary
 PropertyType determinePropertyType(Object object)
          Determines the type of a object
 void initializeEvaluatorForDataObject(Object businessObject)
           
 void initializeEvaluatorForDocument(Document document)
          Initializes the evaluator so that calls to isPropertySerializable(SerializationState, Object, String, Object) and determinePropertyType(Object) will function properly
 boolean isPropertySerializable(SerializationState state, Object containingObject, String childPropertyName, Object childPropertyValue)
          Determines whether a child property of an object is serializable.
 

Method Detail

initializeEvaluatorForDocument

void initializeEvaluatorForDocument(Document document)
Initializes the evaluator so that calls to isPropertySerializable(SerializationState, Object, String, Object) and determinePropertyType(Object) will function properly

Parameters:
document - the document instance

initializeEvaluatorForDataObject

void initializeEvaluatorForDataObject(Object businessObject)

isPropertySerializable

boolean isPropertySerializable(SerializationState state,
                               Object containingObject,
                               String childPropertyName,
                               Object childPropertyValue)
Determines whether a child property of an object is serializable.

Parameters:
state - Information about the properties that have been serialized so far
containingObject - The object containing the reference to childPropertyValue
childPropertyName - The name property to determine whether to serialize, relative to containingObject (i.e. not a nested attribute)
childPropertyValue - If serializable, this property would be serialized by the serializer service.
Returns:

determinePropertyType

PropertyType determinePropertyType(Object object)
Determines the type of a object

Parameters:
object -
Returns:


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.