protected XmlSchemaSimpleTypeRestriction createRestriction ( final String xsdTypeName ) { XmlSchemaSimpleTypeRestriction restriction = new XmlSchemaSimpleTypeRestriction ( ) ; restriction . setBaseTypeName ( new QName ( XMLConstants . W3C_XML_SCHEMA_NS_URI , xsdTypeName ) ) ; return restriction ; }
Create an XML schema restriction .