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
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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