KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > data > templates > JahiaTemplateDef


1 //
2
// ____.
3
// __/\ ______| |__/\. _______
4
// __ .____| | \ | +----+ \
5
// _______| /--| | | - \ _ | : - \_________
6
// \\______: :---| : : | : | \________>
7
// |__\---\_____________:______: :____|____:_____\
8
// /_____|
9
//
10
// . . . i n j a h i a w e t r u s t . . .
11
//
12
//
13
//
14
// JahiaTemplateDef
15
//
16
// NK 16.01.2001
17
//
18
//
19

20 package org.jahia.data.templates;
21
22
23 /**
24  * Holds Informations about a Template Definition
25  *
26  * @author Khue ng
27  * @version 1.0
28  */

29 public class JahiaTemplateDef {
30
31    /** Name of the template **/
32    private String JavaDoc m_Name;
33    /** The filename of the template **/
34    private String JavaDoc m_Filename;
35    /** The display Name of the template **/
36    private String JavaDoc m_DisplayName;
37    /** If the template is visible **/
38    private boolean m_Visible;
39    /** Is a Home page template **/
40    private boolean m_IsHomePage;
41
42
43    /**
44     * Constructor
45     *
46     */

47     public JahiaTemplateDef (
48                                 String JavaDoc name,
49                                 String JavaDoc filename,
50                                 String JavaDoc displayName,
51                                 boolean visible,
52                                 boolean isHomePage
53                             )
54     {
55         m_Name = name;
56         m_Filename= filename;
57         m_DisplayName = displayName;
58         m_Visible = visible;
59         m_IsHomePage = isHomePage;
60     }
61
62    
63    /**
64     * Return the template name
65     *
66     * @return (String) the name of the template
67     */

68    public String JavaDoc getName(){
69       
70       return m_Name;
71    }
72
73
74    /**
75     * Set the name
76     * @param (String) the name of the template
77     */

78    public void setName(String JavaDoc name){
79       
80       m_Name = name;
81    }
82
83
84    /**
85     * Return the template filename
86     *
87     * @return (String) the name of the template filename
88     */

89    public String JavaDoc getFileName(){
90       
91       return m_Filename;
92    }
93     
94
95    /**
96     * Set the filename
97     * @param (String) the template filename
98     */

99    public void setFilename(String JavaDoc filename){
100       
101       m_Filename = filename;
102    }
103
104
105    /**
106     * Return the template dislay name
107     *
108     * @return (String) the name of the template display name
109     */

110    public String JavaDoc getDisplayName(){
111       
112       return m_DisplayName;
113    }
114
115
116    /**
117     * Set the display name
118     * @param (String) the template display name
119     */

120    public void setDisplayName(String JavaDoc displayName){
121       
122       m_DisplayName = displayName;
123    }
124
125    /**
126     * is the template visible to user ?
127     *
128     * @return (boolean) visible
129     */

130    public boolean isVisible(){
131       
132       return m_Visible;
133
134    }
135
136
137    /**
138     * Set template visible to user ?
139     *
140     * @param (boolean) visible status
141     */

142    public void setVisible(boolean visible){
143       
144       m_Visible = visible;
145
146    }
147
148
149    /**
150     * is the template a home page like template ?
151     *
152     * @return (boolean) is a home page like template
153     */

154    public boolean isHomePage(){
155       
156       return m_IsHomePage;
157
158    }
159
160
161    /**
162     * Set this template as a Home Page template like
163     *
164     * @param (boolean) home page like properties
165     */

166    public void setIsHomePage(boolean isHomePage){
167       
168       m_IsHomePage = isHomePage;
169
170    }
171
172     
173 } // end JahiaTemplateDef
174
Popular Tags