public void displayModel(IlpClassManager classManager) {
for (Iterator i = classManager.getClasses().iterator();
i.hasNext();) {
IlpClass ilpClass = (IlpClass)i.next();
System.out.println(ilpClass.getName());
if (ilpClass.getSuperClass() != null) {
System.out.println("\t"+ilpClass.getSuperClass().getName());
}
for (Iterator j = ilpClass.getAttributes().iterator();
j.hasNext();) {
IlpAttribute attr = (IlpAttribute)j.next();
System.out.println("\t" +attr.getName() +": "
+attr.getValueClass().toString());
if (attr.getDefaultValue() !=
IlpAttributeValueHolder.VALUE_NOT_SET) {
System.out.print("\t\tdefault: " +attr.getDefaultValue());
if (attr.getDefaultValue() != null) {
System.out.print(" " +attr.getDefaultValue().getClass());
}
System.out.println();
}
}
}
}
JViews TGO provides a
default implementation of the class manager, which is defined by
the class
IlpDefaultClassManager. This implementation
has the following additional functionality:
JViews TGO also
provides a class manager implementation to automatically handle
the predefined business classes. This implementation is defined
by class
IltDefaultClassManager.
For easier access to the business classes information in your
application, the class manager has been defined as one of the
application context services. For information on how to customize
the class manager information through the application context and
the deployment descriptor, refer to
Class manager.