C# Class Spring.Globalization.Formatters.FilteringFormatter

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

Méthodes publiques

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

Méthodes protégées

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

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

FilterValueToParse() protected méthode

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

FilteringFormatter() public méthode

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

Formats the specified value.
public Format ( object value ) : string
value object The value to format.
Résultat string

Parse() public méthode

Parses the specified value.
public Parse ( string value ) : object
value string The value to parse.
Résultat object