Package lumis.service.wsrp.common
Enum WSRPVersionFromTo
- java.lang.Object
-
- java.lang.Enum<WSRPVersionFromTo>
-
- lumis.service.wsrp.common.WSRPVersionFromTo
-
- All Implemented Interfaces:
Serializable
,Comparable<WSRPVersionFromTo>
public enum WSRPVersionFromTo extends Enum<WSRPVersionFromTo>
Enum that holds values fromProducerVersion
to be shown in the interface.- Since:
- 5.5.0
- Version:
- $Revision: 12565 $ $Date: 2011-02-15 16:20:59 -0200 (Tue, 15 Feb 2011) $
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WSRPVersionFromTo
getFromValue(String value)
Returns aWSRPVersionFromTo
which contains the same value ofvalue
.String
getLocalizableName()
Returns this constant localizable string.String
getValue()
Returns this constant value.static WSRPVersionFromTo
valueOf(String name)
Returns the enum constant of this type with the specified name.static WSRPVersionFromTo[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Both
public static final WSRPVersionFromTo Both
Equivalent ofProducerVersion.BOTH
- Since:
- 5.5.0
-
Version1
public static final WSRPVersionFromTo Version1
Equivalent ofProducerVersion.VERSION1
- Since:
- 5.5.0
-
Version2
public static final WSRPVersionFromTo Version2
Equivalent ofProducerVersion.VERSION2
- Since:
- 5.5.0
-
-
Method Detail
-
values
public static WSRPVersionFromTo[] 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 (WSRPVersionFromTo c : WSRPVersionFromTo.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WSRPVersionFromTo 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
-
getValue
public String getValue()
Returns this constant value.- Returns:
- The value of this constant.
- Since:
- 5.5.0
-
getLocalizableName
public String getLocalizableName()
Returns this constant localizable string.- Returns:
- A localizable string.
- Since:
- 5.5.0
-
getFromValue
public static WSRPVersionFromTo getFromValue(String value) throws IllegalArgumentException
Returns aWSRPVersionFromTo
which contains the same value ofvalue
. If there isn't such constant, a null reference is returned.- Parameters:
value
- A comparison value to get aWSRPVersionFromTo
from.- Returns:
- A
WSRPVersionFromTo
or a null reference if there isn't a constant with the same value ofvalue
. - Throws:
IllegalArgumentException
- Since:
- 5.5.0
-
-