Access keys

TypeUtil

Kind of class: class
Inherits from: none
Version: 02/10/07
Author: Aaron Clinger, David Nelson
Classpath: org.casaframework.util.TypeUtil
File last modified: Monday, 12 February 2007, 09:13:59

Summary

Class methods

Class methods

getTypeOf

static function getTypeOf (
obj:Object) : String
Evaluates an object and returns a string describing its type. This method is more versed than the typeof equivalent.
Parameters:
obj:
Object to evaluate.
Returns:
Returns a string describing the objects type.

isTypeOf

static function isTypeOf (
obj:Object, type:String) : Boolean
Evaluates if an object is of a certain type. Can detect any types that getTypeOf can describe.
Parameters:
obj :
Object to evaluate.
type:
String describe the objects type.
Returns:
Returns true if object matches type; otherwise false.