kaos.kpat.applet
Class ClassBuilderUtils
java.lang.Object
kaos.kpat.applet.ClassBuilderUtils
public abstract class ClassBuilderUtils
- extends java.lang.Object
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 |
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
ClassBuilderUtils
public ClassBuilderUtils()
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)