net.sf.qualitytest.blueprint.strategy.creation
Class DefaultArrayCreationStrategy

java.lang.Object
  extended by net.sf.qualitytest.blueprint.strategy.creation.DefaultArrayCreationStrategy
All Implemented Interfaces:
CreationStrategy<Object>

public class DefaultArrayCreationStrategy
extends Object
implements CreationStrategy<Object>


Field Summary
static int DEFAULT_LENGTH
           
 
Constructor Summary
DefaultArrayCreationStrategy(int length)
           
 
Method Summary
 Object createValue(Class<?> expectedClass, BlueprintConfiguration config, BlueprintSession session)
          Create a new value which can be assigned to an attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LENGTH

public static final int DEFAULT_LENGTH
See Also:
Constant Field Values
Constructor Detail

DefaultArrayCreationStrategy

public DefaultArrayCreationStrategy(int length)
Method Detail

createValue

public Object createValue(Class<?> expectedClass,
                          BlueprintConfiguration config,
                          BlueprintSession session)
Description copied from interface: CreationStrategy
Create a new value which can be assigned to an attribute.

Specified by:
createValue in interface CreationStrategy<Object>
Parameters:
expectedClass - which is requested.
config - a BlueprintConfiguration
session - A BlueprintSession * @return a new value


Copyright © 2012-2013. All Rights Reserved.