DocumentType
- the class of XmlConvertableDocument
VersionType
- the class to determine different versions of the documentpublic abstract class XmlConverter<DocumentType extends XmlConvertableDocument,VersionType extends XmlVersion> extends Object
XmlConvertableDocument
into another
XmlVersion
.Constructor and Description |
---|
XmlConverter() |
Modifier and Type | Method and Description |
---|---|
abstract void |
downgradeToPreviousVersion(DocumentType doc)
Downgrade a
XmlConvertableDocument from the current version to the
previous version. |
abstract VersionType |
getVersion()
Returns the version, that this converter is implemented for.
|
abstract void |
upgradeFromPreviousVersion(DocumentType doc)
Upgrade a
XmlConvertableDocument document from the previous version to
the current version. |
public abstract void downgradeToPreviousVersion(DocumentType doc)
XmlConvertableDocument
from the current version to the
previous version.doc
- the document to downgradepublic abstract VersionType getVersion()
public abstract void upgradeFromPreviousVersion(DocumentType doc)
XmlConvertableDocument
document from the previous version to
the current version.doc
- the document to upgradeCopyright © 2015 OpenEstate. All rights reserved.