|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IlrXmlDocumentDriver
An XML document driver creates an IlrXmlObject
from an XML
document instance, or creates the XML document from an
IlrXmlObject
instance.
Method Summary | |
---|---|
void |
end()
Dispose properly the allocated memory. |
IlrXmlError[] |
getErrors()
Get the errors generated during the last marshalling/unmarshalling operation. |
IlrReflect |
getModel()
Get the object model used by the driver. |
IlrXmlError[] |
getWarnings()
Get the warnings generated during the last marshalling/unmarshalling operation. |
IlrXmlModel |
getXmlModel()
Return the runtime XML reflect model. |
IlrXmlObject |
readObject(InputStream stream)
Read an XML document to create an IlrXmlObject Java
instance given the mapping contained in the driver model. |
IlrXmlObject |
readObject(Reader reader)
Read an XML document to create an IlrXmlObject Java
instance given the mapping contained in the driver model. |
IlrXmlObject |
readObject(Reader reader,
IlrClass xomType)
Reads an XML document to create an IlrXmlObject Java
instance given the mapping contained in the driver model. |
void |
writeObject(IlrXmlObject object,
Writer objectWriter)
Write an IlrXmlObject instance as an XML document given
the Java/XML mapping defined in the driver object model. |
Method Detail |
---|
IlrXmlError[] getErrors()
Get the errors generated during the last marshalling/unmarshalling operation.
IlrXmlError[] getWarnings()
Get the warnings generated during the last marshalling/unmarshalling operation.
IlrXmlObject readObject(Reader reader) throws IlrXmlErrorException
Read an XML document to create an IlrXmlObject
Java
instance given the mapping contained in the driver model.
IlrXmlErrorException
- thrown when the reading fails.reader
- The reader containing the XML document.
IlrXmlObject readObject(InputStream stream) throws IlrXmlErrorException
Read an XML document to create an IlrXmlObject
Java
instance given the mapping contained in the driver model.
IlrXmlErrorException
- thrown when the reading fails.stream
- The InputStream containing the XML document.
IlrXmlObject readObject(Reader reader, IlrClass xomType) throws IlrXmlErrorException
IlrXmlObject
Java
instance given the mapping contained in the driver model.
This method is different from the previous readObject
method with only one parameter. It does not require that the enclosing
tag be a root element.
IlrXmlErrorException
- When the reading fails.reader
- The reader containing the XML document.xomType
- The expected XOM type of the XML object.
void writeObject(IlrXmlObject object, Writer objectWriter) throws IlrXmlErrorException
IlrXmlObject
instance as an XML document given
the Java/XML mapping defined in the driver object model.
IlrXmlErrorException
- thrown when the writing fails.object
- The default object to be written.
objectWriter
- The XML document writer.void end()
Dispose properly the allocated memory.
IlrXmlModel getXmlModel()
Return the runtime XML reflect model.
IlrReflect getModel()
Get the object model used by the driver.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |