public static enum JavaBeanTransformerTagValues.Store extends Enum<JavaBeanTransformerTagValues.Store> implements TagValueMetadata
| Enum Constant and Description |
|---|
beanSuperClass
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 JavaBeanTransformerTagValues.Store |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaBeanTransformerTagValues.Store[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaBeanTransformerTagValues.Store beanSuperClass
EugeneJavaTagValues.Store.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 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 JavaBeanTransformerTagValues.Store[] values()
for (JavaBeanTransformerTagValues.Store c : JavaBeanTransformerTagValues.Store.values()) System.out.println(c);
public static JavaBeanTransformerTagValues.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.