org.kuali.rice.kns.util.documentserializer
Class AlwaysFalsePropertySerializabilityEvaluator

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

public class AlwaysFalsePropertySerializabilityEvaluator
extends PropertySerializabilityEvaluatorBase

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

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
 
Fields inherited from class org.kuali.rice.kns.util.documentserializer.PropertySerializabilityEvaluatorBase
serializableProperties
 
Constructor Summary
AlwaysFalsePropertySerializabilityEvaluator()
           
 
Method Summary
 void initializeEvaluator(Document document)
          Initializes the evaluator so that calls to #isPropertySerializable(DocumentSerializationState, Object, String, Object) and PropertySerializabilityEvaluator.determinePropertyType(Object) will function properly
 boolean isPropertySerializable(SerializationState state, Object containingObject, String childPropertyName, Object childPropertyValue)
          Returns whether a child property of a given containing object should be serialized, based on the metadata provided in the data dictionary.
 
Methods inherited from class org.kuali.rice.kns.util.documentserializer.PropertySerializabilityEvaluatorBase
determinePropertyType, evaluateCompleteMatch, evaluatePartialMatch, initializeEvaluator, isPrimitiveObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlwaysFalsePropertySerializabilityEvaluator

public AlwaysFalsePropertySerializabilityEvaluator()
Method Detail

initializeEvaluator

public void initializeEvaluator(Document document)
Description copied from interface: PropertySerializabilityEvaluator
Initializes the evaluator so that calls to #isPropertySerializable(DocumentSerializationState, Object, String, Object) and PropertySerializabilityEvaluator.determinePropertyType(Object) will function properly

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

isPropertySerializable

public boolean isPropertySerializable(SerializationState state,
                                      Object containingObject,
                                      String childPropertyName,
                                      Object childPropertyValue)
Description copied from class: PropertySerializabilityEvaluatorBase
Returns whether a child property of a given containing object should be serialized, based on the metadata provided in the data dictionary.

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.kns.util.documentserializer.PropertySerializabilityEvaluator#isPropertySerializable(org.kuali.rice.kns.util.documentserializer.DocumentSerializationState, java.lang.Object, java.lang.String, java.lang.Object)


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