Show / Hide Table of Contents

Class PropertyManipulator

PropertyManipulator is a reflection based IValueManipulator implementation.

Inheritance
object
PropertyManipulator
Implements
IValueManipulator
IPortableObject
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Tangosol.Util.Processor
Assembly: Coherence.dll
Syntax
public class PropertyManipulator : IValueManipulator, IPortableObject

Constructors

PropertyManipulator()

Default constructor.

Declaration
public PropertyManipulator()

PropertyManipulator(string)

Construct a PropertyManipulator for the specified property name.

Declaration
public PropertyManipulator(string name)
Parameters
Type Name Description
string name

A property name.

PropertyManipulator(string, bool)

Construct a PropertyManipulator for the specified property name.

Declaration
public PropertyManipulator(string name, bool useIs)
Parameters
Type Name Description
string name

A property name.

bool useIs

If true, the getter method will be prefixed with "Is".

Fields

m_extractor

The underlying IValueExtractor.

Declaration
[NonSerialized]
protected IValueExtractor m_extractor
Field Value
Type Description
IValueExtractor

m_extractorPart

A partial IValueExtractor used for composite properties.

Declaration
[NonSerialized]
protected IValueExtractor m_extractorPart
Field Value
Type Description
IValueExtractor

m_name

The property name, never null.

Declaration
protected string m_name
Field Value
Type Description
string

m_updater

The underlying IValueUpdater.

Declaration
[NonSerialized]
protected IValueUpdater m_updater
Field Value
Type Description
IValueUpdater

m_useIs

The getter prefix flag.

Declaration
protected bool m_useIs
Field Value
Type Description
bool

Properties

Extractor

Retreive the underlying IValueExtractor reference.

Declaration
public virtual IValueExtractor Extractor { get; }
Property Value
Type Description
IValueExtractor

The IValueExtractor.

Updater

Retreive the underlying IValueUpdater reference.

Declaration
public virtual IValueUpdater Updater { get; }
Property Value
Type Description
IValueUpdater

The IValueUpdater.

Methods

Equals(object)

Compare the PropertyManipulator with another object to determine equality.

Declaration
public override bool Equals(object o)
Parameters
Type Name Description
object o

The object to compare with.

Returns
Type Description
bool

true iff this PropertyManipulator and the passed object are equivalent PropertyManipulator.

Overrides
object.Equals(object)

GetHashCode()

Determine a hash value for the PropertyManipulator object according to the general GetHashCode() contract.

Declaration
public override int GetHashCode()
Returns
Type Description
int

An integer hash value for this PropertyManipulator object.

Overrides
object.GetHashCode()

Init()

Parse the property name and initialize necessary extractor and updater.

Declaration
protected void Init()

ReadExternal(IPofReader)

Restore the contents of a user type instance by reading its state using the specified IPofReader object.

Declaration
public virtual void ReadExternal(IPofReader reader)
Parameters
Type Name Description
IPofReader reader

The IPofReader from which to read the object's state.

Exceptions
Type Condition
IOException

If an I/O error occurs.

ToString()

Return a human-readable description for this PropertyManipulator.

Declaration
public override string ToString()
Returns
Type Description
string

A String description of the PropertyManipulator.

Overrides
object.ToString()

WriteExternal(IPofWriter)

Save the contents of a POF user type instance by writing its state using the specified IPofWriter object.

Declaration
public virtual void WriteExternal(IPofWriter writer)
Parameters
Type Name Description
IPofWriter writer

The IPofWriter to which to write the object's state.

Exceptions
Type Condition
IOException

If an I/O error occurs.

Implements

IValueManipulator
IPortableObject
In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.