public class JavaTemplatesStereoTypes extends StereotypeDefinitionProvider
|
| Modifier and Type | Field and Description |
|---|---|
static String |
STEREOTYPE_ACCEPT_BEAN_WITH_METHODS
Tag value to authorize user to generate some bean with methods, some generators won't generate them : Lots code).
|
static String |
STEREOTYPE_BEAN
Stereotype for JavaBean objects to place on a classifier.
|
static String |
STEREOTYPE_OVERRIDE_ABSTRACT_CLASSES
Tag value to authorize user to override abstract classes.
|
static String |
STEREOTYPE_SIMPLE_BEAN_SKIP_GENERATE_DEFAULTS
To generate a factory of generated simple beans.
|
static String |
STEREOTYPE_SIMPLE_BEAN_SKIP_GENERATE_FACTORY
To generate a factory of generated simple beans.
|
static String |
STEREOTYPE_SIMPLE_BEAN_SKIP_GENERATE_INTERFACE
To generate an interface of each simple bean.
|
static String |
STEREOTYPE_SIMPLE_BEAN_WITH_NO_INTERFACE_SKIP_GENERATE_DEFAULT_CONSTRUCTORS
To generate or not constructors methods on Default classes.
|
static String |
STEREOTYPE_SIMPLE_BEAN_WITH_NO_INTERFACE_SKIP_GENERATE_DEFAULTS
To generate a factory of generated simple beans.
|
static String |
STEREOTYPE_SIMPLE_BEAN_WITH_NO_INTERFACE_SKIP_GENERATE_FUNCTIONS
To generate or not guava functions on each property of the bean.
|
static String |
STEREOTYPE_SIMPLE_BEAN_WITH_NO_INTERFACE_SKIP_GENERATE_PREDICATES
To generate or not guava predicates on each property of the bean.
|
static String |
STEREOTYPE_SKIP_GENERATE_NOT_EMPTY_COLLECTIONS
Tag value to generate lazy instanciation of any collection to avoid NPEs.
|
static String |
STEREOTYPE_SKIP_GENERATE_PROPERTY_CHANGE_SUPPORT
Tag value to generate property change support on generated beans.
|
definition, deprecated, verbose| Constructor and Description |
|---|
JavaTemplatesStereoTypes() |
addAllDefinition, addAllDeprecated, addDefinition, addDeprecated, getDefinition, getDefinition, init, initDefinition, isDeprecated, isVerbose, scanClass, setVerbose, validatepublic static final String STEREOTYPE_BEAN
public static final String STEREOTYPE_ACCEPT_BEAN_WITH_METHODS
public static final String STEREOTYPE_OVERRIDE_ABSTRACT_CLASSES
public static final String STEREOTYPE_SKIP_GENERATE_PROPERTY_CHANGE_SUPPORT
public static final String STEREOTYPE_SKIP_GENERATE_NOT_EMPTY_COLLECTIONS
public static final String STEREOTYPE_SIMPLE_BEAN_SKIP_GENERATE_INTERFACE
public static final String STEREOTYPE_SIMPLE_BEAN_SKIP_GENERATE_FACTORY
isSimpleBeanSkipGenerateFactory(ObjectModel),
Constant Field Valuespublic static final String STEREOTYPE_SIMPLE_BEAN_SKIP_GENERATE_DEFAULTS
public static final String STEREOTYPE_SIMPLE_BEAN_WITH_NO_INTERFACE_SKIP_GENERATE_DEFAULTS
public static final String STEREOTYPE_SIMPLE_BEAN_WITH_NO_INTERFACE_SKIP_GENERATE_PREDICATES
public static final String STEREOTYPE_SIMPLE_BEAN_WITH_NO_INTERFACE_SKIP_GENERATE_FUNCTIONS
public static final String STEREOTYPE_SIMPLE_BEAN_WITH_NO_INTERFACE_SKIP_GENERATE_DEFAULT_CONSTRUCTORS
public static boolean hasBeanStereotype(ObjectModelClassifier classifier, ObjectModelPackage aPackage)
STEREOTYPE_BEAN stereotype.classifier - classifier to testtrue if stereotype was found, false otherwiseSTEREOTYPE_BEANpublic static boolean hasBeanStereotype(ObjectModelPackage aPackage)
STEREOTYPE_BEAN stereotype.aPackage - classifier to testtrue if stereotype was found, false otherwiseSTEREOTYPE_BEANpublic boolean isAcceptBeanWithMethods(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
STEREOTYPE_ACCEPT_BEAN_WITH_METHODS tag value on the given model, package or classifier.
It will first look on the model, then and package and then in the given classifier.
If no value found, then will use the default value of the tag value.classifier - classifier to seekaPackage - package to seekmodel - model to seeknull if not found nor empty.STEREOTYPE_ACCEPT_BEAN_WITH_METHODSpublic boolean isOverrideAbstractClasses(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
STEREOTYPE_OVERRIDE_ABSTRACT_CLASSES tag value on the given model, package or classifier.
It will first look on the model, then and package and then in the given classifier.
If no value found, then will use the default value of the tag value.classifier - classifier to seekaPackage - package to seekmodel - model to seeknull if not found nor empty.STEREOTYPE_OVERRIDE_ABSTRACT_CLASSESpublic boolean isSkipGeneratePropertyChangeSupport(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
STEREOTYPE_SKIP_GENERATE_PROPERTY_CHANGE_SUPPORT tag value on the given model, package or classifier.
It will first look on the model, then and package and then in the given classifier.
If no value found, then will use the default value of the tag value.classifier - classifier to seekaPackage - package to seekmodel - model to seeknull if not found nor empty.STEREOTYPE_SKIP_GENERATE_PROPERTY_CHANGE_SUPPORTpublic boolean isSkipGenerateNotEmptyCollections(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
STEREOTYPE_SKIP_GENERATE_NOT_EMPTY_COLLECTIONS tag value on the given model, package or classifier.
It will first look on the model, then and package and then in the given classifier.
If no value found, then will use the default value of the tag value.classifier - classifier to seekaPackage - package to seekmodel - model to seeknull if not found nor empty.STEREOTYPE_SKIP_GENERATE_NOT_EMPTY_COLLECTIONSpublic boolean isSimpleBeanSkipGenerateInterface(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
STEREOTYPE_SIMPLE_BEAN_SKIP_GENERATE_INTERFACE tag value on the given model or classifier.
It will first look on the model, and then in the given classifier.classifier - classifier to seekmodel - model to seeknull if not found nor empty.STEREOTYPE_SIMPLE_BEAN_SKIP_GENERATE_INTERFACEpublic boolean isSimpleBeanSkipGenerateFactory(ObjectModel model)
STEREOTYPE_SIMPLE_BEAN_SKIP_GENERATE_FACTORY tag value on the given model or classifier.model - model to seeknull if not found nor empty.STEREOTYPE_SIMPLE_BEAN_SKIP_GENERATE_FACTORYpublic boolean isSimpleBeanSkipGenerateDefaults(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
STEREOTYPE_SIMPLE_BEAN_SKIP_GENERATE_DEFAULTS tag value on the given model or classifier.
It will first look on the model, and then in the given classifier.classifier - classifier to seekmodel - model to seeknull if not found nor empty.STEREOTYPE_SIMPLE_BEAN_SKIP_GENERATE_DEFAULTSpublic boolean isSimpleBeanWithNoInterfaceSkipGenerateDefaults(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
STEREOTYPE_SIMPLE_BEAN_WITH_NO_INTERFACE_SKIP_GENERATE_DEFAULTS tag value on the given model or classifier.
It will first look on the model, and then in the given classifier.classifier - classifier to seekmodel - model to seeknull if not found nor empty.STEREOTYPE_SIMPLE_BEAN_WITH_NO_INTERFACE_SKIP_GENERATE_DEFAULTSpublic boolean isSimpleBeanWithNoInterfaceSkipGeneratePredicates(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
STEREOTYPE_SIMPLE_BEAN_WITH_NO_INTERFACE_SKIP_GENERATE_PREDICATES tag value on the given model or classifier.
It will first look on the model, and then in the given classifier.
If not filled, then use default s value.classifier - classifier to seekmodel - model to seeknull if not found nor empty.STEREOTYPE_SIMPLE_BEAN_WITH_NO_INTERFACE_SKIP_GENERATE_PREDICATESpublic boolean isSimpleBeanWithNoInterfaceSkipGenerateFunctions(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
STEREOTYPE_SIMPLE_BEAN_WITH_NO_INTERFACE_SKIP_GENERATE_FUNCTIONS tag value on the given model or classifier.
It will first look on the model, and then in the given classifier.
If not filled, then use default s value.classifier - classifier to seekmodel - model to seeknull if not found nor empty.STEREOTYPE_SIMPLE_BEAN_WITH_NO_INTERFACE_SKIP_GENERATE_FUNCTIONSpublic boolean isSimpleBeanWithNoInterfaceSkipGenerateDefaultConstructors(ObjectModelClassifier classifier, ObjectModelPackage aPackage, ObjectModel model)
STEREOTYPE_SIMPLE_BEAN_WITH_NO_INTERFACE_SKIP_GENERATE_DEFAULT_CONSTRUCTORS tag value on the given model or classifier.
It will first look on the model, and then in the given classifier.
If not filled, then use default s value.classifier - classifier to seekmodel - model to seeknull if not found nor empty.STEREOTYPE_SIMPLE_BEAN_WITH_NO_INTERFACE_SKIP_GENERATE_DEFAULT_CONSTRUCTORSCopyright © 2012–2016 CodeLutin. All rights reserved.