com.sun.msv.generator
Class DataTypeGeneratorImpl
java.lang.Object
com.sun.msv.generator.DataTypeGeneratorImpl
- All Implemented Interfaces:
- DataTypeGenerator
public class DataTypeGeneratorImpl
- extends Object
- implements DataTypeGenerator
default implementation of DataTypeGenerator.
You may want to override this class to implement custom generator for
unimplemented datatype or datatype local to your schema.
- Author:
- Kohsuke KAWAGUCHI
Field Summary |
boolean |
asciiOnly
if this flag is set to true, then non-ASCII characters will not be used. |
asciiOnly
public boolean asciiOnly
- if this flag is set to true, then non-ASCII characters will not be used.
DataTypeGeneratorImpl
public DataTypeGeneratorImpl()
DataTypeGeneratorImpl
public DataTypeGeneratorImpl(Random random)
generate
public String generate(Datatype dt,
ContextProviderImpl context)
- Specified by:
generate
in interface DataTypeGenerator