org.org.usurper.handlers.basic
Class EnumHandler

java.lang.Object
  extended by org.org.usurper.handlers.basic.EnumHandler
All Implemented Interfaces:
IHandler

public final class EnumHandler
extends java.lang.Object
implements IHandler

This type returns a random value of a given enum type.

Author:
pagregoire

Constructor Summary
EnumHandler()
           
 
Method Summary
 java.lang.Object handle(HandledBeanProperty handledBeanProperty)
          This method allows the generation of a properties' value.
 java.lang.Object handle(HandledConstructorArg handledConstructorArg)
          This method allows the generation of a constructor argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumHandler

public EnumHandler()
Method Detail

handle

public java.lang.Object handle(HandledBeanProperty handledBeanProperty)
Description copied from interface: IHandler
This method allows the generation of a properties' value.

Specified by:
handle in interface IHandler
Parameters:
handledBeanProperty - The bean property's info
Returns:
the generated value.
See Also:
IHandler.handle(org.org.usurper.model.HandledBeanProperty)

handle

public java.lang.Object handle(HandledConstructorArg handledConstructorArg)
Description copied from interface: IHandler
This method allows the generation of a constructor argument.

Specified by:
handle in interface IHandler
Parameters:
handledConstructorArg - The constructor's arg's info
Returns:
the generated value.
See Also:
IHandler.handle(org.org.usurper.model.HandledConstructorArg)


Copyright © 2008. All Rights Reserved.