public enum KyeroVersion extends Enum<KyeroVersion> implements XmlVersion
| Modifier and Type | Method and Description |
|---|---|
static KyeroVersion |
detectFromString(String version) |
XmlConverter |
getConverter()
Returns the converter for this version.
|
KyeroVersion |
getNextVersion()
Returns the next version relative to this version.
|
KyeroVersion |
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.
|
String |
toXmlVersion() |
static KyeroVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KyeroVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KyeroVersion V2_1
public static final KyeroVersion V3
public static KyeroVersion[] values()
for (KyeroVersion c : KyeroVersion.values()) System.out.println(c);
public static KyeroVersion 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 KyeroVersion detectFromString(String version)
public XmlConverter getConverter()
XmlVersiongetConverter in interface XmlVersionpublic KyeroVersion getNextVersion()
XmlVersiongetNextVersion in interface XmlVersionpublic KyeroVersion 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 XmlVersionpublic String toXmlVersion()
Copyright © 2017 OpenEstate. All rights reserved.