KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > data > fields > JahiaFieldSubDefinition


1 //
2
// JahiaFieldSubDefinition
3
// EV 25.11.2000
4
//
5
// getID
6
// getJahiaID
7
// getTemplateID
8
// getName
9
// getTitle
10
// getType
11
// getDefaultValue
12
//
13
// setID
14
// setTitle
15
// setType
16
// setDefaultValue
17
//
18

19 package org.jahia.data.fields;
20
21 import java.io.Serializable JavaDoc;
22
23
24
25 public class JahiaFieldSubDefinition implements Serializable JavaDoc {
26
27
28     private int ID;
29     private int fieldDefID;
30     private int pageDefID;
31     private String JavaDoc title;
32     private int type;
33     private String JavaDoc defaultValue;
34
35
36     /***
37         * constructor
38         * EV 25.11.2000
39         *
40         */

41     public JahiaFieldSubDefinition( int ID,
42                                         int fieldDefID,
43                                         int pageDefID,
44                                         String JavaDoc title,
45                                         int type,
46                                         String JavaDoc defaultValue )
47     {
48         this.ID = ID;
49         this.fieldDefID = fieldDefID;
50         this.pageDefID = pageDefID;
51         this.title = title;
52         this.type = type;
53         this.defaultValue = defaultValue;
54     } // end constructor
55

56
57     /**
58      * No arg constructor required for serialization support.
59      */

60     protected JahiaFieldSubDefinition() {
61
62     }
63
64     /***
65         * accessor methods
66         * EV 25.11.2000
67         *
68         */

69     public int getID() { return ID; }
70     public int getFieldDefID() { return fieldDefID; }
71     public int getPageDefID() { return pageDefID; }
72     public String JavaDoc getTitle() { return title; }
73     public int getType() { return type; }
74     public String JavaDoc getDefaultValue() { return defaultValue; }
75
76     public void setID( int ID ) { this.ID = ID; }
77     public void setFieldDefID(int id) { this.fieldDefID = id; }
78     public void setTitle( String JavaDoc value ) { this.title = value; }
79     public void setType( int value ) { this.type = value; }
80     public void setDefaultValue( String JavaDoc value ) { this.defaultValue = value; }
81     // end accessor methods
82

83
84
85     /**
86      * Return a string representation of the internal state.
87      *
88      * @return A string representation of this object.
89      */

90     public String JavaDoc toString ()
91     {
92         StringBuffer JavaDoc output = new StringBuffer JavaDoc ("Detail of fieldSubDef ["+getID()+"]\n");
93         output.append (" - id ["+Integer.toString (getID())+"]\n");
94         output.append (" - fieldDef ["+getFieldDefID()+"]\n");
95         output.append (" - pageDef ["+getPageDefID()+"]\n");
96         output.append (" - title ["+getTitle()+"]\n");
97         output.append (" - type ["+getType()+"]\n");
98         output.append (" - defaultValue ["+getDefaultValue()+"]\n");
99
100         return output.toString();
101     }
102
103
104 } // end JahiaFieldSubDefinition
105
Popular Tags