C# Class Glass.Mapper.AbstractDataMapper

A data mapper converts data from the CMS stored value to the .Net data type
显示文件 Open project: mikeedwards83/Glass.Mapper

Public Methods

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

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

MapCmsToProperty ( Glass.Mapper.AbstractDataMappingContext mappingContext ) : void

Takes CMS data and writes it to the property

MapPropertyToCms ( Glass.Mapper.AbstractDataMappingContext mappingContext ) : void

Takes a Property value and writes it to a CMS value

MapToCms ( Glass.Mapper.AbstractDataMappingContext mappingContext ) : void

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

MapToProperty ( Glass.Mapper.AbstractDataMappingContext mappingContext ) : object

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

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

Sets up the data mapper for a particular property

Method Details

CanHandle() public abstract method

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

MapCmsToProperty() public method

Takes CMS data and writes it to the property
public MapCmsToProperty ( Glass.Mapper.AbstractDataMappingContext mappingContext ) : void
mappingContext Glass.Mapper.AbstractDataMappingContext The mapping context.
return void

MapPropertyToCms() public method

Takes a Property value and writes it to a CMS value
public MapPropertyToCms ( Glass.Mapper.AbstractDataMappingContext mappingContext ) : void
mappingContext Glass.Mapper.AbstractDataMappingContext The mapping context.
return void

MapToCms() public abstract method

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

MapToProperty() public abstract method

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

Setup() public method

Sets up the data mapper for a particular property
public Setup ( Glass.Mapper.Pipelines.DataMapperResolver.DataMapperResolverArgs args ) : void
args Glass.Mapper.Pipelines.DataMapperResolver.DataMapperResolverArgs The args.
return void