Package org.nuiton.eugene.java
Enum BeanTransformerTagValues.Store
java.lang.Object
java.lang.Enum<BeanTransformerTagValues.Store>
org.nuiton.eugene.java.BeanTransformerTagValues.Store
- All Implemented Interfaces:
Serializable,Comparable<BeanTransformerTagValues.Store>,java.lang.constant.Constable,TagValueMetadata
- Enclosing class:
- BeanTransformerTagValues
public static enum BeanTransformerTagValues.Store extends Enum<BeanTransformerTagValues.Store> implements TagValueMetadata
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description classNamePrefixTo add a prefix on the name of each generated bean class.classNameSuffixTo add a prefix on the name of each generated bean class.generateHelperTo generate a utility class around the bean. this classe offers functions, predicates, copy methods, ...generateHelperConstructorsTo generate or not constructors methods on Default classes.generateHelperFunctionsTo generate or not guava functions on each property of the bean.generateHelperPredicatesTo generate or not guava predicates on each property of the bean.generateNotEmptyCollectionsTag value to generate lazy instantiation of any collection to avoid NPEs.generatePropertyChangeSupportTag value to generate property change support on generated beans.helperClassNamePrefixTo add a prefix on the name of each generated bean class.helperClassNameSuffixTo add a suffix on the name of each generated bean class.helperSuperClassTag value to use a super super-class for generated defaults class of a simple bean.superClassTag value to use a super class for generated bean. -
Method Summary
Modifier and Type Method Description StringgetDefaultValue()StringgetDescription()Class<EqualsTagValueNameMatcher>getMatcherClass()StringgetName()Set<Class<?>>getTargets()Class<?>getType()booleanisDeprecated()static BeanTransformerTagValues.StorevalueOf(String name)Returns the enum constant of this type with the specified name.static BeanTransformerTagValues.Store[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
generateHelper
To generate a utility class around the bean. this classe offers functions, predicates, copy methods, ... You must use it on the complete model. -
generateHelperPredicates
To generate or not guava predicates on each property of the bean. You can globally use it on the complete model or to a specific classifier. -
generateHelperFunctions
To generate or not guava functions on each property of the bean. You can globally use it on the complete model or to a specific classifier. -
generateHelperConstructors
To generate or not constructors methods on Default classes. You can globally use it on the complete model, package or on a specific classifier.- Since:
- 3.0
- See Also:
}
-
generatePropertyChangeSupport
Tag value to generate property change support on generated beans. You can globally use it on the complete model, on packages, or to a specific classifier. -
generateNotEmptyCollections
Tag value to generate lazy instantiation of any collection to avoid NPEs. You can globally use it on the complete model or a package, or to a specific classifier. -
superClass
Tag value to use a super class for generated bean. If the bean needs Property change support (says you use the tag-valuegeneratePropertyChangeSupport, then your class must provide everything for it. More over, if you use some collections in your bean you must also define two method namedgetChild(Collection list, int index)andgetChild(List list, int index)See new code to know minimum stuff to add in your class for this purpose.public abstract class BeanSupport implements Serializable { private static final long serialVersionUID = 1L; protected final PropertyChangeSupport pcs = new PropertyChangeSupport(this); public void addPropertyChangeListener(PropertyChangeListener listener) { pcs.addPropertyChangeListener(listener); } public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener) { pcs.addPropertyChangeListener(propertyName, listener); } public void removePropertyChangeListener(PropertyChangeListener listener) { pcs.removePropertyChangeListener(listener); } public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener) { pcs.removePropertyChangeListener(propertyName, listener); } protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { pcs.firePropertyChange(propertyName, oldValue, newValue); } protected void firePropertyChange(String propertyName, Object newValue) { firePropertyChange(propertyName, null, newValue); } protected <T> T getChild(Collection<T> list, int index) { return CollectionUtil.getOrNull(list, index); } protected <T> T getChild(List<T> list, int index) { return CollectionUtil.getOrNull(list, index); } }You can globally use it on the complete model or to a specific classifier. -
helperSuperClass
Tag value to use a super super-class for generated defaults class of a simple bean. You can globally use it on the complete model or to a specific classifier. -
classNamePrefix
To add a prefix on the name of each generated bean class. You can globally use it on the complete model or to a specific classifier. -
classNameSuffix
To add a prefix on the name of each generated bean class. You can globally use it on the complete model or to a specific classifier. -
helperClassNamePrefix
To add a prefix on the name of each generated bean class. You can globally use it on the complete model or to a specific classifier. -
helperClassNameSuffix
To add a suffix on the name of each generated bean class. You can globally use it on the complete model or to a specific classifier.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
- Specified by:
getNamein interfaceTagValueMetadata
-
getTargets
- Specified by:
getTargetsin interfaceTagValueMetadata
-
getType
- Specified by:
getTypein interfaceTagValueMetadata
-
getMatcherClass
- Specified by:
getMatcherClassin interfaceTagValueMetadata
-
getDescription
- Specified by:
getDescriptionin interfaceTagValueMetadata
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceTagValueMetadata
-
isDeprecated
public boolean isDeprecated()- Specified by:
isDeprecatedin interfaceTagValueMetadata
-