public static enum SimpleJavaBeanTransformerTagValues.Store extends Enum<SimpleJavaBeanTransformerTagValues.Store> implements TagValueMetadata
| Enum Constant and Description |
|---|
simpleBeanClassNamePrefix
To add a prefix on the name of each generated bean class.
|
simpleBeanClassNameSuffix
To add a prefix on the name of each generated bean class.
|
simpleBeanDefaultsClassNamePrefix
To add a prefix on the name of each generated bean class.
|
simpleBeanDefaultsClassNameSuffix
To add a suffix on the name of each generated bean class.
|
simpleBeanDefaultsSuperClass
Tag value to use a super super-class for generated defaults class of a
simple bean.
|
simpleBeanGenerateDefaults
To generate a factory of generated simple beans.
|
simpleBeanGenerateFactory
To generate a factory of generated simple beans.
|
simpleBeanGenerateInterface
To generate an interface of each simple bean.
|
simpleBeanInterfaceNamePrefix
To add a prefix on the name of each generated interface of a simple bean.
|
simpleBeanInterfaceNameSuffix
To add a prefix on the name of each generated interface of a simple bean.
|
simpleBeanInterfaceSuperClass
Tag value to use a super interface for generated interfaces on simple bean.
|
simpleBeanSuperClass
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 SimpleJavaBeanTransformerTagValues.Store |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimpleJavaBeanTransformerTagValues.Store[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleJavaBeanTransformerTagValues.Store simpleBeanGenerateInterface
public static final SimpleJavaBeanTransformerTagValues.Store simpleBeanGenerateFactory
SimpleJavaBeanTransformerTagValues.isSimpleBeanSkipGenerateFactory(ObjectModel)public static final SimpleJavaBeanTransformerTagValues.Store simpleBeanGenerateDefaults
public static final SimpleJavaBeanTransformerTagValues.Store simpleBeanSuperClass
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 SimpleJavaBeanTransformerTagValues.Store simpleBeanClassNamePrefix
public static final SimpleJavaBeanTransformerTagValues.Store simpleBeanClassNameSuffix
public static final SimpleJavaBeanTransformerTagValues.Store simpleBeanInterfaceSuperClass
public static final SimpleJavaBeanTransformerTagValues.Store simpleBeanInterfaceNamePrefix
public static final SimpleJavaBeanTransformerTagValues.Store simpleBeanInterfaceNameSuffix
public static final SimpleJavaBeanTransformerTagValues.Store simpleBeanDefaultsSuperClass
public static final SimpleJavaBeanTransformerTagValues.Store simpleBeanDefaultsClassNamePrefix
public static final SimpleJavaBeanTransformerTagValues.Store simpleBeanDefaultsClassNameSuffix
public static SimpleJavaBeanTransformerTagValues.Store[] values()
for (SimpleJavaBeanTransformerTagValues.Store c : SimpleJavaBeanTransformerTagValues.Store.values()) System.out.println(c);
public static SimpleJavaBeanTransformerTagValues.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.