public enum OpenImmoVersion extends Enum<OpenImmoVersion> implements XmlVersion
| Enum Constant and Description |
|---|
V1_1
Version 1.1
|
V1_2_0
Version 1.2.0
|
V1_2_1
Version 1.2.1
|
V1_2_2
Version 1.2.2
|
V1_2_3
Version 1.2.3
|
V1_2_4
Version 1.2.4
|
V1_2_5
Version 1.2.5
|
V1_2_6
Version 1.2.6
|
V1_2_7
Version 1.2.7
|
| Modifier and Type | Method and Description |
|---|---|
static OpenImmoVersion |
detectFromString(String version) |
XmlConverter |
getConverter()
Returns the converter for this version.
|
OpenImmoVersion |
getNextVersion()
Returns the next version relative to this version.
|
OpenImmoVersion |
getPreviousVersion()
Returns the previous version relative to this version.
|
boolean |
isLatestVersion()
Returns the newest / latest version, that is currently supported.
|
boolean |
isNewerThen(XmlVersion v)
Check, if this version is newer then another version.
|
boolean |
isOlderThen(XmlVersion v)
Check, if this version is older then another version.
|
String |
toReadableVersion()
Convert this version to a readable string.
|
static OpenImmoVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OpenImmoVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpenImmoVersion V1_1
public static final OpenImmoVersion V1_2_0
public static final OpenImmoVersion V1_2_1
public static final OpenImmoVersion V1_2_2
public static final OpenImmoVersion V1_2_3
public static final OpenImmoVersion V1_2_4
public static final OpenImmoVersion V1_2_5
public static final OpenImmoVersion V1_2_6
public static final OpenImmoVersion V1_2_7
public static OpenImmoVersion[] values()
for (OpenImmoVersion c : OpenImmoVersion.values()) System.out.println(c);
public static OpenImmoVersion valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static OpenImmoVersion detectFromString(String version)
public XmlConverter getConverter()
XmlVersiongetConverter in interface XmlVersionpublic OpenImmoVersion getNextVersion()
XmlVersiongetNextVersion in interface XmlVersionpublic OpenImmoVersion getPreviousVersion()
XmlVersiongetPreviousVersion in interface XmlVersionpublic boolean isLatestVersion()
XmlVersionisLatestVersion in interface XmlVersionpublic boolean isNewerThen(XmlVersion v)
XmlVersionisNewerThen in interface XmlVersionv - the other version to comparepublic boolean isOlderThen(XmlVersion v)
XmlVersionisOlderThen in interface XmlVersionv - the other version to comparepublic String toReadableVersion()
XmlVersiontoReadableVersion in interface XmlVersionCopyright © 2015 OpenEstate. All rights reserved.