com.sun.msv.generator
Class DataTypeGeneratorImpl

java.lang.Object
  extended by com.sun.msv.generator.DataTypeGeneratorImpl
All Implemented Interfaces:
DataTypeGenerator

public class DataTypeGeneratorImpl
extends java.lang.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

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.msv.generator.DataTypeGenerator
DataTypeGenerator.GenerationException
 
Field Summary
 boolean asciiOnly
          if this flag is set to true, then non-ASCII characters will not be used.
 
Constructor Summary
DataTypeGeneratorImpl()
           
DataTypeGeneratorImpl(java.util.Random random)
           
 
Method Summary
 java.lang.String generate(org.relaxng.datatype.Datatype dt, ContextProviderImpl context)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

asciiOnly

public boolean asciiOnly
if this flag is set to true, then non-ASCII characters will not be used.

Constructor Detail

DataTypeGeneratorImpl

public DataTypeGeneratorImpl()

DataTypeGeneratorImpl

public DataTypeGeneratorImpl(java.util.Random random)
Method Detail

generate

public java.lang.String generate(org.relaxng.datatype.Datatype dt,
                                 ContextProviderImpl context)
Specified by:
generate in interface DataTypeGenerator