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