Enum WSRPVersionFromTo

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<WSRPVersionFromTo>

    public enum WSRPVersionFromTo
    extends java.lang.Enum<WSRPVersionFromTo>
    Enum that holds values from ProducerVersion 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) $
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      Both
      Equivalent of ProducerVersion.BOTH
      Version1
      Equivalent of ProducerVersion.VERSION1
      Version2
      Equivalent of ProducerVersion.VERSION2
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static WSRPVersionFromTo getFromValue​(java.lang.String value)
      Returns a WSRPVersionFromTo which contains the same value of value.
      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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • Both

        public static final WSRPVersionFromTo Both
        Equivalent of ProducerVersion.BOTH
        Since:
        5.5.0
      • Version1

        public static final WSRPVersionFromTo Version1
        Equivalent of ProducerVersion.VERSION1
        Since:
        5.5.0
      • Version2

        public static final WSRPVersionFromTo Version2
        Equivalent of ProducerVersion.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 name
        java.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 a WSRPVersionFromTo which contains the same value of value. If there isn't such constant, a null reference is returned.
        Parameters:
        value - A comparison value to get a WSRPVersionFromTo from.
        Returns:
        A WSRPVersionFromTo or a null reference if there isn't a constant with the same value of value.
        Throws:
        java.lang.IllegalArgumentException
        Since:
        5.5.0