public interface IlrXmlDocumentDriver
IlrXmlObject from an XML
document instance, or creates the XML document from an
IlrXmlObject instance.| Modifier and Type | Method and Description |
|---|---|
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(java.io.InputStream stream)
Read an XML document to create an
IlrXmlObject Java
instance given the mapping contained in the driver model. |
IlrXmlObject |
readObject(java.io.Reader reader)
Read an XML document to create an
IlrXmlObject Java
instance given the mapping contained in the driver model. |
IlrXmlObject |
readObject(java.io.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,
java.io.Writer objectWriter)
Write an
IlrXmlObject instance as an XML document given
the Java/XML mapping defined in the driver object model. |
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(java.io.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(java.io.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(java.io.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, java.io.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.
© Copyright IBM Corp. 1987, 2017