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.
  • Field Details

    • random

      private final Random random
    • asciiOnly

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

      protected Map generatedValues
      map from DataType to Set that holds generated values for types. This map is used when we fail to generate an appropriate value for a type.
    • tokens

      protected Set tokens
      set that contains tokens that are found in example files. This set is used as the last resort to generate a value for a type.
  • Constructor Details

    • DataTypeGeneratorImpl

      public DataTypeGeneratorImpl()
    • DataTypeGeneratorImpl

      public DataTypeGeneratorImpl(Random random)
  • Method Details