nl.beesting.beangenerator.generator
Class RegularExpressionInstanceGenerator

java.lang.Object
  extended by nl.beesting.beangenerator.generator.AbstractInstanceGenerator
      extended by nl.beesting.beangenerator.generator.RegularExpressionInstanceGenerator
All Implemented Interfaces:
InstanceGenerator

public class RegularExpressionInstanceGenerator
extends AbstractInstanceGenerator

Author:
gerard

Field Summary
 
Fields inherited from class nl.beesting.beangenerator.generator.AbstractInstanceGenerator
FROM_PARAMETER, UNTIL_PARAMETER
 
Constructor Summary
RegularExpressionInstanceGenerator()
           
 
Method Summary
 java.lang.Object generateInstance(java.lang.Class<?> type)
          Create an instance for the given class.
 java.lang.Object generateInstance(java.lang.Class<?> type, int modus)
          Create an instance for the given class with an instance generator specific modus.
 java.lang.String generateString()
           
protected  java.lang.Object getDefaultFromValue()
          TODO doesn't use this
protected  java.lang.Object getDefaultUntilValue()
           
protected  java.lang.Object getFromValue()
           
protected  java.lang.Object getUntilValue()
           
 void init(ParameterPair[] initParams)
          Initializes the instnce generator with the given array of objects.
 
Methods inherited from class nl.beesting.beangenerator.generator.AbstractInstanceGenerator
addSupportedTypes, checkSupport, getSupportedParameterDescriptors, getSupportedTypes, initializeParameterDouble, initializeParameterLong, initParameter, initParameter, isParameterSupported, isParameterSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegularExpressionInstanceGenerator

public RegularExpressionInstanceGenerator()
Method Detail

generateInstance

public java.lang.Object generateInstance(java.lang.Class<?> type,
                                         int modus)
                                  throws TypeNotSupportedException
Create an instance for the given class with an instance generator specific modus. The returned object is of the given class.

Returns:
Throws:
TypeNotSupportedException

generateInstance

public java.lang.Object generateInstance(java.lang.Class<?> type)
                                  throws TypeNotSupportedException
Create an instance for the given class. The returned object is of the given class.

Returns:
Throws:
TypeNotSupportedException

generateString

public java.lang.String generateString()
                                throws ReverseREParseException
Throws:
ReverseREParseException

init

public void init(ParameterPair[] initParams)
Initializes the instnce generator with the given array of objects.


getDefaultFromValue

protected java.lang.Object getDefaultFromValue()
TODO doesn't use this

Specified by:
getDefaultFromValue in class AbstractInstanceGenerator

getDefaultUntilValue

protected java.lang.Object getDefaultUntilValue()
Specified by:
getDefaultUntilValue in class AbstractInstanceGenerator

getFromValue

protected java.lang.Object getFromValue()
Specified by:
getFromValue in class AbstractInstanceGenerator

getUntilValue

protected java.lang.Object getUntilValue()
Specified by:
getUntilValue in class AbstractInstanceGenerator


Copyright 2008. All Rights Reserved.