/** Class SortFilterStub
 *
 * Stub
 *
 * @author Chris Kern
 * @author Erin Nichols
 * @author Joe Simonson
 * @version 1.0 of Oct 1999
 */

public class SortFilterStub 
    
    implements SortFilter {

    /*+--------------+
     *|    Fields    |
     *+--------------+
     */

    /** The rule set to sort the objects by */
    protected Rule[] sortBy;

    /*+--------------+
     *| Constructors |
     *+--------------+
     */

    /** Null constructor */
    public void SortFilterStub() {

    }

    /** Full constructor */
    public void SortFilterStub(Rule[] sorters) {

        this.sortBy = sorters;

    }

    /*+-----------+
     *|  Methods  |
     *+-----------+
     */
    
    /** Extract the list of rules. */
    public Rule[] getSortBy() {

        return this.sortBy;

    }

    /** Set the list of rules. */
    public void setSortBy(Rule[] newRules) {

        this.sortBy = newRules;

    }

    /** Purpose       - Return the list of rules as a string
     * Parameters     - none
     * Preconditions  - none
     * Postconditions - No fields are changed.
     * Produces       - A string containing all of the rules to sort by.
     * Problems       - none
     */

    public String toString() {

        return "Hello!";

    }

    /** Purpose       - Returns a sorted messagelist, given an unsorted message list, by the rule set.
     * Parameters     - A MessageInfoList.
     * Preconditions  - listOfMessages is a valid MessageInfoList.
     * Postconditions - No fields are altered.
     * Produces       - A list of messages sorted according to the rule set.
     * Problems       - none
     */

    public MessageInfoListStub sort(MessageInfoListStub listOfMessage) {

        return new MessageInfoListStub();
        

    }

} // Class SortFilter

