KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > dotmarketing > portlets > structure > struts > RelationshipForm


1 package com.dotmarketing.portlets.structure.struts;
2
3 import org.apache.struts.validator.ValidatorForm;
4
5 import com.dotmarketing.util.UtilMethods;
6
7
8
9 public class RelationshipForm extends ValidatorForm
10 {
11     private static final long serialVersionUID = 1L;
12
13     private long inode;
14     private long parentStructureInode;
15     private long childStructureInode;
16     private String JavaDoc parentRelationName;
17     private String JavaDoc childRelationName;
18     private String JavaDoc relationTypeValue;
19     private int cardinality = com.dotmarketing.util.WebKeys.Relationship.RELATIONSHIP_CARDINALITY.MANY_TO_MANY.ordinal();
20     private boolean parentRequired;
21     private boolean childRequired;
22     
23     /**
24      * @return Returns the inode.
25      */

26     public long getInode() {
27         return inode;
28     }
29     /**
30      * @param inode The inode to set.
31      */

32     public void setInode(long inode) {
33         this.inode = inode;
34     }
35     /**
36      * @return Returns the cardinality.
37      */

38     public int getCardinality() {
39         return cardinality;
40     }
41     /**
42      * @param cardinality The cardinality to set.
43      */

44     public void setCardinality(int cardinality) {
45         this.cardinality = cardinality;
46     }
47     /**
48      * @return Returns the childRelationName.
49      */

50     public String JavaDoc getChildRelationName() {
51         return childRelationName;
52     }
53     /**
54      * @param childRelationName The childRelationName to set.
55      */

56     public void setChildRelationName(String JavaDoc childRelationName) {
57         this.childRelationName = UtilMethods.isSet(childRelationName)?childRelationName.trim():"";
58     }
59     /**
60      * @return Returns the childStructureInode.
61      */

62     public long getChildStructureInode() {
63         return childStructureInode;
64     }
65     /**
66      * @param childStructureInode The childStructureInode to set.
67      */

68     public void setChildStructureInode(long childStructureInode) {
69         this.childStructureInode = childStructureInode;
70     }
71     /**
72      * @return Returns the parentRelationName.
73      */

74     public String JavaDoc getParentRelationName() {
75         return parentRelationName;
76     }
77     /**
78      * @param parentRelationName The parentRelationName to set.
79      */

80     public void setParentRelationName(String JavaDoc parentRelationName) {
81         this.parentRelationName = UtilMethods.isSet(parentRelationName)?parentRelationName.trim():"";
82     }
83     /**
84      * @return Returns the parentStructureInode.
85      */

86     public long getParentStructureInode() {
87         return parentStructureInode;
88     }
89     /**
90      * @param parentStructureInode The parentStructureInode to set.
91      */

92     public void setParentStructureInode(long parentStructureInode) {
93         this.parentStructureInode = parentStructureInode;
94     }
95     /**
96      * @return Returns the relationTypeValue.
97      */

98     public String JavaDoc getRelationTypeValue() {
99         return relationTypeValue;
100     }
101     /**
102      * @param relationTypeValue The relationTypeValue to set.
103      */

104     public void setRelationTypeValue(String JavaDoc relationTypeValue) {
105         this.relationTypeValue = relationTypeValue;
106     }
107     public boolean isChildRequired() {
108         return childRequired;
109     }
110     public void setChildRequired(boolean childRequired) {
111         this.childRequired = childRequired;
112     }
113     public boolean isParentRequired() {
114         return parentRequired;
115     }
116     public void setParentRequired(boolean parentRequired) {
117         this.parentRequired = parentRequired;
118     }
119
120     
121 }
122
Popular Tags