C# Class Glass.Mapper.Sc.DataMappers.SitecoreFieldDictionaryMapper

Class SitecoreFieldDictionaryMapper
Inheritance: AbstractSitecoreFieldMapper
Show file Open project: mikeedwards83/Glass.Mapper

Public Methods

Method Description
CanHandle ( AbstractPropertyConfiguration configuration, Glass.Mapper.Context context ) : bool

Determines whether this instance can handle the specified configuration.

GetFieldValue ( string fieldValue, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : object

Gets the field value.

SetFieldValue ( object value, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : string

Sets the field value.

Setup ( Glass.Mapper.Pipelines.DataMapperResolver.DataMapperResolverArgs args ) : void

Sets up the data mapper for a particular property

SitecoreFieldDictionaryMapper ( ) : System

Initializes a new instance of the SitecoreFieldDictionaryMapper class.

Private Methods

Method Description
GetMapper ( Type genericArgument, SitecoreFieldConfiguration fieldConfiguration, PropertyInfo propertyInfo, Glass.Mapper.Pipelines.DataMapperResolver.DataMapperResolverArgs args ) : AbstractSitecoreFieldMapper

Method Details

CanHandle() public method

Determines whether this instance can handle the specified configuration.
public CanHandle ( AbstractPropertyConfiguration configuration, Glass.Mapper.Context context ) : bool
configuration Glass.Mapper.Configuration.AbstractPropertyConfiguration The configuration.
context Glass.Mapper.Context The context.
return bool

GetFieldValue() public method

Gets the field value.
public GetFieldValue ( string fieldValue, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : object
fieldValue string The field value.
config Glass.Mapper.Sc.Configuration.SitecoreFieldConfiguration The config.
context Glass.Mapper.Sc.SitecoreDataMappingContext The context.
return object

SetFieldValue() public method

Sets the field value.
public SetFieldValue ( object value, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : string
value object The value.
config Glass.Mapper.Sc.Configuration.SitecoreFieldConfiguration The config.
context Glass.Mapper.Sc.SitecoreDataMappingContext The context.
return string

Setup() public method

Sets up the data mapper for a particular property
No mapper to handle type {0} on property {1} class {2}.Formatted(type.FullName, property.Name, /// property.ReflectedType.FullName)
public Setup ( Glass.Mapper.Pipelines.DataMapperResolver.DataMapperResolverArgs args ) : void
args Glass.Mapper.Pipelines.DataMapperResolver.DataMapperResolverArgs The args.
return void

SitecoreFieldDictionaryMapper() public method

Initializes a new instance of the SitecoreFieldDictionaryMapper class.
public SitecoreFieldDictionaryMapper ( ) : System
return System