|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrXmlSchemaDriver
An XML schema driver converts an XML Schema to an Execution Object Model (XOM).
The XOM is represented by an IlrReflect
instance and is used when an XML document is read. XML data
are then translated into IlrXmlObject
Java instances.
These Java instances or dynamic objects can be unmarshalled by the driver back into an XML document.
Method Summary | |
---|---|
IlrXmlDocumentDriver |
createDocumentDriver()
Creates a new IlrXmlDocumentDriver to read and save XML document instance. |
void |
end()
Dispose properly the allocated memory. |
IlrXmlError[] |
getErrors()
Get the errors generated during the last model loading operation. |
IlrReflect |
getModel()
Get the object model used by the driver. |
IlrXmlError[] |
getWarnings()
Get the warnings generated during the last model loading operation. |
IlrXmlModel |
getXmlModel()
Return the runtime XML reflect model. |
IlrReflect |
loadModel(InputSource schema,
IlrXmlNsResolver nsToPackage)
Load an XML Schema and convert it into an IlrReflect model. |
IlrReflect |
loadModel(Reader reader,
String packageName)
Load an XML Schema and convert it into an IlrReflect model. |
IlrReflect |
loadModels(InputSource[] schemaSrcs,
IlrXmlNsResolver nsToPackage)
Load a set of XML Schema and convert it into an IlrReflect model. |
void |
setModel(IlrReflect model)
Set the object model used by the driver. |
Method Detail |
---|
IlrReflect loadModel(Reader reader, String packageName) throws IlrXmlErrorException
Load an XML Schema and convert it into an IlrReflect
model.
An IlrXmlErrorException
is thrown when the parsing or
the model conversion fails.
IlrXmlErrorException
reader
- The reader of the XML information.packageName
- The package name of the converted classes.
IlrReflect loadModel(InputSource schema, IlrXmlNsResolver nsToPackage) throws IlrXmlErrorException
Load an XML Schema and convert it into an IlrReflect
model.
An IlrXmlErrorException
is thrown when the parsing or
the model conversion fails.
IlrXmlErrorException
schema
- The location of the schema to be loaded.nsToPackage
- The package resolver that converts a namespace
into a package name. If null, the loaded classes are put in the
default package.
IlrReflect loadModels(InputSource[] schemaSrcs, IlrXmlNsResolver nsToPackage) throws IlrXmlErrorException
IlrReflect
model.
An IlrXmlErrorException
is thrown when the parsing or
the model conversion fails.
IlrXmlErrorException
schemaSrcs
- The location of the schemas to be loaded. To
obtain better error localization and schema importation, the system
and public identification should be set.nsToPackage
- The package resolver that converts a namespace
into a package name. If null, the loaded classes are put in the
default package.
IlrXmlError[] getErrors()
Get the errors generated during the last model loading operation.
IlrXmlError[] getWarnings()
Get the warnings generated during the last model loading operation.
void setModel(IlrReflect model) throws IlrXmlErrorException
Set the object model used by the driver.
IlrXmlErrorException
- is returned when the model is not
a valid XML model.model
- The model to be linked to the driver.IlrReflect getModel()
Get the object model used by the driver.
void end()
Dispose properly the allocated memory.
IlrXmlDocumentDriver createDocumentDriver() throws IlrXmlErrorException
IlrXmlErrorException
IlrXmlModel getXmlModel()
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |