org.kuali.rice.krad.util.documentserializer
Class AlwaysTruePropertySerializibilityEvaluator

java.lang.Object
  extended by org.kuali.rice.krad.util.documentserializer.PropertySerializabilityEvaluatorBase
      extended by org.kuali.rice.krad.util.documentserializer.AlwaysTruePropertySerializibilityEvaluator
All Implemented Interfaces:
PropertySerializabilityEvaluator

public class AlwaysTruePropertySerializibilityEvaluator
extends PropertySerializabilityEvaluatorBase
implements PropertySerializabilityEvaluator

This implementation of PropertySerializabilityEvaluator specifies that all properties of a document are serializable.


Field Summary
 
Fields inherited from class org.kuali.rice.krad.util.documentserializer.PropertySerializabilityEvaluatorBase
serializableProperties
 
Constructor Summary
AlwaysTruePropertySerializibilityEvaluator()
           
 
Method Summary
 void initializeEvaluatorForDocument(Document document)
          Does nothing, since we know everything's serializable
 boolean isPropertySerializable(SerializationState state, Object containingObject, String childPropertyName, Object childPropertyValue)
          Trivially returns true
 
Methods inherited from class org.kuali.rice.krad.util.documentserializer.PropertySerializabilityEvaluatorBase
determinePropertyType, evaluateCompleteMatch, evaluatePartialMatch, initializeEvaluatorForDataObject, isPrimitiveObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krad.util.documentserializer.PropertySerializabilityEvaluator
determinePropertyType, initializeEvaluatorForDataObject
 

Constructor Detail

AlwaysTruePropertySerializibilityEvaluator

public AlwaysTruePropertySerializibilityEvaluator()
Method Detail

initializeEvaluatorForDocument

public void initializeEvaluatorForDocument(Document document)
Does nothing, since we know everything's serializable

Specified by:
initializeEvaluatorForDocument in interface PropertySerializabilityEvaluator
Overrides:
initializeEvaluatorForDocument in class PropertySerializabilityEvaluatorBase
Parameters:
document - the document instance

isPropertySerializable

public boolean isPropertySerializable(SerializationState state,
                                      Object containingObject,
                                      String childPropertyName,
                                      Object childPropertyValue)
Trivially returns true

Specified by:
isPropertySerializable in interface PropertySerializabilityEvaluator
Overrides:
isPropertySerializable in class PropertySerializabilityEvaluatorBase
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:
See Also:
org.kuali.rice.krad.util.documentserializer.PropertySerializabilityEvaluator#isPropertySerializable(org.kuali.rice.krad.util.documentserializer.DocumentSerializationState, Object, java.lang.String, java.lang.Object)


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