TestBox 2.4.0

testbox.system.compat.framework
Class ComponentUtils

railo-context.Component
        extended by testbox.system.compat.framework.ComponentUtils

public class ComponentUtils
extends railo-context.Component

Internal component not generally used outside the framework


Method Summary
 string buildInheritanceTree([struct metaData], [string accumulator=''])
 ComponentUtils ComponentUtils()
          Constructor
 any dump([any o])
 string getComponentRoot([string fullPath=''])
 any getContextRootComponent()
 any getContextRootPath()
 string getInstallRoot()
 string getLineSeparator()
          Returns file
 any getMockFactoryInfo([any factoryName=''])
 string getSeparator()
          Returns file
 any hasJ2EEContext()
 any isCfc([any objectToCheck])
          Determines whether or not the given object is a ColdFusion component; Author: Nathan Dintenfass
 boolean isFrameworkTemplate(string template)
          whether the passed in template is part of the mxunit framework
 boolean objectIsTypeOf(any object, string type)
          returns true if the object 'type' as reported by getMetadata() matches the object's type or if the object is in the inheritance tree of the type
 
Methods inherited from class railo-context.Component
 

Method Detail

buildInheritanceTree

public string buildInheritanceTree([struct metaData], [string accumulator=''])

Parameters:
metaData
accumulator

ComponentUtils

public ComponentUtils ComponentUtils()
Constructor


dump

public any dump([any o])

Parameters:
o

getComponentRoot

public string getComponentRoot([string fullPath=''])

Parameters:
fullPath - Test Hook.

getContextRootComponent

public any getContextRootComponent()


getContextRootPath

public any getContextRootPath()


getInstallRoot

public string getInstallRoot()


getLineSeparator

public string getLineSeparator()
Returns file.separator as seen by OS.


getMockFactoryInfo

public any getMockFactoryInfo([any factoryName=''])

Parameters:
factoryName

getSeparator

public string getSeparator()
Returns file.separator as seen by OS.


hasJ2EEContext

public any hasJ2EEContext()


isCfc

public any isCfc([any objectToCheck])
Determines whether or not the given object is a ColdFusion component; Author: Nathan Dintenfass

Parameters:
objectToCheck

isFrameworkTemplate

public boolean isFrameworkTemplate(string template)
whether the passed in template is part of the mxunit framework

Parameters:
template

objectIsTypeOf

public boolean objectIsTypeOf(any object, string type)
returns true if the object 'type' as reported by getMetadata() matches the object's type or if the object is in the inheritance tree of the type

Parameters:
object
type

TestBox 2.4.0