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

Class SitecoreFieldStringMapper
Inheritance: AbstractSitecoreFieldMapper
显示文件 Open project: mikeedwards83/Glass.Mapper Class Usage Examples

Public Methods

Method Description
GetField ( Sitecore field, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : object

Gets the field.

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

Gets the field value.

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

Sets the field.

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

Sets the field value.

SitecoreFieldStringMapper ( ) : System

Initializes a new instance of the SitecoreFieldStringMapper class.

Protected Methods

Method Description
GetResult ( Field field, bool isRichText ) : string
RunPipeline ( Field field ) : string

Method Details

GetField() public method

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

GetFieldValue() public method

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 SitecoreDataMappingContext The context.
return object

GetResult() protected method

protected GetResult ( Field field, bool isRichText ) : string
field Field
isRichText bool
return string

RunPipeline() protected method

protected RunPipeline ( Field field ) : string
field Field
return string

SetField() public method

Sets the field.
It is not possible to save data from a rich text field when the data isn't raw. /// + Set the SitecoreFieldAttribute setting property to SitecoreFieldSettings.RichTextRaw for property {0} on type {1}.Formatted(config.PropertyInfo.Name, config.PropertyInfo.ReflectedType.FullName)
public SetField ( Sitecore field, object value, SitecoreFieldConfiguration config, SitecoreDataMappingContext context ) : void
field Sitecore The field.
value object The value.
config Glass.Mapper.Sc.Configuration.SitecoreFieldConfiguration The config.
context SitecoreDataMappingContext The context.
return void

SetFieldValue() public method

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 SitecoreDataMappingContext The context.
return string

SitecoreFieldStringMapper() public method

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