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

Class AbstractSitecoreFieldMapper
Inheritance: AbstractDataMapper
Afficher le fichier Open project: mikeedwards83/Glass.Mapper Class Usage Examples

Méthodes publiques

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

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

CanHandle() public méthode

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

GetField() public méthode

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

GetFieldValue() public abstract méthode

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

MapCmsToProperty() public méthode

public MapCmsToProperty ( AbstractDataMappingContext mappingContext ) : void
mappingContext AbstractDataMappingContext
Résultat void

MapPropertyToCms() public méthode

public MapPropertyToCms ( AbstractDataMappingContext mappingContext ) : void
mappingContext AbstractDataMappingContext
Résultat void

MapToCms() public méthode

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

MapToProperty() public méthode

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

SetField() public méthode

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

SetFieldValue() public abstract méthode

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

Setup() public méthode

public Setup ( Mapper args ) : void
args Mapper
Résultat void