NVelocity.App
Class FieldMethodizer

Constructor Summary
FieldMethodizer()
         Allow object to be initialized without any data. You would use addObject() to add data later.
FieldMethodizer(string s)
         Constructor that takes as it's arg the name of the class to methodize.
FieldMethodizer(object o)
         Constructor that takes as it's arg a living object to methodize. Note that it will still only methodized the public static fields of the class.

Method Summary
void addObject(object o)
         Add an Object to methodize
void addObject(string s)
         Add the Name of the class to methodize
object Get(string fieldName)
         Accessor method to get the fields by name.

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


Constructor Detail

FieldMethodizer

public FieldMethodizer()

Allow object to be initialized without any data. You would use addObject() to add data later.


FieldMethodizer

public FieldMethodizer(string s)

Constructor that takes as it's arg the name of the class to methodize.

Parameters:
s - Name of class to methodize.

FieldMethodizer

public FieldMethodizer(object o)

Constructor that takes as it's arg a living object to methodize. Note that it will still only methodized the public static fields of the class.

Parameters:
o - object to methodize.
Method Detail

addObject

public void addObject(object o)

Add an Object to methodize


addObject

public void addObject(string s)

Add the Name of the class to methodize


Get

public object Get(string fieldName)

Accessor method to get the fields by name.

Parameters:
fieldName - Name of static field to retrieve
Returns:
The value of the given field.