C# Class NVelocity.Context.AbstractContext

Inheritance: InternalContextBase, IContext
ファイルを表示 Open project: rasmus-toftdahl-olesen/NVelocity

Public Methods

Method Description
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. *

Method Details

AbstractContext() public method

default CTOR
public AbstractContext ( ) : System
return System

AbstractContext() public method

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 /// ///
return System

ContainsKey() public method

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. ///
return bool

Get() public method

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. ///
return Object

InternalContainsKey() public abstract method

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 ///
return bool

InternalGet() public abstract method

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 ///
return Object

InternalGetKeys() public abstract method

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[]
return Object[]

InternalPut() public abstract method

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 ///
return Object

InternalRemove() public abstract method

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 ///
return Object

Put() public method

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. ///
return Object

Remove() public method

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. ///
return Object