org.databene.benerator.engine.parser
Class String2DistributionConverter
java.lang.Object
org.databene.commons.converter.AbstractConverter<S,T>
org.databene.commons.converter.ThreadSafeConverter<java.lang.String,Distribution>
org.databene.benerator.engine.parser.String2DistributionConverter
- All Implemented Interfaces:
- java.lang.Cloneable, org.databene.commons.context.ContextAware, org.databene.commons.Converter<java.lang.String,Distribution>, org.databene.commons.ThreadAware
public class String2DistributionConverter
- extends org.databene.commons.converter.ThreadSafeConverter<java.lang.String,Distribution>
- implements org.databene.commons.context.ContextAware
Parses a string and interprets it as a Distribution
spec,
supporting the predefined sequences, like 'random' and 'cumulated'.
Created: 04.05.2010 06:43:01
- Since:
- 0.6.1
- Author:
- Volker Bergmann
Fields inherited from class org.databene.commons.converter.AbstractConverter |
sourceType, targetType |
Methods inherited from class org.databene.commons.converter.ThreadSafeConverter |
clone, isParallelizable, isThreadSafe |
Methods inherited from class org.databene.commons.converter.AbstractConverter |
getSourceType, getTargetType |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
String2DistributionConverter
public String2DistributionConverter()
convert
public Distribution convert(java.lang.String stringOrScript)
throws org.databene.commons.ConversionException
- Specified by:
convert
in interface org.databene.commons.Converter<java.lang.String,Distribution>
- Throws:
org.databene.commons.ConversionException
setContext
public void setContext(org.databene.commons.Context context)
- Specified by:
setContext
in interface org.databene.commons.context.ContextAware
Copyright © 2013. All Rights Reserved.