Class AbstractTaskFilter

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractTaskFilter​(int contentRule, java.lang.String content)
      Default filter constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Vector filterTasks​(java.util.Vector tasks)
      Applies filter on given tasks and returns those tasks that satisfied filter criterion.
      java.lang.String getContent()
      Returns required content of appropriate task property.
      int getContentRule()
      Returns content rule of filter.
      java.util.Vector getContentRules()
      Returns all available content rules of filter.
      java.util.Vector getContentValues()
      Returns all available content values of filter.
      void setContent​(java.lang.String content)
      Sets required content of appropriate task property.
      void setContentRule​(int contentRule)
      Sets content rule of filter.
      java.lang.String toString()
      Returns name of filter as text.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AbstractTaskFilter

        public AbstractTaskFilter​(int contentRule,
                                  java.lang.String content)
        Default filter constructor.
        Parameters:
        contentRule - One of content rules determining allowed content.
        content - Required content that must comply with content rule.
    • Method Detail

      • setContentRule

        public void setContentRule​(int contentRule)
        Sets content rule of filter.
        Parameters:
        contentRule - New content rule.
      • setContent

        public void setContent​(java.lang.String content)
        Sets required content of appropriate task property.
        Parameters:
        content - New required content of appropriate task property.
      • getContentRule

        public int getContentRule()
        Returns content rule of filter.
        Returns:
        Content rule of filter.
      • getContentRules

        public java.util.Vector getContentRules()
        Returns all available content rules of filter.
        Returns:
        All content rules of filter.
      • getContent

        public java.lang.String getContent()
        Returns required content of appropriate task property.
        Returns:
        Required content of appropriate task property.
      • getContentValues

        public java.util.Vector getContentValues()
        Returns all available content values of filter.
        Returns:
        All content values of filter.
      • filterTasks

        public java.util.Vector filterTasks​(java.util.Vector tasks)
        Applies filter on given tasks and returns those tasks that satisfied filter criterion.
        Parameters:
        tasks - Vector of tasks to be filtered.
        Returns:
        Filtered tasks.
      • toString

        public java.lang.String toString()
        Returns name of filter as text.
        Overrides:
        toString in class java.lang.Object
        Returns:
        Name of filter as text.