XmlOperatorLoader.@Deprecated public class XmlOperatorPersistence extends Object
load(File) or load(Reader). This will load the file, and if
there are no errors, return the file version.
getOperators() to get the loaded operators.
For saving, just call save(IOperators, Writer).
| Modifier and Type | Class and Description |
|---|---|
static class |
XmlOperatorPersistence.LoadedVersion
Deprecated.
Returned by
load(Reader), the version of the
operator file. |
| Constructor and Description |
|---|
XmlOperatorPersistence()
Deprecated.
|
XmlOperatorPersistence(javax.xml.bind.JAXBContext version14Context,
javax.xml.bind.JAXBContext version15Context)
Deprecated.
Use
XmlOperatorPersistence() instead |
| Modifier and Type | Method and Description |
|---|---|
IOperators |
getOperators()
Deprecated.
|
XmlOperatorPersistence.LoadedVersion |
load(File file)
Deprecated.
Load from a file - see
load(Reader). |
XmlOperatorPersistence.LoadedVersion |
load(Reader reader)
Deprecated.
Load an operator XML file using a reader.
|
void |
save(IOperators operators,
Writer writer)
Deprecated.
Save the mapping using a writer.
|
@Deprecated public XmlOperatorPersistence(javax.xml.bind.JAXBContext version14Context, javax.xml.bind.JAXBContext version15Context)
XmlOperatorPersistence() insteadversion14Context - context for version 1.4 schema (package is
net.sourceforge.nrl.parser.jaxb14)version15Context - context for version 1.5 schema (package is
net.sourceforge.nrl.parser.jaxb15)public XmlOperatorPersistence()
public IOperators getOperators()
public XmlOperatorPersistence.LoadedVersion load(File file) throws javax.xml.bind.JAXBException, SAXException, IOException
load(Reader).file - the file to load fromjavax.xml.bind.JAXBExceptionSAXExceptionIOExceptionpublic XmlOperatorPersistence.LoadedVersion load(Reader reader) throws javax.xml.bind.JAXBException, SAXException, IOException
If the call was successful, calling getOperators() next returns the loaded
operators.
reader - the readerjavax.xml.bind.JAXBExceptionSAXExceptionIOExceptionpublic void save(IOperators operators, Writer writer) throws Exception
operators - the operators to savewriter - the writerIOExceptionExceptionCopyright © 2006-2013. All Rights Reserved.