Package lumis.service.wsrp.common
Enum WSRPVersionFromTo
- java.lang.Object
-
- java.lang.Enum<WSRPVersionFromTo>
-
- lumis.service.wsrp.common.WSRPVersionFromTo
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<WSRPVersionFromTo>
public enum WSRPVersionFromTo extends java.lang.Enum<WSRPVersionFromTo>
Enum that holds values fromProducerVersion
to be shown in the interface.- Since:
- 5.5.0
- Version:
- $Revision$ $Date$
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WSRPVersionFromTo
getFromValue(java.lang.String value)
Returns aWSRPVersionFromTo
which contains the same value ofvalue
.java.lang.String
getLocalizableName()
Returns this constant localizable string.java.lang.String
getValue()
Returns this constant value.static WSRPVersionFromTo
valueOf(java.lang.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(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public java.lang.String getValue()
Returns this constant value.- Returns:
- The value of this constant.
- Since:
- 5.5.0
-
getLocalizableName
public java.lang.String getLocalizableName()
Returns this constant localizable string.- Returns:
- A localizable string.
- Since:
- 5.5.0
-
getFromValue
public static WSRPVersionFromTo getFromValue(java.lang.String value) throws java.lang.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:
java.lang.IllegalArgumentException
- Since:
- 5.5.0
-
-