- java.lang.Object
-
- com.sun.tools.xjc.ModelLoader
-
-
Constructor Summary
Constructors Constructor Description ModelLoader(Options _opt, com.sun.codemodel.JCodeModel _codeModel, ErrorReceiver er)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelannotateXMLSchema(com.sun.xml.xsom.XSSchemaSet xs)Annotates the obtained schema set.DOMForestbuildDOMForest(InternalizationLogic logic)Builds DOMForest and performs the internalization.com.sun.xml.xsom.XSSchemaSetcreateXSOM(DOMForest forest, SCDBasedBindingSet scdBasedBindingSet)Parses aDOMForestinto aXSSchemaSet.com.sun.xml.xsom.parser.XSOMParsercreateXSOMParser(DOMForest forest)com.sun.xml.xsom.parser.XSOMParsercreateXSOMParser(com.sun.xml.xsom.parser.XMLParser parser)Potentially problematic - make sure the parser instance passed is initialized with proper security feature.static Modelload(Options opt, com.sun.codemodel.JCodeModel codeModel, ErrorReceiver er)A convenience method to load schemas into aModel.com.sun.xml.xsom.XSSchemaSetloadXMLSchema()Parses a set of XML Schema files into an annotated grammar.
-
-
-
Constructor Detail
-
ModelLoader
public ModelLoader(Options _opt, com.sun.codemodel.JCodeModel _codeModel, ErrorReceiver er)
-
-
Method Detail
-
load
public static Model load(Options opt, com.sun.codemodel.JCodeModel codeModel, ErrorReceiver er)
A convenience method to load schemas into aModel.
-
buildDOMForest
public DOMForest buildDOMForest(InternalizationLogic logic) throws SAXException
Builds DOMForest and performs the internalization.- Throws:
SAXException- when a fatal error happens
-
loadXMLSchema
public com.sun.xml.xsom.XSSchemaSet loadXMLSchema() throws SAXExceptionParses a set of XML Schema files into an annotated grammar.- Throws:
SAXException
-
annotateXMLSchema
public Model annotateXMLSchema(com.sun.xml.xsom.XSSchemaSet xs)
Annotates the obtained schema set.- Returns:
- null if an error happens. In that case, the error messages will be properly reported to the controller by this method.
-
createXSOMParser
public com.sun.xml.xsom.parser.XSOMParser createXSOMParser(com.sun.xml.xsom.parser.XMLParser parser)
Potentially problematic - make sure the parser instance passed is initialized with proper security feature.- Parameters:
parser-- Returns:
-
createXSOMParser
public com.sun.xml.xsom.parser.XSOMParser createXSOMParser(DOMForest forest)
-
createXSOM
public com.sun.xml.xsom.XSSchemaSet createXSOM(DOMForest forest, SCDBasedBindingSet scdBasedBindingSet) throws SAXException
Parses aDOMForestinto aXSSchemaSet.- Returns:
- null if the parsing failed.
- Throws:
SAXException
-
-