kaos.kpat.applet
Class ClassBuilderUtils

java.lang.Object
  extended by kaos.kpat.applet.ClassBuilderUtils

public abstract class ClassBuilderUtils
extends java.lang.Object


Nested Class Summary
static class ClassBuilderUtils.ACDCollator
           
static class ClassBuilderUtils.ActionCellRenderer
           
static class ClassBuilderUtils.ActionClassPropertiesPanel
           
static class ClassBuilderUtils.ActionInstancePropertiesPanel
           
static class ClassBuilderUtils.BooleanRenderer
           
static class ClassBuilderUtils.CheckboxCellRenderer
           
static class ClassBuilderUtils.ClassPropertiesPanel
           
static class ClassBuilderUtils.ComplementEditor
           
static class ClassBuilderUtils.InstancePropertiesPanel
           
static class ClassBuilderUtils.JTPStringCollator
           
static class ClassBuilderUtils.ListPanel
          ListPanel allows the user to select one or more items from a list The top of the panel shows the list of selected items, and the bottom shows buttons to add and remove items from the list
static class ClassBuilderUtils.MenuItemCellRenderer
           
static class ClassBuilderUtils.MenuItemScrollPane
           
static class ClassBuilderUtils.NewClassDialog
           
static class ClassBuilderUtils.NewInstanceDialog
           
static class ClassBuilderUtils.PeerRVMCoordinator
           
static class ClassBuilderUtils.PropertiesPanel
           
static class ClassBuilderUtils.RestrictionCellEditorListener
           
static class ClassBuilderUtils.RestrictionTypeEditor
           
static class ClassBuilderUtils.RestrictionTypeRenderer
           
static class ClassBuilderUtils.ScrollableMenu
           
static class ClassBuilderUtils.StringRenderer
           
static class ClassBuilderUtils.SubjectButton
           
static class ClassBuilderUtils.TargetClassValue
           
static class ClassBuilderUtils.TargetInstanceValue
           
static class ClassBuilderUtils.TargetTableModel
           
static class ClassBuilderUtils.TCDCollator
           
static class ClassBuilderUtils.VectorRenderer
           
 
Field Summary
static java.lang.String CLASS_NAME_POLICY_ID_PREFIX
           
static java.lang.String CLASS_NAME_TYPE_PREFIX
           
static java.lang.String POLICY_ID_PREFIX
           
 
Constructor Summary
ClassBuilderUtils()
           
 
Method Summary
static java.lang.String checkXMLName(java.lang.String name)
          checks to see if a string is a valid XML name returns an error message, or null if there was no error
static java.lang.String generateClassNameForPolicy(java.lang.String baseClass, java.lang.String type, java.lang.String policyId)
          generates the class name for a class in a policy
static java.lang.String getStringForSchema(XMLSchemaBuilderImpl schema)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POLICY_ID_PREFIX

public static final java.lang.String POLICY_ID_PREFIX
See Also:
Constant Field Values

CLASS_NAME_POLICY_ID_PREFIX

public static final java.lang.String CLASS_NAME_POLICY_ID_PREFIX
See Also:
Constant Field Values

CLASS_NAME_TYPE_PREFIX

public static final java.lang.String CLASS_NAME_TYPE_PREFIX
See Also:
Constant Field Values
Constructor Detail

ClassBuilderUtils

public ClassBuilderUtils()
Method Detail

getStringForSchema

public static java.lang.String getStringForSchema(XMLSchemaBuilderImpl schema)

checkXMLName

public static java.lang.String checkXMLName(java.lang.String name)
checks to see if a string is a valid XML name returns an error message, or null if there was no error


generateClassNameForPolicy

public static java.lang.String generateClassNameForPolicy(java.lang.String baseClass,
                                                          java.lang.String type,
                                                          java.lang.String policyId)
generates the class name for a class in a policy

Parameters:
type - the type of class (controls, trigger, condition, or obligation)
policyId - the id of the policy (should begin with POLICY_ID_PREFIX)