net.sf.adatagenerator.api
Interface GeneratedGroupBean
- All Superinterfaces:
- Cloneable, GeneratedBean
public interface GeneratedGroupBean
- extends GeneratedBean
An interface that isn't being used yet, but which might be useful in
expressing how a generator works.
A GeneratedGroupBean is a GeneratedBean whose generated field values are
additionally constrained by the structure of some group to which the bean
belongs. These constraints are enforced when the bean is generated or
modified. A group bean has additional methods that can be used for
implementing generation constraints:
Set getGroupNames();
<V> getFieldValue(Class fieldType, String fieldName) throws
NoSuchFieldException, GenerationException
<V> void setFieldValue(Class fieldType, String fieldName, V
fieldValue) throws NoSuchFieldException
It is trivial to use introspection to provide a GeneratedBean wrapper around
any class that follows the Java bean naming conventions; see the
GeneratedBeanWrapper class.
- Author:
- rphall
getGroupNames
Set<String> getGroupNames()
getGroupParameterValue
<V,T> Object getGroupParameterValue(Group<T> group,
Class<V> parameterType,
String parameterName)
throws NoSuchFieldException,
AccessException
- Throws:
NoSuchFieldException
AccessException
setGroupParameterValue
<V,T> void setGroupParameterValue(Group<T> group,
Class<V> parameterType,
String parameterName,
Object parameterValue)
throws NoSuchFieldException,
ModificationException
- Throws:
NoSuchFieldException
ModificationException
Copyright © 2011-2012. All Rights Reserved.