org.kuali.rice.kns.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(java.lang.Object object)
          Determines the type of a object
 void initializeEvaluator(org.kuali.rice.kns.bo.BusinessObject businessObject)
           
 void initializeEvaluator(Document document)
          Initializes the evaluator so that calls to #isPropertySerializable(DocumentSerializationState, Object, String, Object) and determinePropertyType(Object) will function properly
 boolean isPropertySerializable(SerializationState state, java.lang.Object containingObject, java.lang.String childPropertyName, java.lang.Object childPropertyValue)
          Determines whether a child property of an object is serializable.
 

Method Detail

initializeEvaluator

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

Parameters:
document - the document instance

initializeEvaluator

void initializeEvaluator(org.kuali.rice.kns.bo.BusinessObject businessObject)

isPropertySerializable

boolean isPropertySerializable(SerializationState state,
                               java.lang.Object containingObject,
                               java.lang.String childPropertyName,
                               java.lang.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(java.lang.Object object)
Determines the type of a object

Parameters:
object -
Returns:


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.