C# Class Spring.Globalization.Formatters.FilteringFormatter

Provides base functionality for filtering values before they actually get parsed/formatted.
Inheritance: IFormatter
Mostra file Open project: spring-projects/spring-net

Public Methods

Method Description
FilteringFormatter ( IFormatter underlyingFormatter )

Creates a new instance of this FilteringFormatter.

If no underlying formatter is specified, the values get passed through "as-is" after being filtered

Format ( object value ) : string

Formats the specified value.

Parse ( string value ) : object

Parses the specified value.

Protected Methods

Method Description
FilterValueToFormat ( object value ) : object

Allows to change a value before it gets formatted by the underlying formatter

FilterValueToParse ( string value ) : string

Allows to rewrite a value before it gets parsed by the underlying formatter

Method Details

FilterValueToFormat() protected method

Allows to change a value before it gets formatted by the underlying formatter
protected FilterValueToFormat ( object value ) : object
value object
return object

FilterValueToParse() protected method

Allows to rewrite a value before it gets parsed by the underlying formatter
protected FilterValueToParse ( string value ) : string
value string
return string

FilteringFormatter() public method

Creates a new instance of this FilteringFormatter.
If no underlying formatter is specified, the values get passed through "as-is" after being filtered
public FilteringFormatter ( IFormatter underlyingFormatter )
underlyingFormatter IFormatter an optional underlying formatter

Format() public method

Formats the specified value.
public Format ( object value ) : string
value object The value to format.
return string

Parse() public method

Parses the specified value.
public Parse ( string value ) : object
value string The value to parse.
return object