Package org.apache.xmlbeans.impl.schema
Class SchemaTypeSystemCompiler
java.lang.Object
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler
public class SchemaTypeSystemCompiler extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSchemaTypeSystemCompiler.Parameters -
Constructor Summary
Constructors Constructor Description SchemaTypeSystemCompiler() -
Method Summary
Modifier and Type Method Description static SchemaTypeSystemImplcompile(String name, SchemaTypeSystem existingSTS, XmlObject[] input, BindingConfig config, SchemaTypeLoader linkTo, Filer filer, XmlOptions options)Please do not invoke this method directly as the signature could change unexpectedly.static SchemaTypeSystemcompile(SchemaTypeSystemCompiler.Parameters params)Compiles a SchemaTypeSystem.static booleangenerateTypes(SchemaTypeSystem system, Filer filer, XmlOptions options)Generate java source files for a SchemaTypeSystem.
-
Constructor Details
-
SchemaTypeSystemCompiler
public SchemaTypeSystemCompiler()
-
-
Method Details
-
compile
Compiles a SchemaTypeSystem. Use XmlBeans.compileXmlBeans() if you can. -
compile
public static SchemaTypeSystemImpl compile(String name, SchemaTypeSystem existingSTS, XmlObject[] input, BindingConfig config, SchemaTypeLoader linkTo, Filer filer, XmlOptions options) throws XmlExceptionPlease do not invoke this method directly as the signature could change unexpectedly. Use one ofXmlBeans.loadXsd(XmlObject[]),XmlBeans.compileXsd(XmlObject[], SchemaTypeLoader, XmlOptions), orXmlBeans.compileXmlBeans(String, SchemaTypeSystem, XmlObject[], BindingConfig, SchemaTypeLoader, Filer, XmlOptions)- Throws:
XmlException
-
generateTypes
Generate java source files for a SchemaTypeSystem. Please do not invoke this method directly as the signature could change unexpectedly. UseXmlBeans.compileXmlBeans(java.lang.String, org.apache.xmlbeans.SchemaTypeSystem, org.apache.xmlbeans.XmlObject[], org.apache.xmlbeans.BindingConfig, org.apache.xmlbeans.SchemaTypeLoader, org.apache.xmlbeans.Filer, org.apache.xmlbeans.XmlOptions)- Parameters:
system- the SchemaTypeSystem to generated java source forfiler- to create the java source filesoptions- SeeXmlOptions.setSchemaCodePrinter(org.apache.xmlbeans.SchemaCodePrinter)- Returns:
- true if saving the generated source succeeded.
-