KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > update > internal > model > ConfigurationActivityModel


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.update.internal.model;
12  
13 import java.util.Date JavaDoc;
14
15 import org.eclipse.update.core.model.*;
16
17 public class ConfigurationActivityModel extends ModelObject{
18     
19     private String JavaDoc label;
20     private int action;
21     private Date JavaDoc date;
22     private int status;
23     private InstallConfigurationModel installConfiguration;
24     
25
26     /**
27      * Constructor for ConfigurationActivityModel.
28      */

29     public ConfigurationActivityModel() {
30         super();
31     }
32
33     /**
34      * @since 2.0
35      */

36     public int getAction() {
37         return action;
38     }
39
40     /**
41      * @since 2.0
42      */

43     public Date JavaDoc getDate() {
44         return date;
45     }
46
47     /**
48      * @since 2.0
49      */

50     public int getStatus() {
51         return status;
52     }
53
54     /**
55      * Sets the date.
56      * @param date The date to set
57      */

58     public void setDate(Date JavaDoc date) {
59         assertIsWriteable();
60         this.date = date;
61     }
62
63     /**
64      * Sets the status.
65      * @param status The status to set
66      */

67     public void setStatus(int status) {
68         assertIsWriteable();
69         this.status = status;
70     }
71
72     /**
73      * @since 2.0
74      */

75     public String JavaDoc getLabel() {
76         return label;
77     }
78
79     /**
80      * Sets the label.
81      * @param label The label to set
82      */

83     public void setLabel(String JavaDoc label) {
84         assertIsWriteable();
85         this.label = label;
86     }
87
88     /**
89      * Sets the action.
90      * @param action The action to set
91      */

92     public void setAction(int action) {
93         assertIsWriteable();
94         this.action = action;
95     }
96
97     /**
98      * Gets the installConfiguration.
99      * @return Returns a InstallConfigurationModel
100      */

101     public InstallConfigurationModel getInstallConfigurationModel() {
102         return installConfiguration;
103     }
104
105     /**
106      * Sets the installConfiguration.
107      * @param installConfiguration The installConfiguration to set
108      */

109     public void setInstallConfigurationModel(InstallConfigurationModel installConfiguration) {
110         assertIsWriteable();
111         this.installConfiguration = installConfiguration;
112     }
113
114 }
115
116
Popular Tags