KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > entities > workflow > impl > simple > ConsequenceImpl


1 /* ===============================================================================
2  *
3  * Part of the InfoGlue Content Management Platform (www.infoglue.org)
4  *
5  * ===============================================================================
6  *
7  * Copyright (C)
8  *
9  * This program is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU General Public License version 2, as published by the
11  * Free Software Foundation. See the file LICENSE.html for more information.
12  *
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY, including the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along with
18  * this program; if not, write to the Free Software Foundation, Inc. / 59 Temple
19  * Place, Suite 330 / Boston, MA 02111-1307 / USA.
20  *
21  * ===============================================================================
22  */

23
24 package org.infoglue.cms.entities.workflow.impl.simple;
25
26 import org.infoglue.cms.entities.kernel.BaseEntityVO;
27 import org.infoglue.cms.entities.workflow.Consequence;
28 import org.infoglue.cms.entities.workflow.ConsequenceVO;
29
30 public class ConsequenceImpl implements Consequence
31 {
32     private ConsequenceVO valueObject = new ConsequenceVO();
33
34
35     public Integer JavaDoc getId()
36     {
37         return this.getConsequenceId();
38     }
39     
40     public Object JavaDoc getIdAsObject()
41     {
42         return getId();
43     }
44
45     
46     /**
47      * @see org.infoglue.cms.entities.kernel.BaseEntity#getVO()
48      */

49     public BaseEntityVO getVO()
50     {
51         return (BaseEntityVO) getValueObject();
52     }
53     /**
54      * @see org.infoglue.cms.entities.kernel.BaseEntity#setVO(BaseEntityVO)
55      */

56     public void setVO(BaseEntityVO valueObject)
57     {
58         setValueObject((ConsequenceVO) valueObject);
59     }
60
61      
62     public ConsequenceVO getValueObject()
63     {
64         return this.valueObject;
65     }
66         
67     public void setValueObject(ConsequenceVO valueObject)
68     {
69         this.valueObject = valueObject;
70     }
71
72     private org.infoglue.cms.entities.workflow.impl.simple.ConsequenceDefinitionImpl consequenceDefinition;
73     private org.infoglue.cms.entities.workflow.impl.simple.ActionImpl action;
74   
75     
76     public java.lang.Integer JavaDoc getConsequenceId()
77     {
78         return this.valueObject.getConsequenceId();
79     }
80             
81     public void setConsequenceId(java.lang.Integer JavaDoc consequenceId)
82     {
83         this.valueObject.setConsequenceId(consequenceId);
84     }
85       
86     public org.infoglue.cms.entities.workflow.impl.simple.ConsequenceDefinitionImpl getConsequenceDefinition()
87     {
88         return this.consequenceDefinition;
89     }
90             
91     public void setConsequenceDefinition (org.infoglue.cms.entities.workflow.impl.simple.ConsequenceDefinitionImpl consequenceDefinition)
92     {
93         this.consequenceDefinition = consequenceDefinition;
94     }
95       
96     public org.infoglue.cms.entities.workflow.impl.simple.ActionImpl getAction()
97     {
98         return this.action;
99     }
100             
101     public void setAction (org.infoglue.cms.entities.workflow.impl.simple.ActionImpl action)
102     {
103         this.action = action;
104     }
105   }
106
Popular Tags