C# Class NVelocity.Tool.DataInfo

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

Méthodes publiques

Свойство Type Description
TYPE_BOOLEAN String
TYPE_NUMBER String
TYPE_STRING String

Méthodes publiques

Méthode 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 méthode

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 /// ///
Résultat System

getInstance() public méthode

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
Résultat Object

Property Details

TYPE_BOOLEAN public_oe static_oe property

public static String TYPE_BOOLEAN
Résultat String

TYPE_NUMBER public_oe static_oe property

public static String TYPE_NUMBER
Résultat String

TYPE_STRING public_oe static_oe property

public static String TYPE_STRING
Résultat String