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, org.nuiton.eugene.models.extension.tagvalue.TagValueMetadata
- Enclosing class:
BeanTransformerTagValues
public static enum BeanTransformerTagValues.Store
extends Enum<BeanTransformerTagValues.Store>
implements org.nuiton.eugene.models.extension.tagvalue.TagValueMetadata
- Since:
- 2.5.6
- Author:
- Tony Chemit - chemit@codelutin.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTo add a prefix on the name of each generated bean class.To add a prefix on the name of each generated bean class.To generate a utility class around the bean. this classe offers functions, predicates, copy methods, ...To generate or not constructors methods on Default classes.To generate or not guava functions on each property of the bean.To generate or not guava predicates on each property of the bean.Tag value to generate lazy instantiation of any collection to avoid NPEs.Tag value to generate property change support on generated beans.To add a prefix on the name of each generated bean class.To add a suffix on the name of each generated bean class.Tag value to use a super super-class for generated defaults class of a simple bean.Tag value to use a super class for generated bean. -
Method Summary
Modifier and TypeMethodDescriptionClass<org.nuiton.eugene.models.extension.tagvalue.matcher.EqualsTagValueNameMatcher> getName()Class<?> getType()booleanReturns 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.- Since:
- 3.0
- See Also:
-
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.- Since:
- 3.0
- See Also:
-
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.- Since:
- 3.0
- See Also:
-
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.- Since:
- 3.0
- See Also:
-
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.- Since:
- 3.0
- See Also:
-
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.- Since:
- 3.0
- See Also:
-
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.- Since:
- 3.0
- See Also:
-
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.- Since:
- 3.0
- See Also:
-
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.- Since:
- 3.0
- See Also:
-
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.- Since:
- 3.0
- See Also:
-
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.- Since:
- 3.0
- See Also:
-
-
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 interfaceorg.nuiton.eugene.models.extension.tagvalue.TagValueMetadata
-
getTargets
-
getType
- Specified by:
getTypein interfaceorg.nuiton.eugene.models.extension.tagvalue.TagValueMetadata
-
getMatcherClass
public Class<org.nuiton.eugene.models.extension.tagvalue.matcher.EqualsTagValueNameMatcher> getMatcherClass()- Specified by:
getMatcherClassin interfaceorg.nuiton.eugene.models.extension.tagvalue.TagValueMetadata
-
getDescription
- Specified by:
getDescriptionin interfaceorg.nuiton.eugene.models.extension.tagvalue.TagValueMetadata
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceorg.nuiton.eugene.models.extension.tagvalue.TagValueMetadata
-
isDeprecated
public boolean isDeprecated()- Specified by:
isDeprecatedin interfaceorg.nuiton.eugene.models.extension.tagvalue.TagValueMetadata
-