Enum ActivityItemCountingOptionType

  • All Implemented Interfaces:
    Serializable, Comparable<ActivityItemCountingOptionType>

    public enum ActivityItemCountingOptionType
    extends Enum<ActivityItemCountingOptionType>

    Java class for ActivityItemCountingOptionType.

    The following schema fragment specifies the expected content contained within this class.

     <simpleType name="ActivityItemCountingOptionType">
       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
         <enumeration value="always"/>
         <enumeration value="whenNotBucketed"/>
         <enumeration value="whenInRepository"/>
         <enumeration value="whenInRepositoryAndNotBucketed"/>
         <enumeration value="never"/>
       </restriction>
     </simpleType>
     
    • Enum Constant Detail

      • WHEN_NOT_BUCKETED

        public static final ActivityItemCountingOptionType WHEN_NOT_BUCKETED
        The activity counts the items only if it is not bucketed (i.e. does not support bucketing at all, or has a single "default" bucket only). The idea is that in this case the items count really matters in order to estimate the relative task progress.
      • WHEN_IN_REPOSITORY

        public static final ActivityItemCountingOptionType WHEN_IN_REPOSITORY
        The activity counts the items only if the item source resides in repository (the idea is that repository searches are faster than resource object searches).
      • WHEN_IN_REPOSITORY_AND_NOT_BUCKETED

        public static final ActivityItemCountingOptionType WHEN_IN_REPOSITORY_AND_NOT_BUCKETED
        The activity counts the items only if the item source resides in repository and the activity is not bucketed.
    • Method Detail

      • values

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

        public static ActivityItemCountingOptionType 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
      • value

        public String value()