Project

General

Profile

« Previous | Next » 

Revision 7796

Added by Jing Tao almost 11 years ago

Add a new class variable - isArchived for class IndexEvent.

View differences:

IndexEvent.java
43 43
    private Date date = null;
44 44
    private Identifier pid = null;
45 45
    private String description = null;
46
    private boolean isArchived = false;
46 47
    
47 48
    
48
    
49

  
49 50
    /**
50 51
     * Get the type of the event.
51 52
     * @return the type of the event
......
109 110
    public void setDescription(String description) {
110 111
        this.description = description;
111 112
    }
113
    
114
    /**
115
     * If the event has been archived.
116
     * @return true if it has been archived; otherwise false.
117
     */
118
    public boolean isArchived() {
119
        return isArchived;
120
    }
121

  
122
    /**
123
     * Set the event to be archived
124
     * @param isArchived
125
     */
126
    public void setArchived(boolean isArchived) {
127
        this.isArchived = isArchived;
128
    }
112 129
}

Also available in: Unified diff