Package com.xwiki.admintools.health
Enum XWikiVersions
- java.lang.Object
-
- java.lang.Enum<XWikiVersions>
-
- com.xwiki.admintools.health.XWikiVersions
-
- All Implemented Interfaces:
Serializable,Comparable<XWikiVersions>
@Unstable public enum XWikiVersions extends Enum<XWikiVersions>
Main XWiki versions.- Since:
- 1.0-rc-1
- Version:
- $Id$
-
-
Enum Constant Summary
Enum Constants Enum Constant Description XWIKI_11_3XWiki version 11.3.0.XWIKI_14_0XWiki version 14.0.0.XWIKI_14_10_9XWiki version 14.10.9.XWIKI_15_3XWiki version 15.3.0.XWIKI_16_0XWiki version 16.0.0.XWIKI_17_0XWiki version 17.0.0.XWIKI_8_1XWiki version 8.1.0.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetVersion()Get the XWiki version represented by the enum value.static XWikiVersionsvalueOf(String name)Returns the enum constant of this type with the specified name.static XWikiVersions[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
XWIKI_8_1
public static final XWikiVersions XWIKI_8_1
XWiki version 8.1.0.
-
XWIKI_11_3
public static final XWikiVersions XWIKI_11_3
XWiki version 11.3.0.
-
XWIKI_14_0
public static final XWikiVersions XWIKI_14_0
XWiki version 14.0.0.
-
XWIKI_14_10_9
public static final XWikiVersions XWIKI_14_10_9
XWiki version 14.10.9.
-
XWIKI_15_3
public static final XWikiVersions XWIKI_15_3
XWiki version 15.3.0.
-
XWIKI_16_0
public static final XWikiVersions XWIKI_16_0
XWiki version 16.0.0.
-
XWIKI_17_0
public static final XWikiVersions XWIKI_17_0
XWiki version 17.0.0.
-
-
Method Detail
-
values
public static XWikiVersions[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (XWikiVersions c : XWikiVersions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XWikiVersions valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getVersion
public String getVersion()
Get the XWiki version represented by the enum value.- Returns:
- the version represented by the enum value.
-
-