public static enum SimpleJavaBeanWithNoInterfaceTransformerTagValues.Store extends Enum<SimpleJavaBeanWithNoInterfaceTransformerTagValues.Store> implements TagValueMetadata
| Enum Constant and Description |
|---|
simpleBeanWithNoInterfaceClassNamePrefix
To add a prefix on the name of each generated bean class.
|
simpleBeanWithNoInterfaceClassNameSuffix
To add a prefix on the name of each generated bean class.
|
simpleBeanWithNoInterfaceDefaultsClassNamePrefix
To add a prefix on the name of each generated bean class.
|
simpleBeanWithNoInterfaceDefaultsClassNameSuffix
To add a suffix on the name of each generated bean class.
|
simpleBeanWithNoInterfaceDefaultsSuperClass
Tag value to use a super super-class for generated defaults class of a simple bean.
|
simpleBeanWithNoInterfaceGenerateDefaults
To generate a factory of generated simple beans.
|
simpleBeanWithNoInterfaceGenerateFunctions
To generate or not guava functions on each property of the bean.
|
simpleBeanWithNoInterfaceGeneratePredicates
To generate or not guava predicates on each property of the bean.
|
simpleBeanWithNoInterfaceSkipGenerateConstructors
To generate or not constructors methods on Default classes.
|
simpleBeanWithNoInterfaceSuperClass
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 SimpleJavaBeanWithNoInterfaceTransformerTagValues.Store |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimpleJavaBeanWithNoInterfaceTransformerTagValues.Store[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleJavaBeanWithNoInterfaceTransformerTagValues.Store simpleBeanWithNoInterfaceGenerateDefaults
public static final SimpleJavaBeanWithNoInterfaceTransformerTagValues.Store simpleBeanWithNoInterfaceGeneratePredicates
public static final SimpleJavaBeanWithNoInterfaceTransformerTagValues.Store simpleBeanWithNoInterfaceGenerateFunctions
public static final SimpleJavaBeanWithNoInterfaceTransformerTagValues.Store simpleBeanWithNoInterfaceSkipGenerateConstructors
public static final SimpleJavaBeanWithNoInterfaceTransformerTagValues.Store simpleBeanWithNoInterfaceSuperClass
EugeneJavaTagValues.Store.generatePropertyChangeSupport,
then your class must provide evrything 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 AbstractBean 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 globaly use it on the complete model or to a specific classifier.public static final SimpleJavaBeanWithNoInterfaceTransformerTagValues.Store simpleBeanWithNoInterfaceDefaultsSuperClass
public static final SimpleJavaBeanWithNoInterfaceTransformerTagValues.Store simpleBeanWithNoInterfaceClassNamePrefix
public static final SimpleJavaBeanWithNoInterfaceTransformerTagValues.Store simpleBeanWithNoInterfaceClassNameSuffix
public static final SimpleJavaBeanWithNoInterfaceTransformerTagValues.Store simpleBeanWithNoInterfaceDefaultsClassNamePrefix
public static final SimpleJavaBeanWithNoInterfaceTransformerTagValues.Store simpleBeanWithNoInterfaceDefaultsClassNameSuffix
public static SimpleJavaBeanWithNoInterfaceTransformerTagValues.Store[] values()
for (SimpleJavaBeanWithNoInterfaceTransformerTagValues.Store c : SimpleJavaBeanWithNoInterfaceTransformerTagValues.Store.values()) System.out.println(c);
public static SimpleJavaBeanWithNoInterfaceTransformerTagValues.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–2016 CodeLutin. All rights reserved.