KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > dotmarketing > portlets > entities > model > Entity


1 package com.dotmarketing.portlets.entities.model;
2
3 import java.io.Serializable JavaDoc;
4
5 import com.dotmarketing.beans.Inode;
6
7
8 public class Entity extends Inode implements Serializable JavaDoc {
9
10     private static final long serialVersionUID = 1L;
11
12     private String JavaDoc[] categories;
13
14     /** persistent field */
15     private String JavaDoc entityName;
16
17     /** default constructor */
18     public Entity() {
19         super.setType("entity");
20     }
21
22     /** minimal constructor */
23     public Entity(java.lang.String JavaDoc entityName) {
24         this.entityName = entityName;
25     }
26
27     public long getInode() {
28         return this.inode;
29     }
30
31     public void setInode(long inode) {
32         this.inode = inode;
33     }
34
35     /**
36      * Returns the entityName.
37      * @return String
38      */

39     public String JavaDoc getEntityName() {
40         return entityName;
41     }
42
43     /**
44      * Sets the entityName.
45      * @param entityName The entityName to set
46      */

47     public void setEntityName(String JavaDoc entityName) {
48         this.entityName = entityName;
49     }
50
51     /**
52      * Returns the categories.
53      * @return String[]
54      */

55     public String JavaDoc[] getCategories() {
56         return categories;
57     }
58
59     /**
60      * Sets the categories.
61      * @param categories The categories to set
62      */

63     public void setCategories(String JavaDoc[] categories) {
64         this.categories = categories;
65     }
66
67 }
68
Popular Tags