net.sf.adatagenerator.api
Interface GeneratedBean

All Superinterfaces:
Cloneable
All Known Subinterfaces:
GeneratedGroupBean

public interface GeneratedBean
extends Cloneable

A bean that has a set of properties that pertain to the generation of the bean.

Author:
rphall

Method Summary
 Object clone()
           
 GeneratedBean cloneGeneratedBean()
          A typesafe clone method
 Properties getProperties()
          Returns a copy of this bean's properties.
 String getProperty(String pn)
          Searches for the property with the specified name in the properties of this bean.
 void removeProperty(String pn)
          Removes a property from this bean.
 void setProperty(String pn, String pv)
          Sets a property value for this bean.
 

Method Detail

clone

Object clone()
             throws CloneNotSupportedException
Throws:
CloneNotSupportedException
See Also:
for the Cloneable contract, Object.clone()

cloneGeneratedBean

GeneratedBean cloneGeneratedBean()
                                 throws CreationException
A typesafe clone method

Throws:
CreationException

getProperties

Properties getProperties()
Returns a copy of this bean's properties.

Returns:

setProperty

void setProperty(String pn,
                 String pv)
Sets a property value for this bean.

Parameters:
pn - the (non-null) property name
pv - the (non-null) property value

removeProperty

void removeProperty(String pn)
Removes a property from this bean.

Parameters:
pn - the (non-null) property name

getProperty

String getProperty(String pn)
Searches for the property with the specified name in the properties of this bean. The method returns null if the property is not found.

Parameters:
pn - the property name.
Returns:
the value in this property list with the specified key value, or null if the property does not exist.


Copyright © 2011-2012. All Rights Reserved.