public class OpenImmoFeedbackDocument extends OpenImmoDocument<OpenimmoFeedback>
| Constructor and Description |
|---|
OpenImmoFeedbackDocument(Document document)
Create from a
Document. |
| Modifier and Type | Method and Description |
|---|---|
OpenImmoVersion |
getDocumentVersion() |
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) |
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()
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)
setDocumentVersion in class XmlConvertableDocument<OpenimmoFeedback,OpenImmoVersion>public 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.