PropertyProcessor Class |
Namespace: Tangosol.Util.Processor
public abstract class PropertyProcessor : AbstractProcessor, IPortableObject
The PropertyProcessor type exposes the following members.
| Name | Description | |
|---|---|---|
| PropertyProcessor |
Default constructor.
| |
| PropertyProcessor(String) |
Construct a PropertyProcessor for the specified
property name.
| |
| PropertyProcessor(PropertyManipulator) |
Construct a PropertyProcessor based for the specified
PropertyManipulator.
| |
| PropertyProcessor(String, Boolean) |
Construct a PropertyProcessor for the specified
property name.
|
| Name | Description | |
|---|---|---|
| Description |
Returns this PropertyProcessor's description.
|
| Name | Description | |
|---|---|---|
| Equals |
Compare the PropertyProcessor with another object to
determine equality.
(Overrides ObjectEquals(Object).) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| Get |
Get the property value from the passed entry object.
| |
| GetHashCode |
Determine a hash value for the PropertyProcessor object
according to the general GetHashCode
contract.
(Overrides ObjectGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Process |
Process an IInvocableCacheEntry.
(Inherited from AbstractProcessor.) | |
| ProcessAll |
Process a collection of IInvocableCacheEntry
objects.
(Inherited from AbstractProcessor.) | |
| ReadExternal |
Restore the contents of a user type instance by reading its state
using the specified IPofReader object.
| |
| Set |
Set the property value into the passed entry object.
| |
| ToString |
Return a human-readable description for this
PropertyProcessor.
(Overrides ObjectToString.) | |
| WriteExternal |
Save the contents of a POF user type instance by writing its
state using the specified IPofWriter object.
|
| Name | Description | |
|---|---|---|
| m_manipulator |
The property value manipulator.
|
public Object Process(IInvocableDictonaryEntry entry)
{
// retrieve an old property value
Object oldValue = entry;
... // calculate a new value and the process result
... // based on the old value and the processor's attributes
if (!newValue.Equals(oldValue))
{
// set the new property value
entry = newValue;
}
// return the process result
return oResult;
}