com.sun.msv.generator
Class DataTypeGeneratorImpl
java.lang.Object
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
Field Summary |
boolean |
asciiOnly
if this flag is set to true, then non-ASCII characters will not be used. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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(java.util.Random random)
generate
public java.lang.String generate(org.relaxng.datatype.Datatype dt,
ContextProviderImpl context)
- Specified by:
generate
in interface DataTypeGenerator