C# 클래스 SimpleFramework.Xml.Filter.EnvironmentFilter

The EnvironmentFilter object is used to provide a filter that will replace the specified values with an environment variable from the OS. This can be given a delegate filter which can be used to resolve replacements should the value requested not match an environment variable from the OS.
상속: Filter
파일 보기 프로젝트 열기: ngallagher/simplexml

공개 메소드들

메소드 설명
EnvironmentFilter ( ) : System

Constructor for the EnvironmentFilter object. This creates a filter that resolves replacements using environment variables. Should the environment variables not contain the requested mapping this will return a null value.

EnvironmentFilter ( Filter filter ) : System

Constructor for the EnvironmentFilter object. This creates a filter that resolves replacements using environment variables. Should the environment variables not contain the requested mapping this will delegate to the specified filter.

Replace ( String text ) : String

Replaces the text provided with the value resolved from the environment variables. If the environment variables fail this will delegate to the specified Filter if it is not a null object. If no match is found a null is returned.

메소드 상세

EnvironmentFilter() 공개 메소드

Constructor for the EnvironmentFilter object. This creates a filter that resolves replacements using environment variables. Should the environment variables not contain the requested mapping this will return a null value.
public EnvironmentFilter ( ) : System
리턴 System

EnvironmentFilter() 공개 메소드

Constructor for the EnvironmentFilter object. This creates a filter that resolves replacements using environment variables. Should the environment variables not contain the requested mapping this will delegate to the specified filter.
public EnvironmentFilter ( Filter filter ) : System
filter Filter /// the filter delegated to should resolution fail ///
리턴 System

Replace() 공개 메소드

Replaces the text provided with the value resolved from the environment variables. If the environment variables fail this will delegate to the specified Filter if it is not a null object. If no match is found a null is returned.
public Replace ( String text ) : String
text String /// this is the text value to be replaced ///
리턴 String