public static enum BeanTransformerTagValues.Store extends Enum<BeanTransformerTagValues.Store> implements TagValueMetadata
| Enum Constant and Description |
|---|
addJavaBeanAnnotation
To add GenerateJavaBean annotation on generated bean.
|
classNamePrefix
To add a prefix on the name of each generated bean class.
|
classNameSuffix
To add a prefix on the name of each generated bean class.
|
generateHelper
To generate a utility class around the bean. this classe offers functions, predicates, copy methods, ...
|
generateHelperConstructors
To generate or not constructors methods on Default selectedClasses.
|
generateHelperFunctions
To generate or not guava functions on each property of the bean.
|
generateHelperPredicates
To generate or not guava predicates on each property of the bean.
|
generateNotEmptyCollections
Tag value to generate lazy instantiation of any collection to avoid NPEs.
|
generatePropertyChangeSupport
Tag value to generate property change support on generated beans.
|
helperClassNamePrefix
To add a prefix on the name of each generated bean class.
|
helperClassNameSuffix
To add a suffix on the name of each generated bean class.
|
helperSuperClass
Tag value to use a super super-class for generated defaults class of a simple bean.
|
superClass
Tag value to use a super class for generated bean.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultValue() |
String |
getDescription() |
Class<EqualsTagValueNameMatcher> |
getMatcherClass() |
String |
getName() |
Set<Class<?>> |
getTargets() |
Class<?> |
getType() |
boolean |
isDeprecated() |
static BeanTransformerTagValues.Store |
valueOf(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.
|
public static final BeanTransformerTagValues.Store generateHelper
public static final BeanTransformerTagValues.Store generateHelperPredicates
public static final BeanTransformerTagValues.Store generateHelperFunctions
public static final BeanTransformerTagValues.Store generateHelperConstructors
public static final BeanTransformerTagValues.Store generatePropertyChangeSupport
public static final BeanTransformerTagValues.Store generateNotEmptyCollections
public static final BeanTransformerTagValues.Store superClass
generatePropertyChangeSupport,
then your class must provide everything for it.
More over, if you use some collections in your bean you must also define
two method named getChild(Collection list, int index) and
getChild(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.public static final BeanTransformerTagValues.Store helperSuperClass
public static final BeanTransformerTagValues.Store classNamePrefix
public static final BeanTransformerTagValues.Store classNameSuffix
public static final BeanTransformerTagValues.Store helperClassNamePrefix
public static final BeanTransformerTagValues.Store helperClassNameSuffix
public static final BeanTransformerTagValues.Store addJavaBeanAnnotation
public static BeanTransformerTagValues.Store[] values()
for (BeanTransformerTagValues.Store c : BeanTransformerTagValues.Store.values()) System.out.println(c);
public static BeanTransformerTagValues.Store valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getName()
getName in interface TagValueMetadatapublic Set<Class<?>> getTargets()
getTargets in interface TagValueMetadatapublic Class<?> getType()
getType in interface TagValueMetadatapublic Class<EqualsTagValueNameMatcher> getMatcherClass()
getMatcherClass in interface TagValueMetadatapublic String getDescription()
getDescription in interface TagValueMetadatapublic String getDefaultValue()
getDefaultValue in interface TagValueMetadatapublic boolean isDeprecated()
isDeprecated in interface TagValueMetadataCopyright © 2012–2020 Ultreia.io. All rights reserved.