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

Class AbstractSitecoreFieldMapper
Inheritance: AbstractDataMapper
Mostrar archivo Open project: mikeedwards83/Glass.Mapper Class Usage Examples

Public Methods

Method Description
AbstractSitecoreFieldMapper ( ) : System

Initializes a new instance of the AbstractSitecoreFieldMapper class.

CanHandle ( Mapper configuration, Context context ) : bool

Indicates that the data mapper will mapper to and from the property

GetField ( Field field, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : object

Gets the field.

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

Gets the field value.

MapCmsToProperty ( AbstractDataMappingContext mappingContext ) : void
MapPropertyToCms ( AbstractDataMappingContext mappingContext ) : void
MapToCms ( AbstractDataMappingContext mappingContext ) : void

Maps data from the .Net property value to the CMS value

MapToProperty ( AbstractDataMappingContext mappingContext ) : object

Maps data from the CMS value to the .Net property value

SetField ( Field field, object value, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : void

Sets the field.

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

Sets the field value.

Setup ( Mapper args ) : void

Method Details

AbstractSitecoreFieldMapper() public method

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

CanHandle() public method

Indicates that the data mapper will mapper to and from the property
public CanHandle ( Mapper configuration, Context context ) : bool
configuration Mapper The configuration.
context Context The context.
return bool

GetField() public method

Gets the field.
public GetField ( Field field, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : object
field Field The field.
config Glass.Mapper.Sc.Configuration.SitecoreFieldConfiguration The config.
context SitecoreDataMappingContext The context.
return object

GetFieldValue() public abstract method

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

MapCmsToProperty() public method

public MapCmsToProperty ( AbstractDataMappingContext mappingContext ) : void
mappingContext AbstractDataMappingContext
return void

MapPropertyToCms() public method

public MapPropertyToCms ( AbstractDataMappingContext mappingContext ) : void
mappingContext AbstractDataMappingContext
return void

MapToCms() public method

Maps data from the .Net property value to the CMS value
public MapToCms ( AbstractDataMappingContext mappingContext ) : void
mappingContext AbstractDataMappingContext The mapping context.
return void

MapToProperty() public method

Maps data from the CMS value to the .Net property value
public MapToProperty ( AbstractDataMappingContext mappingContext ) : object
mappingContext AbstractDataMappingContext The mapping context.
return object

SetField() public method

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

SetFieldValue() public abstract method

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

Setup() public method

public Setup ( Mapper args ) : void
args Mapper
return void