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>,TagValueMetadata
- Enclosing class:
- BeanTransformerTagValues
public static enum BeanTransformerTagValues.Store extends Enum<BeanTransformerTagValues.Store> implements TagValueMetadata
-
-
Enum Constant Summary
Enum Constants Enum Constant Description addJavaBeanAnnotationTo add GenerateJavaBean annotation on generated bean.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 selectedClasses.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
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
generateHelper
public static final BeanTransformerTagValues.Store 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
public static final BeanTransformerTagValues.Store 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
public static final BeanTransformerTagValues.Store 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
public static final BeanTransformerTagValues.Store generateHelperConstructors
To generate or not constructors methods on Default selectedClasses. You can globally use it on the complete model, package or on a specific classifier.- Since:
- 3.0
- See Also:
}
-
generatePropertyChangeSupport
public static final BeanTransformerTagValues.Store 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
public static final BeanTransformerTagValues.Store 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
public static final BeanTransformerTagValues.Store 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
public static final BeanTransformerTagValues.Store 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
public static final BeanTransformerTagValues.Store 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
public static final BeanTransformerTagValues.Store 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
public static final BeanTransformerTagValues.Store 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
public static final BeanTransformerTagValues.Store 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.
-
addJavaBeanAnnotation
public static final BeanTransformerTagValues.Store addJavaBeanAnnotation
To add GenerateJavaBean annotation on generated bean. You can globally use it on the complete model.
-
-
Method Detail
-
values
public static BeanTransformerTagValues.Store[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BeanTransformerTagValues.Store c : BeanTransformerTagValues.Store.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BeanTransformerTagValues.Store valueOf(String name)
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
public String getName()
- Specified by:
getNamein interfaceTagValueMetadata
-
getTargets
public Set<Class<?>> getTargets()
- Specified by:
getTargetsin interfaceTagValueMetadata
-
getType
public Class<?> getType()
- Specified by:
getTypein interfaceTagValueMetadata
-
getMatcherClass
public Class<EqualsTagValueNameMatcher> getMatcherClass()
- Specified by:
getMatcherClassin interfaceTagValueMetadata
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceTagValueMetadata
-
getDefaultValue
public String getDefaultValue()
- Specified by:
getDefaultValuein interfaceTagValueMetadata
-
isDeprecated
public boolean isDeprecated()
- Specified by:
isDeprecatedin interfaceTagValueMetadata
-
-