public class DaftIeDocument extends XmlConvertableDocument<Daft,DaftIeVersion>
| Constructor and Description |
|---|
DaftIeDocument(Document document)
Create from a
Document. |
| Modifier and Type | Method and Description |
|---|---|
DaftIeVersion |
getDocumentVersion() |
DaftIeVersion |
getLatestVersion() |
static boolean |
isReadable(Document doc)
Checks, if a
Document is readable as a DaftIeDocument. |
static DaftIeDocument |
newDocument()
Creates an empty
DaftIeDocument. |
static DaftIeDocument |
newDocument(Daft daft)
Creates a
DaftIeDocument from a Daft object. |
void |
setDocumentVersion(DaftIeVersion version) |
Daft |
toObject()
|
downgrade, upgrade, upgradeToLatestVersiongetDocument, isTextWrittenAsCDATA, prepareDocumentBeforeWritingToXml, setTextWrittenAsCDATA, toXml, toXml, toXml, toXml, toXml, toXml, toXmlString, toXmlStringpublic DaftIeVersion getDocumentVersion()
getDocumentVersion in class XmlConvertableDocument<Daft,DaftIeVersion>public DaftIeVersion getLatestVersion()
getLatestVersion in class XmlConvertableDocument<Daft,DaftIeVersion>public static boolean isReadable(Document doc)
Document is readable as a DaftIeDocument.doc - document to checkpublic static DaftIeDocument newDocument() throws ParserConfigurationException, JAXBException
DaftIeDocument.ParserConfigurationException - if the parser is not properly configuredJAXBException - if a problem with JAXB occuredpublic static DaftIeDocument newDocument(Daft daft) throws ParserConfigurationException, JAXBException
DaftIeDocument from a Daft object.daft - Java object, that represents the <daft> root elementParserConfigurationException - if the parser is not properly configuredJAXBException - if a problem with JAXB occuredpublic void setDocumentVersion(DaftIeVersion version)
setDocumentVersion in class XmlConvertableDocument<Daft,DaftIeVersion>public Daft toObject() throws JAXBException
toObject in class XmlDocument<Daft>JAXBException - if a problem with JAXB occuredCopyright © 2015 OpenEstate. All rights reserved.