C# Класс Glass.Mapper.Sc.DataMappers.AbstractSitecoreFieldMapper

Class AbstractSitecoreFieldMapper
Наследование: AbstractDataMapper
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

AbstractSitecoreFieldMapper() публичный Метод

Initializes a new instance of the AbstractSitecoreFieldMapper class.
public AbstractSitecoreFieldMapper ( ) : System
Результат System

CanHandle() публичный Метод

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.
Результат bool

GetField() публичный Метод

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.
Результат object

GetFieldValue() публичный абстрактный Метод

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.
Результат object

MapCmsToProperty() публичный Метод

public MapCmsToProperty ( AbstractDataMappingContext mappingContext ) : void
mappingContext AbstractDataMappingContext
Результат void

MapPropertyToCms() публичный Метод

public MapPropertyToCms ( AbstractDataMappingContext mappingContext ) : void
mappingContext AbstractDataMappingContext
Результат void

MapToCms() публичный Метод

Maps data from the .Net property value to the CMS value
public MapToCms ( AbstractDataMappingContext mappingContext ) : void
mappingContext AbstractDataMappingContext The mapping context.
Результат void

MapToProperty() публичный Метод

Maps data from the CMS value to the .Net property value
public MapToProperty ( AbstractDataMappingContext mappingContext ) : object
mappingContext AbstractDataMappingContext The mapping context.
Результат object

SetField() публичный Метод

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.
Результат void

SetFieldValue() публичный абстрактный Метод

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.
Результат string

Setup() публичный Метод

public Setup ( Mapper args ) : void
args Mapper
Результат void