C# Класс NVelocity.Context.AbstractContext

Наследование: InternalContextBase, IContext
Показать файл Открыть проект

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

Метод Описание
AbstractContext ( ) : System

default CTOR

AbstractContext ( IContext inner ) : System

Chaining constructor accepts a Context argument. It will relay get() operations into this Context in the even the 'local' get() returns null.

ContainsKey ( Object key ) : bool

Indicates whether the specified key is in the context. Provided for debugging purposes. *

Get ( String key ) : Object

Gets the value corresponding to the provided key from the context. * Supports the chaining context mechanism. If the 'local' context doesn't have the value, we try to get it from the chained context. *

InternalContainsKey ( Object key ) : bool

Implement to determine if a key is in the storage.

Currently, this method is not used internally by the Velocity core. *

InternalGet ( String key ) : Object

Implement to return a value from the context storage.

The implementation of this method is required for proper operation of a Context implementation in general Velocity use.

InternalGetKeys ( ) : Object[]

Implement to return an object array of key strings from your storage.

Currently, this method is not used internally by the Velocity core. *

InternalPut ( String key, Object value ) : Object

Implement to put a value into the context storage.

The implementation of this method is required for proper operation of a Context implementation in general Velocity use. *

InternalRemove ( Object key ) : Object

Implement to remove an item from your storage.

Currently, this method is not used internally by the Velocity core. *

Put ( String key, Object value ) : Object

Adds a name/value pair to the context.

Remove ( Object key ) : Object

Get all the keys for the values in the context

Removes the value associated with the specified key from the context. *

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

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

default CTOR
public AbstractContext ( ) : System
Результат System

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

Chaining constructor accepts a Context argument. It will relay get() operations into this Context in the even the 'local' get() returns null.
public AbstractContext ( IContext inner ) : System
inner IContext context to be chained /// ///
Результат System

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

Indicates whether the specified key is in the context. Provided for debugging purposes. *
public ContainsKey ( Object key ) : bool
key Object The key to look for. ///
Результат bool

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

Gets the value corresponding to the provided key from the context. * Supports the chaining context mechanism. If the 'local' context doesn't have the value, we try to get it from the chained context. *
public Get ( String key ) : Object
key String The name of the desired value. ///
Результат Object

InternalContainsKey() публичный абстрактный Метод

Implement to determine if a key is in the storage.

Currently, this method is not used internally by the Velocity core. *
public abstract InternalContainsKey ( Object key ) : bool
key Object key to test for existance ///
Результат bool

InternalGet() публичный абстрактный Метод

Implement to return a value from the context storage.

The implementation of this method is required for proper operation of a Context implementation in general Velocity use.
public abstract InternalGet ( String key ) : Object
key String key whose associated value is to be returned ///
Результат Object

InternalGetKeys() публичный абстрактный Метод

Implement to return an object array of key strings from your storage.

Currently, this method is not used internally by the Velocity core. *
public abstract InternalGetKeys ( ) : Object[]
Результат Object[]

InternalPut() публичный абстрактный Метод

Implement to put a value into the context storage.

The implementation of this method is required for proper operation of a Context implementation in general Velocity use. *
public abstract InternalPut ( String key, Object value ) : Object
key String key with which to associate the value ///
value Object value to be associated with the key ///
Результат Object

InternalRemove() публичный абстрактный Метод

Implement to remove an item from your storage.

Currently, this method is not used internally by the Velocity core. *
public abstract InternalRemove ( Object key ) : Object
key Object key to remove ///
Результат Object

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

Adds a name/value pair to the context.
public Put ( String key, Object value ) : Object
key String The name to key the provided value with. ///
value Object The corresponding value. ///
Результат Object

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

Get all the keys for the values in the context Removes the value associated with the specified key from the context. *
public Remove ( Object key ) : Object
key Object The name of the value to remove. ///
Результат Object