Diffusion .NET Client Library
6.1.5
|
A custom field handler defines the behaviour of a
metadata type. More...
Public Member Functions | |
object | Parse (object obj) |
Parses any object that can be parsed into the internal representation of this field's data type. More... | |
bool | AreEqual (object source, object target) |
Compares two objects for equality assuming that they are already of the internal value of this data type (i.e. parsed). More... | |
Properties | |
object | InitialDefaultValue [get, set] |
Get initial default value for the data type. More... | |
A custom field handler defines the behaviour of a
metadata type.
A single handler may be used for many metadata fields of the same custom data type and must be thread-safe.
Every custom field is represented externally as a string but may use a different type for internal representation as it is more efficient for comparisons.
bool PushTechnology.ClientInterface.Client.Content.Metadata.ICustomFieldHandler.AreEqual | ( | object | source, |
object | target | ||
) |
Compares two objects for equality assuming that they are already of the internal value of this data type (i.e. parsed).
source | The source object. |
target | The target object. |
object PushTechnology.ClientInterface.Client.Content.Metadata.ICustomFieldHandler.Parse | ( | object | obj | ) |
Parses any object that can be parsed into the internal representation of this field's data type.
obj | A value to parse - if null is supplied, then the default value should be returned. This value would typically be of type string but any type should be catered for, and the simplest way of doing this is using the ToString() method of the object that is supplied. |
|
getset |
Get initial default value for the data type.
Returns a default value of the internal type for the field data type. The type of the object returned should be the internal representation for the data type.