KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sync4j > server > engine > Sync4jOperationStatus


1 /**
2  * Copyright (C) 2003-2005 Funambol
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18 package sync4j.server.engine;
19
20 import sync4j.framework.core.ModificationCommand;
21 import sync4j.framework.engine.SyncOperationStatus;
22 import sync4j.framework.engine.SyncOperation;
23 import sync4j.framework.engine.source.SyncSource;
24
25 /**
26  * This class represents the status of a modification command excecuted by Sync4j.
27  * The main difference between this and a normal <i>SyncoperationStatus</i> is
28  * that a <i>Sync4jOperationStatus</i> is associated to a SyncML command (such as
29  * &lt;Add&gt;, &lt;Delete&gt;, etc).
30  *
31  * @author Stefano Fornari @ Funambol
32  *
33  * @version $Id: Sync4jOperationStatus.java,v 1.5 2005/03/02 20:57:39 harrie Exp $
34  */

35 public class Sync4jOperationStatus extends SyncOperationStatus {
36     
37     // -------------------------------------------------------------- Properties
38

39     /**
40      * The command this status related to
41      */

42     protected ModificationCommand cmd = null;
43     
44     /** Getter for property cmd.
45      * @return Value of property cmd.
46      *
47      */

48     public ModificationCommand getCmd() {
49         return cmd;
50     }
51     
52     /**
53      * Setter for property cmd.
54      *
55      * @param cmd the cmd
56      */

57     public void setCommand(ModificationCommand cmd) {
58         this.cmd = cmd;
59     }
60     
61     /** Creates a new instance of Sync4jOperationStatus */
62     public Sync4jOperationStatus(SyncOperation operation ,
63                                  SyncSource syncSource,
64                                  ModificationCommand cmd ) {
65         super(operation, syncSource);
66         this.cmd = cmd;
67     }
68     
69     /** Creates a new instance of Sync4jOperationStatus */
70     public Sync4jOperationStatus(SyncOperation operation ,
71                                  SyncSource syncSource) {
72         this(operation, syncSource, null);
73     }
74 }
Popular Tags