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:

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

Method Summary
 Set<String> getGroupNames()
           
<V,T> Object
getGroupParameterValue(Group<T> group, Class<V> parameterType, String parameterName)
           
<V,T> void
setGroupParameterValue(Group<T> group, Class<V> parameterType, String parameterName, Object parameterValue)
           
 
Methods inherited from interface net.sf.adatagenerator.api.GeneratedBean
clone, cloneGeneratedBean, getProperties, getProperty, removeProperty, setProperty
 

Method Detail

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.