com.highdeal.pnr.hci
Enum TierTableOutAttributeModel.ComputationMode

java.lang.Object
  extended by java.lang.Enum<TierTableOutAttributeModel.ComputationMode>
      extended by com.highdeal.pnr.hci.TierTableOutAttributeModel.ComputationMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TierTableOutAttributeModel.ComputationMode>
Enclosing class:
TierTableOutAttributeModel

public static enum TierTableOutAttributeModel.ComputationMode
extends java.lang.Enum<TierTableOutAttributeModel.ComputationMode>


Enum Constant Summary
CUMULATIVE_LINEAR
          This type is used to indicate that the number value returned is the sum of all the linear values in ranges before the range in which is the input property is, with the prorated value for the range of the input property.
CUMULATIVE_NON_LINEAR
          This type is used to indicate that the number value returned is the sum of the all the values in the ranges before the range in which is the input property is.
SINGLE_LINEAR
          This type is used to indicate that the number value returned is the value matching the range in which the input value is.
SINGLE_NON_LINEAR
          This type is used to indicate that the number value returned is the value matching the range in which the input value is.
UNSET
          This key is used to indicate that calculation mode is not set.
 
Method Summary
 int getCode()
           
static TierTableOutAttributeModel.ComputationMode getFromCode(int code)
           
 java.lang.String getName()
           
static TierTableOutAttributeModel.ComputationMode parse(java.lang.String name)
           
static TierTableOutAttributeModel.ComputationMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TierTableOutAttributeModel.ComputationMode[] 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

SINGLE_NON_LINEAR

public static final TierTableOutAttributeModel.ComputationMode SINGLE_NON_LINEAR
This type is used to indicate that the number value returned is the value matching the range in which the input value is.


SINGLE_LINEAR

public static final TierTableOutAttributeModel.ComputationMode SINGLE_LINEAR
This type is used to indicate that the number value returned is the value matching the range in which the input value is. This value is then multiplied by the input value minus the lower range, or 0 if no lower range is specified.


CUMULATIVE_NON_LINEAR

public static final TierTableOutAttributeModel.ComputationMode CUMULATIVE_NON_LINEAR
This type is used to indicate that the number value returned is the sum of the all the values in the ranges before the range in which is the input property is.


CUMULATIVE_LINEAR

public static final TierTableOutAttributeModel.ComputationMode CUMULATIVE_LINEAR
This type is used to indicate that the number value returned is the sum of all the linear values in ranges before the range in which is the input property is, with the prorated value for the range of the input property.


UNSET

public static final TierTableOutAttributeModel.ComputationMode UNSET
This key is used to indicate that calculation mode is not set. (for non number attribute only)

Method Detail

values

public static TierTableOutAttributeModel.ComputationMode[] 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 (TierTableOutAttributeModel.ComputationMode c : TierTableOutAttributeModel.ComputationMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TierTableOutAttributeModel.ComputationMode 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

getName

public java.lang.String getName()

getCode

public int getCode()

parse

public static TierTableOutAttributeModel.ComputationMode parse(java.lang.String name)

getFromCode

public static TierTableOutAttributeModel.ComputationMode getFromCode(int code)

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)