public class GeneratorUtils extends Object
| Constructor and Description |
|---|
GeneratorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
dotNameToCamelCase(String in)
This method takes a dot name, for example app.event.explosion and turns it into a camel
case string like: AppEventExplosion
|
static String |
dotNameToUpperCaseConstant(String in)
This method takes a dot name, for example app.event.explosion and turns it into capitalized
name string like: APP_EVENT_EXPLOSION
|
static void |
getAttributesAndImports(ClassDefinition cd,
String baseClass,
TreeMap<DefinitionName,AttributeDefinition> allAttr,
StringBuffer sb)
This method cycles through the class derivation hierarchy and the types required by all
attributes associated with this class to determine the appropriate set of import statements
required for the DMO.
|
static String |
getClassNameFromImport(String i) |
public static void getAttributesAndImports(ClassDefinition cd, String baseClass, TreeMap<DefinitionName,AttributeDefinition> allAttr, StringBuffer sb)
cd - The class definition of the object.baseClass - The base class of the object you're generating or null if there's no base class.allAttr - An array that will be populated with all attribute definitions of the class.sb - The buffer where the import statements are accumulated.public static String dotNameToCamelCase(String in)
public static String dotNameToUpperCaseConstant(String in)
Copyright © 2023. All rights reserved.