KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > entities > management > impl > simple > ContentTypeDefinitionImpl


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.management.impl.simple;
25
26 import java.util.Collection JavaDoc;
27
28 import org.infoglue.cms.entities.kernel.BaseEntityVO;
29 import org.infoglue.cms.entities.management.ContentTypeDefinition;
30 import org.infoglue.cms.entities.management.ContentTypeDefinitionVO;
31 import org.infoglue.cms.exception.ConstraintException;
32
33 public class ContentTypeDefinitionImpl implements ContentTypeDefinition
34 {
35     private ContentTypeDefinitionVO valueObject = new ContentTypeDefinitionVO();
36     private Collection JavaDoc contents;
37     
38     /**
39      * @see org.infoglue.cms.entities.kernel.BaseEntity#getVO()
40      */

41     public BaseEntityVO getVO() {
42         return (BaseEntityVO) getValueObject();
43     }
44
45     /**
46      * @see org.infoglue.cms.entities.kernel.BaseEntity#setVO(BaseEntityVO)
47      */

48     public void setVO(BaseEntityVO valueObject) {
49         setValueObject((ContentTypeDefinitionVO) valueObject);
50     }
51  
52     /**
53      * @see org.infoglue.cms.entities.kernel.BaseEntity#getId()
54      */

55     public Integer JavaDoc getId() {
56         return getContentTypeDefinitionId();
57     }
58     
59     public Object JavaDoc getIdAsObject()
60     {
61         return getId();
62     }
63
64      
65     public ContentTypeDefinitionVO getValueObject()
66     {
67         return this.valueObject;
68     }
69
70         
71     public void setValueObject(ContentTypeDefinitionVO valueObject)
72     {
73         this.valueObject = valueObject;
74     }
75
76     
77     
78     public java.lang.Integer JavaDoc getContentTypeDefinitionId()
79     {
80         return this.valueObject.getContentTypeDefinitionId();
81     }
82             
83     public void setContentTypeDefinitionId(java.lang.Integer JavaDoc contentTypeDefinitionId)
84     {
85         this.valueObject.setContentTypeDefinitionId(contentTypeDefinitionId);
86     }
87
88     public java.lang.String JavaDoc getName()
89     {
90         return this.valueObject.getName();
91     }
92             
93     public void setName(java.lang.String JavaDoc name)
94     {
95         this.valueObject.setName(name);
96     }
97       
98     public java.lang.String JavaDoc getSchemaValue()
99     {
100         return this.valueObject.getSchemaValue();
101     }
102             
103     public void setSchemaValue(java.lang.String JavaDoc schemaValue)
104     {
105         this.valueObject.setSchemaValue(schemaValue);
106     }
107
108     public Integer JavaDoc getType()
109     {
110         return this.valueObject.getType();
111     }
112
113     public void setType(Integer JavaDoc type) throws ConstraintException
114     {
115         this.valueObject.setType(type);
116     }
117     
118     public Collection JavaDoc getContents()
119     {
120         return this.contents;
121     }
122     
123     public void setContents(Collection JavaDoc contents)
124     {
125         this.contents = contents;
126     }
127     
128 }
129
Popular Tags