|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.tools.xjc.ModelLoader
public final class ModelLoader
Builds a Model object.
This is an utility class that makes it easy to load a grammar object
from various sources.
| Constructor Summary | |
|---|---|
ModelLoader(Options _opt,
JCodeModel _codeModel,
ErrorReceiver er)
|
|
| Method Summary | |
|---|---|
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)
Potentially problematic - make sure the parser instance passed is initialized with proper security feature. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelLoader(Options _opt,
JCodeModel _codeModel,
ErrorReceiver er)
| Method Detail |
|---|
public static Model load(Options opt,
JCodeModel codeModel,
ErrorReceiver er)
Model.
public DOMForest buildDOMForest(InternalizationLogic logic)
throws SAXException
SAXException - when a fatal error happens
public XSSchemaSet loadXMLSchema()
throws SAXException
SAXExceptionpublic Model annotateXMLSchema(XSSchemaSet xs)
public XSOMParser createXSOMParser(XMLParser parser)
parser -
public XSOMParser createXSOMParser(DOMForest forest)
public XSSchemaSet createXSOM(DOMForest forest,
SCDBasedBindingSet scdBasedBindingSet)
throws SAXException
DOMForest into a XSSchemaSet.
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||