stream.print(config.getIndentation());
stream.println("if ( !validationResult ) return false;");
stream.println();
printComplexValidationBlockClose(stream);
XSSimpleTypeDefinition simpleType = null;
if (typeDefinition instanceof XSSimpleTypeDefinition) {
simpleType = (XSSimpleTypeDefinition) typeDefinition;
}
Variety variety = Util.findVariety(simpleType);
boolean printDefaultImpl = true;
if (hasChardata) {
if (simpleType == null) {
simpleType = Util.findSimpleTypeDefinition(typeDefinition);
variety = Util.findVariety(simpleType);
}
XSSimpleTypeDefinition listType = null;
if (variety == Variety.LIST) {
listType = simpleType;
simpleType = Util.findListItemType(simpleType);
}
String xsdType = Util.findXSDSimpleTypeString(simpleType, config);