public class ImmobiliareItDocument extends XmlConvertableDocument<Feed,ImmobiliareItVersion>
| Constructor and Description |
|---|
ImmobiliareItDocument(Document document)
Create from a
Document. |
| Modifier and Type | Method and Description |
|---|---|
ImmobiliareItVersion |
getDocumentVersion()
Returns the current
XmlVersion of the contained Document. |
ImmobiliareItVersion |
getLatestVersion()
Returns the newest supported
XmlVersion for the contained
Document. |
static boolean |
isReadable(Document doc)
Checks, if a
Document is readable as a
ImmobiliareItDocument. |
static ImmobiliareItDocument |
newDocument()
Creates an empty
ImmobiliareItDocument. |
static ImmobiliareItDocument |
newDocument(Feed feed)
Creates a
ImmobiliareItDocument from a Feed object. |
void |
setDocumentVersion(ImmobiliareItVersion version)
Changes the
XmlVersion of the contained Document. |
Feed |
toObject()
|
downgrade, upgrade, upgradeToLatestVersiongetDocument, isTextWrittenAsCDATA, prepareDocumentBeforeWritingToXml, setTextWrittenAsCDATA, toXml, toXml, toXml, toXml, toXml, toXml, toXmlString, toXmlStringpublic ImmobiliareItVersion getDocumentVersion()
XmlConvertableDocumentXmlVersion of the contained Document.getDocumentVersion in class XmlConvertableDocument<Feed,ImmobiliareItVersion>public ImmobiliareItVersion getLatestVersion()
XmlConvertableDocumentXmlVersion for the contained
Document.getLatestVersion in class XmlConvertableDocument<Feed,ImmobiliareItVersion>public static boolean isReadable(Document doc)
Document is readable as a
ImmobiliareItDocument.doc - document to checkpublic static ImmobiliareItDocument newDocument() throws ParserConfigurationException, JAXBException
ImmobiliareItDocument.ParserConfigurationException - if the parser is not properly configuredJAXBException - if a problem with JAXB occuredpublic static ImmobiliareItDocument newDocument(Feed feed) throws ParserConfigurationException, JAXBException
ImmobiliareItDocument from a Feed object.feed - Java object, that represents the <feed> root elementParserConfigurationException - if the parser is not properly configuredJAXBException - if a problem with JAXB occuredpublic void setDocumentVersion(ImmobiliareItVersion 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<Feed,ImmobiliareItVersion>version - new document versionpublic Feed toObject() throws JAXBException
toObject in class XmlDocument<Feed>JAXBException - if a problem with JAXB occuredCopyright © 2015 OpenEstate. All rights reserved.