public class SimpleJavaBeanTransformer extends AbstractJavaBeanTransformer
JavaBeanTransformer instead.
|
DEFAULT_CONSTANT_PREFIXbuilderoutputModel, 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 |
|---|
SimpleJavaBeanTransformer() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canGenerateBean(ObjectModelClass input,
String className) |
protected boolean |
canGenerateFactory(ObjectModel model,
String className) |
protected boolean |
canGenerateInterface(ObjectModelClass input,
String className) |
protected ObjectModelClass |
generateBeanClass(ObjectModelClass input,
String className,
String interfaceName) |
protected void |
generateBeanFactory(ObjectModel model,
String className) |
protected ObjectModelInterface |
generateBeanInterface(ObjectModelClass input,
String className,
ObjectModelClass outputClass) |
protected String |
generateName(String prefix,
String name,
String suffix) |
protected String |
getBeanClassName(ObjectModelClass input) |
protected String |
getBeanInterfaceName(ObjectModelClass input) |
protected Collection<ObjectModelOperation> |
getPublicOperations(ObjectModelClass clazz) |
void |
transformFromClass(ObjectModelClass input) |
void |
transformFromModel(ObjectModel model) |
addDefaultMethodForNoneBeanSuperClass, addInterfaces, addSerializable, containsMutiple, createAddAllChildrenMethod, createAddChildMethod, createContainsAllChildrenMethod, createContainsChildMethod, createGetChildMethod, createGetChildMethod, createGetMethod, createIsEmptyMethod, createProperty, createPropertyChangeSupport, createPropertyConstant, createRemoveAllChildrenMethod, createRemoveChildMethod, createSetMethod, createSizeMethod, generateI18nBlockAndConstants, getAttributeName, getAttributeType, getPropertiesaddAnnotation, 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, transformFromInterfaceapplyTemplate, getOutputModel, getOutputProperties, getOutputTemplate, init, initPreviousTransformer, transformgetClassLoader, getConfiguration, getEncoding, getExcludeTemplates, getGeneratedPackages, getLastModifiedSource, getModel, getOverwrite, getProperties, getProperty, getProperty, getWriterReport, isOverwrite, isVerbose, setConfiguration, setPropertypublic void transformFromModel(ObjectModel model)
transformFromModel in class ObjectModelTransformer<ObjectModel>public void transformFromClass(ObjectModelClass input)
transformFromClass in class ObjectModelTransformer<ObjectModel>protected boolean canGenerateFactory(ObjectModel model, String className)
protected boolean canGenerateInterface(ObjectModelClass input, String className)
protected boolean canGenerateBean(ObjectModelClass input, String className)
protected void generateBeanFactory(ObjectModel model, String className)
protected ObjectModelInterface generateBeanInterface(ObjectModelClass input, String className, ObjectModelClass outputClass)
protected ObjectModelClass generateBeanClass(ObjectModelClass input, String className, String interfaceName)
protected Collection<ObjectModelOperation> getPublicOperations(ObjectModelClass clazz)
protected String getBeanInterfaceName(ObjectModelClass input)
protected String getBeanClassName(ObjectModelClass input)
Copyright © 2012-2013 CodeLutin. All Rights Reserved.