| Modifier and Type | Field and Description |
|---|---|
static ObjectFactory |
FACTORY_LAYOUT
the factory for creation of JAXB objects in FMPXMLLAYOUT format
|
static ObjectFactory |
FACTORY_RESULT
the factory for creation of JAXB objects in FMPXMLRESULT format
|
static String |
NAMESPACE
the XML target namespace of this format
|
static String |
PACKAGE
the package, where generated JAXB classes are located
|
| Modifier and Type | Method and Description |
|---|---|
static FilemakerDocument |
createDocument(Document doc)
Creates a
FilemakerDocument from a Document. |
static FilemakerDocument |
createDocument(File xmlFile)
Creates a
FilemakerDocument from a File. |
static FilemakerDocument |
createDocument(InputStream input)
Creates a
FilemakerDocument from an InputStream. |
static FilemakerDocument |
createDocument(String xmlString)
Creates a
FilemakerDocument from a String. |
static Marshaller |
createMarshaller()
Creates a
Marshaller to write JAXB objects into XML. |
static Marshaller |
createMarshaller(String encoding,
boolean formatted)
Creates a
Marshaller to write JAXB objects into XML. |
static Unmarshaller |
createUnmarshaller()
Creates a
Unmarshaller to read JAXB objects from XML. |
static JAXBContext |
getContext()
Returns the
JAXBContext for this format. |
static ObjectFactory |
getFactoryForLayout()
Returns the
ObjectFactory for FMPXMLLAYOUT format. |
static ObjectFactory |
getFactoryForResult()
Returns the
ObjectFactory for FMPXMLRESULT format. |
static void |
initContext(ClassLoader classloader)
Intializes the
JAXBContext for this format. |
static Boolean |
parseBoolean(String value) |
static String |
printBoolean(Boolean value) |
public static final String NAMESPACE
public static final String PACKAGE
public static final ObjectFactory FACTORY_LAYOUT
public static final ObjectFactory FACTORY_RESULT
public static FilemakerDocument createDocument(InputStream input) throws SAXException, IOException, ParserConfigurationException
FilemakerDocument from an InputStream.input - XML inputSAXException - if XML is invalidIOException - if reading failedParserConfigurationException - if the parser is not properly configuredpublic static FilemakerDocument createDocument(File xmlFile) throws SAXException, IOException, ParserConfigurationException
FilemakerDocument from a File.xmlFile - XML fileSAXException - if XML is invalidIOException - if reading failedParserConfigurationException - if the parser is not properly configuredpublic static FilemakerDocument createDocument(String xmlString) throws SAXException, IOException, ParserConfigurationException
FilemakerDocument from a String.xmlString - XML stringSAXException - if XML is invalidIOException - if reading failedParserConfigurationException - if the parser is not properly configuredpublic static FilemakerDocument createDocument(Document doc)
FilemakerDocument from a Document.doc - XML documentpublic static Marshaller createMarshaller() throws JAXBException
Marshaller to write JAXB objects into XML.JAXBException - if a problem with JAXB occuredpublic static Marshaller createMarshaller(String encoding, boolean formatted) throws JAXBException
Marshaller to write JAXB objects into XML.encoding - encoding of written XMLformatted - if written XML is pretty printedJAXBException - if a problem with JAXB occuredpublic static Unmarshaller createUnmarshaller() throws JAXBException
Unmarshaller to read JAXB objects from XML.JAXBException - if a problem with JAXB occuredpublic static JAXBContext getContext() throws JAXBException
JAXBContext for this format.JAXBException - if a problem with JAXB occuredpublic static ObjectFactory getFactoryForLayout()
ObjectFactory for FMPXMLLAYOUT format.public static ObjectFactory getFactoryForResult()
ObjectFactory for FMPXMLRESULT format.public static void initContext(ClassLoader classloader) throws JAXBException
JAXBContext for this format.classloader - the classloader to load the generated JAXB classes withJAXBException - if a problem with JAXB occuredCopyright © 2017 OpenEstate. All rights reserved.