| Modifier and Type | Field and Description |
|---|---|
static Locale |
DEFAULT_LOCALE
the default locale of this format
|
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
|
static DaftIeVersion |
VERSION
the latest implemented version of this format
|
| Modifier and Type | Method and Description |
|---|---|
static DaftIeDocument |
createDocument(Document doc)
Creates a
DaftIeDocument from a Document. |
static DaftIeDocument |
createDocument(File xmlFile)
Creates a
DaftIeDocument from a File. |
static DaftIeDocument |
createDocument(InputStream input)
Creates a
DaftIeDocument from an InputStream. |
static DaftIeDocument |
createDocument(String xmlString)
Creates a
DaftIeDocument 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 String |
getCountryName(String country)
Returns a country name, as it is preferred by this format.
|
static DateFormat |
getDateFormat()
Returns the preferred date format for this format.
|
static ObjectFactory |
getFactory()
Returns the
ObjectFactory for this format. |
static void |
initContext(ClassLoader classloader)
Intializes the
JAXBContext for this format. |
static Boolean |
parseBoolean(String value) |
static String |
parseCountry(String value) |
static Calendar |
parseDate(String value) |
static Calendar |
parseDateTime(String value) |
static Double |
parseDouble(String value) |
static Integer |
parseInteger(String value) |
static URL |
parseURL(String value) |
static String |
printBoolean(Boolean value) |
static String |
printCountry(String value) |
static String |
printDate(Calendar value) |
static String |
printDateTime(Calendar value) |
static String |
printDouble(Double value) |
static String |
printInteger(Integer value) |
static String |
printURL(URL value) |
public static final DaftIeVersion VERSION
public static final String NAMESPACE
public static final Locale DEFAULT_LOCALE
public static final String PACKAGE
public static final ObjectFactory FACTORY
public static DaftIeDocument createDocument(InputStream input) throws SAXException, IOException, ParserConfigurationException
DaftIeDocument from an InputStream.input - XML inputSAXException - if XML is invalidIOException - if reading failedParserConfigurationException - if the parser is not properly configuredpublic static DaftIeDocument createDocument(File xmlFile) throws SAXException, IOException, ParserConfigurationException
DaftIeDocument from a File.xmlFile - XML fileSAXException - if XML is invalidIOException - if reading failedParserConfigurationException - if the parser is not properly configuredpublic static DaftIeDocument createDocument(String xmlString) throws SAXException, IOException, ParserConfigurationException
DaftIeDocument from a String.xmlString - XML stringSAXException - if XML is invalidIOException - if reading failedParserConfigurationException - if the parser is not properly configuredpublic static DaftIeDocument createDocument(Document doc)
DaftIeDocument 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 String getCountryName(String country)
country - country name to convertpublic static DateFormat getDateFormat()
public 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 occuredCopyright © 2015 OpenEstate. All rights reserved.