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