KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portal > model > Body


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.portal.model;
6 /**
7  * May 15, 2004
8  * @author: Tuan Nguyen
9  * @email: tuan08@users.sourceforge.net
10  * @version: $Id: Body.java,v 1.3 2004/06/26 20:00:10 tuan08 Exp $
11  **/

12 public class Body extends Component {
13   final static public String JavaDoc PAGE_NODE_TYPE = "page-node" ;
14   
15   private String JavaDoc componentType ;
16   private String JavaDoc componentId ;
17   
18   public Body() {
19     setId("body") ;
20   }
21   
22   public String JavaDoc getComponentId() { return componentId ;}
23   public void setComponentId(String JavaDoc s) { componentId = s ; }
24   
25   public String JavaDoc getComponentType() { return componentType ;}
26   public void setComponentType(String JavaDoc s) { componentType = s ; }
27   
28   public Component softCloneObject() {
29     Body body = new Body() ;
30     body.copyBasicProperties(this) ;
31     setComponentType(componentType) ;
32     setComponentId(componentId) ;
33     return body ;
34   }
35 }
Popular Tags