public class OpenImmoFeedbackDocument extends OpenImmoDocument<OpenimmoFeedback>
| Constructor and Description |
|---|
OpenImmoFeedbackDocument(Document document)
Create from a
Document. |
| Modifier and Type | Method and Description |
|---|---|
OpenImmoVersion |
getDocumentVersion()
Returns the current
XmlVersion of the contained Document. |
static boolean |
isReadable(Document doc)
Checks, if a
Document is readable as a
OpenImmoFeedbackDocument. |
static OpenImmoFeedbackDocument |
newDocument()
Creates an empty
OpenImmoFeedbackDocument. |
static OpenImmoFeedbackDocument |
newDocument(OpenimmoFeedback feedback)
Creates a
OpenImmoFeedbackDocument from a
OpenimmoFeedback object. |
void |
setDocumentVersion(OpenImmoVersion version)
Changes the
XmlVersion of the contained Document. |
OpenimmoFeedback |
toObject()
Creates a
OpenimmoFeedback object from the contained
Document. |
getLatestVersion, isFeedback, isTransferdowngrade, upgrade, upgradeToLatestVersiongetDocument, isTextWrittenAsCDATA, prepareDocumentBeforeWritingToXml, setTextWrittenAsCDATA, toXml, toXml, toXml, toXml, toXml, toXml, toXmlString, toXmlStringpublic OpenImmoVersion getDocumentVersion()
XmlConvertableDocumentXmlVersion of the contained Document.getDocumentVersion in class OpenImmoDocument<OpenimmoFeedback>public static boolean isReadable(Document doc)
Document is readable as a
OpenImmoFeedbackDocument.doc - document to checkpublic static OpenImmoFeedbackDocument newDocument() throws ParserConfigurationException, JAXBException
OpenImmoFeedbackDocument.ParserConfigurationException - if the parser is not properly configuredJAXBException - if a problem with JAXB occuredpublic static OpenImmoFeedbackDocument newDocument(OpenimmoFeedback feedback) throws ParserConfigurationException, JAXBException
OpenImmoFeedbackDocument from a
OpenimmoFeedback object.feedback - Java object, that represents the <openimmo_feedback> root elementParserConfigurationException - if the parser is not properly configuredJAXBException - if a problem with JAXB occuredpublic void setDocumentVersion(OpenImmoVersion version)
XmlConvertableDocumentXmlVersion of the contained Document.
Warning:
This function only changes the version information. It does not execute an
upgrade / downgrade. Use instead
XmlConvertableDocument.downgrade(org.openestate.io.core.XmlVersion),
XmlConvertableDocument.upgrade(org.openestate.io.core.XmlVersion),
XmlConvertableDocument.upgradeToLatestVersion()
in order to perform an upgrade / downgrade.
setDocumentVersion in class XmlConvertableDocument<OpenimmoFeedback,OpenImmoVersion>version - new document versionpublic OpenimmoFeedback toObject() throws JAXBException
OpenimmoFeedback object from the contained
Document.toObject in class XmlDocument<OpenimmoFeedback>JAXBException - if a problem with JAXB occuredCopyright © 2015 OpenEstate. All rights reserved.