public final class ModelLoader
extends java.lang.Object
Model
object.
This is an utility class that makes it easy to load a grammar object
from various sources.Constructor and Description |
---|
ModelLoader(Options _opt,
JCodeModel _codeModel,
ErrorReceiver er) |
Modifier and Type | Method and Description |
---|---|
Model |
annotateXMLSchema(XSSchemaSet xs)
Annotates the obtained schema set.
|
DOMForest |
buildDOMForest(InternalizationLogic logic)
Builds DOMForest and performs the internalization.
|
XSSchemaSet |
createXSOM(DOMForest forest,
SCDBasedBindingSet scdBasedBindingSet)
Parses a
DOMForest into a XSSchemaSet . |
XSOMParser |
createXSOMParser(DOMForest forest) |
XSOMParser |
createXSOMParser(XMLParser parser) |
static Model |
load(Options opt,
JCodeModel codeModel,
ErrorReceiver er)
A convenience method to load schemas into a
Model . |
XSSchemaSet |
loadXMLSchema()
Parses a set of XML Schema files into an annotated grammar.
|
public ModelLoader(Options _opt, JCodeModel _codeModel, ErrorReceiver er)
public static Model load(Options opt, JCodeModel codeModel, ErrorReceiver er)
Model
.public DOMForest buildDOMForest(InternalizationLogic logic) throws org.xml.sax.SAXException
org.xml.sax.SAXException
- when a fatal error happenspublic XSSchemaSet loadXMLSchema() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public Model annotateXMLSchema(XSSchemaSet xs)
public XSOMParser createXSOMParser(XMLParser parser)
public XSOMParser createXSOMParser(DOMForest forest)
public XSSchemaSet createXSOM(DOMForest forest, SCDBasedBindingSet scdBasedBindingSet) throws org.xml.sax.SAXException
DOMForest
into a XSSchemaSet
.org.xml.sax.SAXException