| Modifier and Type | Field and Description |
|---|---|
static ObjectFactory |
FACTORY
the factory for creation of JAXB objects
|
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 CasaItDocument |
createDocument(Document doc)
Creates a
CasaItDocument from a Document. |
static CasaItDocument |
createDocument(File xmlFile)
Creates a
CasaItDocument from a File. |
static CasaItDocument |
createDocument(InputStream input)
Creates a
CasaItDocument from an InputStream. |
static CasaItDocument |
createDocument(String xmlString)
Creates a
CasaItDocument 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 |
getFactory()
Returns the
ObjectFactory for this format. |
static void |
initContext(ClassLoader classloader)
Intializes the
JAXBContext for this format. |
static BigDecimal |
parseDouble(String value) |
static String |
printDouble(BigDecimal value) |
public static final String NAMESPACE
public static final String PACKAGE
public static final ObjectFactory FACTORY
public static CasaItDocument createDocument(InputStream input) throws SAXException, IOException, ParserConfigurationException
CasaItDocument from an InputStream.input - XML inputSAXException - if XML is invalidIOException - if reading failedParserConfigurationException - if the parser is not properly configuredpublic static CasaItDocument createDocument(File xmlFile) throws SAXException, IOException, ParserConfigurationException
CasaItDocument from a File.xmlFile - XML fileSAXException - if XML is invalidIOException - if reading failedParserConfigurationException - if the parser is not properly configuredpublic static CasaItDocument createDocument(String xmlString) throws SAXException, IOException, ParserConfigurationException
CasaItDocument from a String.xmlString - XML stringSAXException - if XML is invalidIOException - if reading failedParserConfigurationException - if the parser is not properly configuredpublic static CasaItDocument createDocument(Document doc)
CasaItDocument 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 getFactory()
ObjectFactory for this 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 occuredpublic static BigDecimal parseDouble(String value)
public static String printDouble(BigDecimal value)
Copyright © 2016 OpenEstate. All rights reserved.