C# Class NVelocity.Tool.DataInfo

ToolInfo implementation to handle "primitive" data types. It currently supports String, Number, and Boolean data. *
Inheritance: IToolInfo
显示文件 Open project: rasmus-toftdahl-olesen/NVelocity

Public Properties

Property Type Description
TYPE_BOOLEAN String
TYPE_NUMBER String
TYPE_STRING String

Public Methods

Method Description
DataInfo ( String key, String type, String value ) : System

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

getInstance ( Object initData ) : Object

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

Method Details

DataInfo() public method

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. *
public DataInfo ( String key, String type, String value ) : System
key String the context key for the data ///
type String the data type ///
value String the data /// ///
return System

getInstance() public method

Returns the data. Always returns the same object since the data is a constant. Initialization data is ignored.
public getInstance ( Object initData ) : Object
initData Object
return Object

Property Details

TYPE_BOOLEAN public_oe static_oe property

public static String TYPE_BOOLEAN
return String

TYPE_NUMBER public_oe static_oe property

public static String TYPE_NUMBER
return String

TYPE_STRING public_oe static_oe property

public static String TYPE_STRING
return String