|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.introspection.WTIntrospectorTest
WTIntrospectorTest is a test utility for the Introspection package.
WTIntrospector
,
ClassInfo
,
LinkInfo
,
AttributeDescriptor
Field Summary | |
private int |
classCounter
|
private String |
classname
|
(package private) static Class |
DATASTORE_ELEMENT
|
private String |
directory
|
(package private) static Class |
ENUMERATED_TYPE
|
private String |
instance
|
private static MappedRegistry |
modelRegistry
|
private static boolean |
MULTI_THREADED
|
private OutputFile |
out
|
(package private) static Class |
PERSISTENT_CLASS
|
private boolean |
printReport
|
(package private) static Class |
WINDCHILL_CLASS
|
Constructor Summary | |
private |
WTIntrospectorTest(String printReport,
String instance,
String directory)
|
Method Summary | |
void |
executeApp(String classNames)
|
protected void |
exerciseAttributeInfo(AttributeDescriptor[] attrs)
Exercise the methods of the AttributeDescriptors. |
protected void |
exerciseClassInfo(ClassInfo classInfo)
Exercise the methods of the ClassInfo class. |
protected void |
exerciseColumnInfo(ColumnDescriptor attr)
Exercise the methods of the ColumnDescriptor. |
protected void |
exerciseColumnInfos(ColumnDescriptor[] attrs)
Exercise the methods of the ColumnDescriptors. |
protected void |
exerciseCriteria(CriteriaDescriptor criteria)
Exercise the methods of the CriteriaDescriptor. |
protected void |
exerciseCriterion(CriteriaDescriptor[] criterion)
Exercise the methods of the CriteriaDescriptors. |
protected void |
exerciseDatabaseInfo(DatabaseInfo dbInfo)
Exercise the methods of the ClassInfo class. |
protected void |
exerciseLinkInfo(LinkInfo linkInfo)
Exercise the methods of the LinkInfo class. |
protected void |
exercisePropertyInfo(PropertyDescriptor property)
Exercise the methods of the PropertyDescriptor. |
protected void |
exercisePropertyInfos(PropertyDescriptor[] properties)
Exercise the methods of the PropertyDescriptors. |
protected void |
exerciseRoleInfo(RoleDescriptor role)
Exercise the methods of the RoleDescriptor. |
protected void |
exerciseRoleInfos(RoleDescriptor[] roles)
Exercise an array of RoleDescriptors. |
private boolean |
hasInfo(String classname)
|
static void |
main(String[] args)
|
protected void |
print(Enumeration collection)
Print the values of a Enumerations. |
protected void |
print(Object[] array)
Print the values of a Array. |
protected void |
processPackage(String pckg)
|
protected void |
processRegistry()
|
private void |
report(String line)
|
void |
report(String classNames,
boolean ignoreProblems)
Exercise the methods of the classes in the Introspector package. |
void |
run()
run method comment. |
void |
setInstance(String instance)
|
void |
setPrintReport(boolean on)
|
static String |
sqlType(int typeValue)
|
static String |
tail(String aString,
char aSeparator,
int level)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private OutputFile out
private String instance
private String classname
private String directory
private boolean printReport
private int classCounter
private static final boolean MULTI_THREADED
private static MappedRegistry modelRegistry
static final Class PERSISTENT_CLASS
static final Class WINDCHILL_CLASS
static final Class ENUMERATED_TYPE
static final Class DATASTORE_ELEMENT
Constructor Detail |
private WTIntrospectorTest(String printReport, String instance, String directory)
Method Detail |
public void executeApp(String classNames) throws Exception
Exception
protected void exerciseAttributeInfo(AttributeDescriptor[] attrs)
attrs
- is array of descriptors to exerciseprotected void exerciseClassInfo(ClassInfo classInfo)
classInfo
- is the ClassInfo instance to exerciseprotected void exerciseColumnInfo(ColumnDescriptor attr)
attr
- is a descriptor to exerciseprotected void exerciseColumnInfos(ColumnDescriptor[] attrs)
attrs
- is array of descriptors to exerciseprotected void exerciseCriteria(CriteriaDescriptor criteria)
criteria
- is the descriptor to exerciseprotected void exerciseCriterion(CriteriaDescriptor[] criterion)
criterion
- is array of descriptors to exerciseprotected void exerciseDatabaseInfo(DatabaseInfo dbInfo)
protected void exerciseLinkInfo(LinkInfo linkInfo)
linkInfo
- is the LinkInfo instance to exerciseprotected void exercisePropertyInfo(PropertyDescriptor property)
property
- is a descriptor to exerciseprotected void exercisePropertyInfos(PropertyDescriptor[] properties)
properties
- is array of descriptors to exerciseprotected void exerciseRoleInfo(RoleDescriptor role) throws WTIntrospectionException
role
- is role descriptor to exercise
WTIntrospectionException
protected void exerciseRoleInfos(RoleDescriptor[] roles) throws WTIntrospectionException
roles
- is array of descriptors to exercise
WTIntrospectionException
public static void main(String[] args)
protected void print(Object[] array)
protected void print(Enumeration collection)
collection
- is the collection to printprotected void processPackage(String pckg)
protected void processRegistry()
private void report(String line)
public void report(String classNames, boolean ignoreProblems)
classNames
- is a comma delimited list of fully qualified
classnames to report onpublic void run()
run
in interface Runnable
public void setInstance(String instance)
public void setPrintReport(boolean on)
public static String sqlType(int typeValue)
public static String tail(String aString, char aSeparator, int level)
private boolean hasInfo(String classname)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |