net.sf.qualitytest.blueprint
Interface CreationStrategy<T>

All Known Implementing Classes:
BlueprintCreationStrategy, BlueprintStringCreationStrategy, DefaultArrayCreationStrategy, DefaultEnumCreationStrategy, IncrementValueCreationStrategy, IterateValueCreationStrategy, NullValueCreationStrategy, RandomBooleanValueCreationStrategy, RandomByteValueCreationStrategy, RandomCharValueCreationStrategy, RandomDoubleValueCreationStrategy, RandomEnumCreationStrategy, RandomFloatValueCreationStrategy, RandomIntValueCreationStrategy, RandomLongValueCreationStrategy, RandomShortValueCreationStrategy, SingleValueCreationStrategy, ValueCreationStrategy

public interface CreationStrategy<T>

Definition of an interface to create values for attribute assignments.

Author:
Dominik Seichter

Method Summary
 T createValue(Class<?> expectedClazz, BlueprintConfiguration config, BlueprintSession session)
          Create a new value which can be assigned to an attribute.
 

Method Detail

createValue

@Nullable
T createValue(@Nonnull
                       Class<?> expectedClazz,
                       @Nonnull
                       BlueprintConfiguration config,
                       @Nonnull
                       BlueprintSession session)
Create a new value which can be assigned to an attribute.

Type Parameters:
T - Type parameter of the return type
Parameters:
expectedClazz - which is requested.
config - a BlueprintConfiguration
session - A BlueprintSession * @return a new value


Copyright © 2012-2013. All Rights Reserved.