public abstract class AbstractJavaBeanTransformer extends ObjectModelTransformerToJava
SimpleJavaBeanTransformer,
JavaBeanTransformer| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CONSTANT_PREFIX |
builderoutputModel, outputProperties, outputTemplate, previousTransformerconfiguration, excludeTemplates, generatedPackages, modelPROP_CLASS_LOADER, PROP_DEFAULT_PACKAGE, PROP_ENCODING, PROP_EXCLUDE_TEMPLATES, PROP_GENERATED_PACKAGES, PROP_LAST_MODIFIED_SOURCE, PROP_OVERWRITE, PROP_VERBOSE, PROP_WRITER_REPORT| Constructor and Description |
|---|
AbstractJavaBeanTransformer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDefaultMethodForNoneBeanSuperClass(ObjectModelClass output,
boolean usePCS,
List<ObjectModelAttribute> properties) |
protected boolean |
addInterfaces(ObjectModelClass input,
ObjectModelClassifier output,
String extraInterfaceName)
Add all interfaces defines in input class and returns if
Serializable interface was found. |
protected void |
addSerializable(ObjectModelClass input,
ObjectModelClass output,
boolean interfaceFound) |
protected boolean |
containsMutiple(List<ObjectModelAttribute> attributes) |
protected void |
createAddAllChildrenMethod(ObjectModelClass output,
String attrName,
String attrType,
String constantName,
boolean usePCS) |
protected void |
createAddChildMethod(ObjectModelClass output,
String attrName,
String attrType,
String constantName,
boolean usePCS) |
protected void |
createContainsAllChildrenMethod(ObjectModelClass output,
String attrName,
String attrType,
String constantName,
boolean usePCS) |
protected void |
createContainsChildMethod(ObjectModelClass output,
String attrName,
String attrType,
String constantName,
boolean usePCS) |
protected void |
createGetChildMethod(ObjectModelClass output) |
protected void |
createGetChildMethod(ObjectModelClass output,
String attrName,
String attrType,
String simpleType) |
protected void |
createGetMethod(ObjectModelClass output,
String attrName,
String attrType,
String methodPrefix) |
protected void |
createIsEmptyMethod(ObjectModelClass output,
String attrName) |
protected void |
createProperty(ObjectModelClass output,
ObjectModelAttribute attr,
boolean usePCS,
boolean generateBooleanGetMethods) |
protected void |
createPropertyChangeSupport(ObjectModelClass output) |
protected void |
createPropertyConstant(ObjectModelClassifier output,
ObjectModelAttribute attr,
String prefix,
Set<String> constantNames) |
protected void |
createRemoveAllChildrenMethod(ObjectModelClass output,
String attrName,
String attrType,
String constantName,
boolean usePCS) |
protected void |
createRemoveChildMethod(ObjectModelClass output,
String attrName,
String attrType,
String constantName,
boolean usePCS) |
protected void |
createSetMethod(ObjectModelClass output,
String attrName,
String attrType,
String simpleType,
String constantName,
boolean usePCS) |
protected void |
createSizeMethod(ObjectModelClass output,
String attrName) |
protected void |
generateI18nBlockAndConstants(ObjectModelClass input,
ObjectModelClassifier output) |
protected String |
getAttributeName(ObjectModelAttribute attr) |
protected String |
getAttributeType(ObjectModelAttribute attr) |
protected List<ObjectModelAttribute> |
getProperties(ObjectModelClass input) |
addAnnotation, addAnnotation, addAnnotationParameter, addAttribute, addAttribute, addAttribute, addAttribute, addBlock, addComment, addConstant, addConstant, addConstantsFromDependency, addConstructor, addConstructor, addException, addException, addGeneratedAnnotation, addI18n, addImport, addImport, addImport, addInnerClassifier, addInterface, addInterface, addLiteral, addOperation, addOperation, addOperation, addParameter, addParameter, addStereotype, addTagValue, addTagValue, cloneAttribute, cloneClass, cloneClassifier, cloneClassifier, cloneEnumeration, cloneInterface, cloneOperation, cloneOperationSignature, cloneStereotypes, cloneTagValues, copyClassifier, createAbstractClass, createClass, createEnumeration, createInterface, debugOutputModel, generateI18nBlock, getConstantName, getConstantPrefix, getConstantPrefix, getFileInClassPath, getJavaBeanMethodName, initConstantPrefixFromModel, initOutputModel, initOutputTemplate, isInClassPath, isInClassPath, isInClassPath, setConstantPrefix, setDocumentation, setMaxMultiplicity, setMinMultiplicity, setNavigable, setOperationBody, setSuperClass, setSuperClasstransform, transformFromClass, transformFromClassifier, transformFromElement, transformFromEnumeration, transformFromInterface, transformFromModelapplyTemplate, getDefaultPackageName, getOutputModel, getOutputProperties, getOutputTemplate, init, initPreviousTransformer, transformgetClassLoader, getConfiguration, getEncoding, getExcludeTemplates, getGeneratedPackages, getLastModifiedSource, getModel, getOverwrite, getProperties, getProperty, getProperty, getWriterReport, isOverwrite, isVerbose, setConfiguration, setPropertypublic static final String DEFAULT_CONSTANT_PREFIX
protected void createPropertyConstant(ObjectModelClassifier output, ObjectModelAttribute attr, String prefix, Set<String> constantNames)
protected String getAttributeName(ObjectModelAttribute attr)
protected String getAttributeType(ObjectModelAttribute attr)
protected boolean containsMutiple(List<ObjectModelAttribute> attributes)
protected void createProperty(ObjectModelClass output, ObjectModelAttribute attr, boolean usePCS, boolean generateBooleanGetMethods)
protected List<ObjectModelAttribute> getProperties(ObjectModelClass input)
protected void createGetMethod(ObjectModelClass output, String attrName, String attrType, String methodPrefix)
protected void createGetChildMethod(ObjectModelClass output, String attrName, String attrType, String simpleType)
protected void createIsEmptyMethod(ObjectModelClass output, String attrName)
protected void createSizeMethod(ObjectModelClass output, String attrName)
protected void createAddChildMethod(ObjectModelClass output, String attrName, String attrType, String constantName, boolean usePCS)
protected void createAddAllChildrenMethod(ObjectModelClass output, String attrName, String attrType, String constantName, boolean usePCS)
protected void createRemoveChildMethod(ObjectModelClass output, String attrName, String attrType, String constantName, boolean usePCS)
protected void createRemoveAllChildrenMethod(ObjectModelClass output, String attrName, String attrType, String constantName, boolean usePCS)
protected void createContainsChildMethod(ObjectModelClass output, String attrName, String attrType, String constantName, boolean usePCS)
protected void createContainsAllChildrenMethod(ObjectModelClass output, String attrName, String attrType, String constantName, boolean usePCS)
protected void createSetMethod(ObjectModelClass output, String attrName, String attrType, String simpleType, String constantName, boolean usePCS)
protected void addSerializable(ObjectModelClass input, ObjectModelClass output, boolean interfaceFound)
protected boolean addInterfaces(ObjectModelClass input, ObjectModelClassifier output, String extraInterfaceName)
Serializable interface was found.input - the input model class to processoutput - the output generated classtrue if Serializable was found from input,
false otherwiseprotected void createPropertyChangeSupport(ObjectModelClass output)
protected void createGetChildMethod(ObjectModelClass output)
protected void generateI18nBlockAndConstants(ObjectModelClass input, ObjectModelClassifier output)
protected void addDefaultMethodForNoneBeanSuperClass(ObjectModelClass output, boolean usePCS, List<ObjectModelAttribute> properties)
Copyright © 2012–2013 CodeLutin. All rights reserved.