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

Class SitecoreFieldDictionaryMapper
Inheritance: AbstractSitecoreFieldMapper
Afficher le fichier Open project: mikeedwards83/Glass.Mapper

Méthodes publiques

Méthode 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

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

Method Details

CanHandle() public méthode

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.
Résultat bool

GetFieldValue() public méthode

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.
Résultat object

SetFieldValue() public méthode

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.
Résultat string

Setup() public méthode

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.
Résultat void

SitecoreFieldDictionaryMapper() public méthode

Initializes a new instance of the SitecoreFieldDictionaryMapper class.
public SitecoreFieldDictionaryMapper ( ) : System
Résultat System