C# Класс SimpleFramework.Xml.Core.TemplateFilter

The TemplateFilter class is used to provide variables to the template engine. This template acquires variables from two different sources. Firstly this will consult the user contextual Context object, which can contain variables that have been added during the deserialization process. If a variable is not present from this context it asks the Filter that has been specified by the user.
Наследование: Filter
Показать файл Открыть проект

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

Метод Описание
Replace ( String name ) : String

This will acquire the named variable value if it exists. If the named variable cannot be found in either the context or the user specified filter then this returns null.

TemplateFilter ( Context context, Filter filter ) : SimpleFramework.Xml.Filter

Constructor for the TemplateFilter object. This creates a filter object that acquires template values from two different contexts. Firstly the Context is queried for a variables followed by the Filter.

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

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

This will acquire the named variable value if it exists. If the named variable cannot be found in either the context or the user specified filter then this returns null.
public Replace ( String name ) : String
name String /// this is the name of the variable to acquire ///
Результат String

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

Constructor for the TemplateFilter object. This creates a filter object that acquires template values from two different contexts. Firstly the Context is queried for a variables followed by the Filter.
public TemplateFilter ( Context context, Filter filter ) : SimpleFramework.Xml.Filter
context Context /// this is the context object for the persister ///
filter Filter /// the filter that has been given to the persister ///
Результат SimpleFramework.Xml.Filter