EnumerationFacet e = (EnumerationFacet)dti.getFacetObject( XSDatatype.FACET_ENUMERATION );
if(e!=null) {
Object[] items = e.values.toArray();
for( int i=0; i<10; i++ ) {
try {
return dti.convertToLexicalValue(items[random.nextInt(items.length)],context);
} catch( Exception x ) { ; }
}
}
XSDatatype baseType = dti.getConcreteType();