| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the interface for a class generating vouchers. A client will typically create an instance of a VoucherGenerator. It will then invoke the init() method, all the setters, the generate() method and finally the cleanup() method.
| Method Summary | |
|  void | cleanup()This method should be invoked by a client after the generate is completed. | 
|  String | generate()The client will invoke this method to generate a voucher. | 
|  String | getLabelToken()Getter for the property labelToken. | 
|  String | getLength()Getter for the property length. | 
|  String | getPrefix()Getter for the property prefix. | 
|  UOW | getUow()Getter for the property uow. | 
|  void | init()This method should be invoked by a client before all the setters are invoked. | 
|  void | setLabelToken(String labelToken)Setter for property labelToken. | 
|  void | setLength(String length)Setter for property length. | 
|  void | setPrefix(String prefix)Setter for property prefix. | 
|  void | setUow(UOW uow)Setter for property uow. | 
| Method Detail | 
public void init()
public void cleanup()
public String generate()
                throws FrameworkException,
                       ApplicationExceptions
FrameworkException - if any framework error occurs.
ApplicationExceptions - if any application error occurs.public UOW getUow()
public void setUow(UOW uow)
uow - New value of property uow.public String getLabelToken()
public void setLabelToken(String labelToken)
labelToken - New value of property labelToken.public String getPrefix()
public void setPrefix(String prefix)
prefix - New value of property prefix.public String getLength()
public void setLength(String length)
length - New value of property length.| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||