com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class FilterCriteria



  • public class FilterCriteria
    extends Object

    Defines the criteria that tasks or resources must meet to be displayed in MSP view.

    • Constructor Summary

      Constructors 
      Constructor and Description
      FilterCriteria() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      List<FilterCriteria> getCriteriaRows()
      /**
      int getField()
      Gets a field Field to change.
      int getOperation()
      Specifies how the criterion established with FieldName, Test, and Value relates to other criteria in the filter.
      int getTest()
      Gets a type of comparison made between FieldName and Value that acts as selection criteria for the filter.
      Object[] getValues()
      Gets the object values to compare with the value of the field specified with FieldName.
      void setField(int value)
      Sets a field Field to change.
      void setOperation(int value)
      Specifies how the criterion established with FieldName, Test, and Value relates to other criteria in the filter.
      void setTest(int value)
      Sets a type of comparison made between FieldName and Value that acts as selection criteria for the filter.
      String toString()
      Gets a string representation of this criteria.
    • Constructor Detail

      • FilterCriteria

        public FilterCriteria()
    • Method Detail

      • getCriteriaRows

        public List<FilterCriteria> getCriteriaRows()
        /**

        Gets a list of child FilterCriteria rows. If the filter contains more than one criterion row then the effect of an And operator is that the criteria for both rows must be met for the task or resource to be displayed as a result of this filter. The effect of an Or operator is that the criteria for one or the other row must be met.

        Returns:
        a list of child rows.
      • getField

        public int getField()

        Gets a field Field to change.

        Returns:
        a field to change.
      • setField

        public void setField(int value)
        Sets a field Field to change.
        Parameters:
        value - a field to change.
      • getOperation

        public int getOperation()

        Specifies how the criterion established with FieldName, Test, and Value relates to other criteria in the filter.

        Returns:
        FilterOperation enumerated type value.
      • setOperation

        public void setOperation(int value)
        Specifies how the criterion established with FieldName, Test, and Value relates to other criteria in the filter.
        Parameters:
        value - FilterOperation enumerated type value.
      • getTest

        public int getTest()

        Gets a type of comparison made between FieldName and Value that acts as selection criteria for the filter. FilterComparisonType

        Returns:
        FilterComparisonType enumerated type value.
      • setTest

        public void setTest(int value)
        Sets a type of comparison made between FieldName and Value that acts as selection criteria for the filter.
        Parameters:
        value - FilterComparisonType enumerated type value.
      • getValues

        public Object[] getValues()

        Gets the object values to compare with the value of the field specified with FieldName.

        Returns:
        the object values to compare with the value of the field specified with FieldName.
      • toString

        public String toString()
        Gets a string representation of this criteria.
        Overrides:
        toString in class Object
        Returns:
        a string representation of this criteria.