Enum ApprovalState

    • Enum Constant Detail

      • NOT_APPROVED

        public static final ApprovalState NOT_APPROVED
        PriceList is in this state if all its PriceListItems are not approved. PriceListItem can be non approved also individually, so it can be also in this state.
      • PARTIALLY_APPROVED

        public static final ApprovalState PARTIALLY_APPROVED
        PriceGrid is in this state if some of PriceGridItems are approved some are not approved. Individual PriceGridItem cannot be in this state.
      • APPROVED

        public static final ApprovalState APPROVED
        PriceList is in this state if all its PriceListItems are approved. PriceListItem can be approved also individually, so it can be also in this state.
      • AUTO_APPROVED

        public static final ApprovalState AUTO_APPROVED
        PriceGrid items can be auto-approved
    • Method Detail

      • values

        public static ApprovalState[] 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 (ApprovalState c : ApprovalState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ApprovalState 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 name
        NullPointerException - if the argument is null