C# 클래스 NVelocity.VelocityContext

General purpose implemention of the application Context interface for general application use. This class should be used in place of the original Context class.
상속: NVelocity.Context.AbstractContext
파일 보기 프로젝트 열기: rasmus-toftdahl-olesen/NVelocity 1 사용 예제들

공개 메소드들

메소드 설명
InternalContainsKey ( Object key ) : bool

determines if there is a value for the given key

InternalGet ( String key ) : Object

retrieves value for key from internal storage

InternalGetKeys ( ) : Object[]

returns array of keys

InternalPut ( String key, Object value ) : Object

stores the value for key to internal storage

InternalRemove ( Object key ) : Object

remove a key/value pair from the internal storage

VelocityContext ( ) : System

Creates a new instance (with no inner context).

VelocityContext ( Hashtable context ) : System

Creates a new instance with the provided storage (and no inner context).

VelocityContext ( Hashtable context, IContext innerContext ) : System

Initializes internal storage (never to null), and inner context.

VelocityContext ( IContext innerContext ) : System

Chaining constructor, used when you want to wrap a context in another. The inner context will be 'read only' - put() calls to the wrapping context will only effect the outermost context

메소드 상세

InternalContainsKey() 공개 메소드

determines if there is a value for the given key
public InternalContainsKey ( Object key ) : bool
key Object name of value to check
리턴 bool

InternalGet() 공개 메소드

retrieves value for key from internal storage
public InternalGet ( String key ) : Object
key String name of value to get
리턴 Object

InternalGetKeys() 공개 메소드

returns array of keys
public InternalGetKeys ( ) : Object[]
리턴 Object[]

InternalPut() 공개 메소드

stores the value for key to internal storage
public InternalPut ( String key, Object value ) : Object
key String name of value to store
value Object value to store
리턴 Object

InternalRemove() 공개 메소드

remove a key/value pair from the internal storage
public InternalRemove ( Object key ) : Object
key Object name of value to remove
리턴 Object

VelocityContext() 공개 메소드

Creates a new instance (with no inner context).
public VelocityContext ( ) : System
리턴 System

VelocityContext() 공개 메소드

Creates a new instance with the provided storage (and no inner context).
public VelocityContext ( Hashtable context ) : System
context System.Collections.Hashtable
리턴 System

VelocityContext() 공개 메소드

Initializes internal storage (never to null), and inner context.
public VelocityContext ( Hashtable context, IContext innerContext ) : System
context System.Collections.Hashtable Internal storage, or null to /// create default storage. ///
innerContext IContext Inner context. /// ///
리턴 System

VelocityContext() 공개 메소드

Chaining constructor, used when you want to wrap a context in another. The inner context will be 'read only' - put() calls to the wrapping context will only effect the outermost context
public VelocityContext ( IContext innerContext ) : System
innerContext IContext The Context implementation to wrap.
리턴 System