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
파일 보기 프로젝트 열기: ngallagher/simplexml

공개 메소드들

메소드 설명
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