NVelocity.Tool
Class DataInfo

ToolInfo implementation to handle "primitive" data types. It currently supports String, Number, and Boolean data. *

Field Summary
string TYPE_BOOLEAN
string TYPE_NUMBER
string TYPE_STRING

Constructor Summary
DataInfo(string key, string type, string value_Renamed)
         Parses the value string into a recognized type. If the type specified is not supported, the data will be held and returned as a string. *

Property Summary
string Classname
string Key

Method Summary
object getInstance(object initData)
         Returns the data. Always returns the same object since the data is a constant. Initialization data is ignored.

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Field Detail

TYPE_BOOLEAN

public string TYPE_BOOLEAN


TYPE_NUMBER

public string TYPE_NUMBER


TYPE_STRING

public string TYPE_STRING

Constructor Detail

DataInfo

public DataInfo(string key,
                string type,
                string value_Renamed)

Parses the value string into a recognized type. If the type specified is not supported, the data will be held and returned as a string. *

Parameters:
key - the context key for the data
type - the data type
value - the data
Property Detail

Classname

public string Classname


Key

public string Key

Method Detail

getInstance

public object getInstance(object initData)

Returns the data. Always returns the same object since the data is a constant. Initialization data is ignored.