    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class xm.xm_Factory

    java.lang.Object
       |
       +----xm.xm_Factory

public class xm_Factory
extends Object

Base factory, to provide a convenience method for checking that an actual class is derived from an class we expect it to.

##

xm_Factory()

##

checkClassType(Class, String, String)
  Check that the InputClass is derived from InputUsualClassName.

##

xm_Factory

     public xm_Factory()

##

checkClassType

     public static void checkClassType(Class InputClass,
                                       String InputDescription,
                                       String InputUsualClassName) throws xm_ParseException

  Check that the InputClass is derived from InputUsualClassName.

  Parameters:
    InputClass - The class
    InputDescription - Description of the thing InputClass relates to (for error reporting purposes only)
    InputUsualClassName - The name of the class which is usually used to represent entities of this type. The class actually used must be this or a derived from it
  Throws: xm_ParseException
    The InputEntityClass is not an instance of the class whose name is InputUsualClassName

    All Packages  Class Hierarchy  This Package  Previous  Next  Index