|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
General purpose implemention of the application Context interface for general application use. This class should be used in place of the original Context class.
Constructor Summary | |
---|---|
VelocityContext() Creates a new instance (with no inner context). |
|
VelocityContext(System.Collections.Hashtable context) Creates a new instance with the provided storage (and no inner context). |
|
VelocityContext(NVelocity.Context.IContext innerContext) 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 |
|
VelocityContext(System.Collections.Hashtable context, NVelocity.Context.IContext innerContext) Initializes internal storage (never to null), and inner context. |
Properties inherited from class NVelocity.Context.AbstractContext |
---|
ChainedContext, Keys |
Properties inherited from class NVelocity.Context.InternalContextBase |
---|
CurrentResource, CurrentTemplateName, EventCartridge, TemplateNameStack |
Method Summary | |
---|---|
object |
Clone() Clones this context object. |
bool |
InternalContainsKey(object key) determines if there is a value for the given key |
object |
InternalGet(string key) retrieves value for key from internal storage |
object[] |
InternalGetKeys() returns array of keys |
object |
InternalPut(string key, object value_Renamed) stores the value for key to internal storage |
object |
InternalRemove(object key) remove a key/value pair from the internal storage |
Methods inherited from class NVelocity.Context.AbstractContext |
---|
ContainsKey, Get, Put, Remove |
Methods inherited from class NVelocity.Context.InternalContextBase |
---|
AttachEventCartridge, ICacheGet, ICachePut, PopCurrentTemplateName, PushCurrentTemplateName |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Constructor Detail |
---|
public VelocityContext()
Creates a new instance (with no inner context).
public VelocityContext(System.Collections.Hashtable context)
Creates a new instance with the provided storage (and no inner context).
public VelocityContext(NVelocity.Context.IContext innerContext)
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
Parameters:
innerContext
- The Contextimplementation to wrap.
public VelocityContext(System.Collections.Hashtable context, NVelocity.Context.IContext innerContext)
Initializes internal storage (never to
null), and inner context.
Parameters:
context
- Internal storage, or nullto create default storage.
innerContext
- Inner context.
Method Detail |
---|
public object Clone()
Clones this context object.
Returns:
Context.
public bool InternalContainsKey(object key)
determines if there is a value for the given key
Parameters:
key
- name of value to checkpublic object InternalGet(string key)
retrieves value for key from internal storage
Parameters:
key
- name of value to getpublic object[] InternalGetKeys()
returns array of keys
Returns:
public object InternalPut(string key, object value_Renamed)
stores the value for key to internal storage
Parameters:
key
- name of value to storevalue
- value to storepublic object InternalRemove(object key)
remove a key/value pair from the internal storage
Parameters:
key
- name of value to remove
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |