public class JavaBeanTransformer extends ObjectModelTransformerToJava
JavaTemplatesTagValues.TAG_NO_PCS.EugeneTagValues.TAG_I18N_PREFIX.
|
| 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 |
|---|
JavaBeanTransformer() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addInterfaces(ObjectModelClass input,
ObjectModelClass output)
Add all interfaces defines in input class and returns if
Serializable interface was found. |
protected void |
addSerializable(ObjectModelClass input,
ObjectModelClass output,
boolean interfaceFound) |
protected void |
addSuperClass(ObjectModelClass input,
ObjectModelClass output) |
protected boolean |
canGenerateAbstract(ObjectModelClass input) |
protected boolean |
canGenerateImpl(ObjectModelClass input) |
protected boolean |
containsMutiple(List<ObjectModelAttribute> attributes) |
protected void |
createAbstractOperations(ObjectModelClass ouput,
Iterable<ObjectModelOperation> operations) |
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(ObjectModelClass 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 ObjectModelClass |
generateImpl(ObjectModelClass input) |
protected String |
getAttributeName(ObjectModelAttribute attr) |
protected String |
getAttributeType(ObjectModelAttribute attr) |
protected List<ObjectModelAttribute> |
getProperties(ObjectModelClass input) |
void |
transformFromClass(ObjectModelClass input) |
addAnnotation, addAttribute, addAttribute, addAttribute, addAttribute, addBlock, addComment, addConstant, addConstant, addConstantsFromDependency, addConstructor, addConstructor, addException, addException, 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, setConstantPrefix, setDocumentation, setMaxMultiplicity, setMinMultiplicity, setNavigable, setOperationBody, setSuperClass, setSuperClasstransform, transformFromClassifier, transformFromElement, transformFromEnumeration, transformFromInterface, transformFromModelapplyTemplate, 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
public void transformFromClass(ObjectModelClass input)
transformFromClass in class ObjectModelTransformer<ObjectModel>protected boolean canGenerateAbstract(ObjectModelClass input)
protected boolean canGenerateImpl(ObjectModelClass input)
protected void createPropertyConstant(ObjectModelClass 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 void createAbstractOperations(ObjectModelClass ouput, Iterable<ObjectModelOperation> operations)
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, ObjectModelClass output)
Serializable interface was found.input - the input model class to processoutput - the output generated classtrue if Serializable was found from input,
false otherwiseprotected void addSuperClass(ObjectModelClass input, ObjectModelClass output)
protected ObjectModelClass generateImpl(ObjectModelClass input)
protected void createPropertyChangeSupport(ObjectModelClass output)
protected void createGetChildMethod(ObjectModelClass output)
Copyright © 2012 CodeLutin. All Rights Reserved.