File Source: StaticThemeTemplate.java
/*
P/P * Method: org.apache.roller.weblogger.pojos.StaticThemeTemplate__static_init
*/
1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. The ASF licenses this file to You
4 * under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License. For additional information regarding
15 * copyright in this work, please see the NOTICE file in the top level
16 * directory of this distribution.
17 */
18
19 package org.apache.roller.weblogger.pojos;
20
21 import java.io.Serializable;
22 import java.util.Date;
23
24
25 /**
26 * Represents a simple static Template.
27 *
28 * This template is not persisted or managed in any way, this class is here
29 * mainly as a wrapper so that we can represent our static template files as
30 * an object.
31 */
32 public class StaticThemeTemplate implements ThemeTemplate, Serializable {
33
34 private String id = null;
35 private String name = null;
36 private String description = null;
37 private String action = null;
38 private String link = null;
39 private String contents = null;
40 private boolean hidden = false;
41 private boolean navbar = false;
42 private Date lastModified = new Date();
43 private String templateLanguage = null;
44 private String outputContentType = null;
45 private String decoratorName = null;
46 private ThemeTemplate decorator = null;
47
48
/*
P/P * Method: void org.apache.roller.weblogger.pojos.StaticThemeTemplate(String, String)
*
* Postconditions:
* this.action == null
* this.contents == null
* this.decorator == null
* this.decoratorName == null
* this.outputContentType == null
* this.description == id
* init'ed(this.description)
* this.id == this.description
* this.link == this.description
* this.name == this.description
* ...
*/
49 public StaticThemeTemplate(String id, String lang) {
50 this.id = id;
51 this.name = id;
52 this.description = id;
53 this.link = id;
54 this.templateLanguage = lang;
55 }
56
57
58 public String getId() {
/*
P/P * Method: String getId()
*
* Preconditions:
* init'ed(this.id)
*
* Postconditions:
* return_value == this.id
* init'ed(return_value)
*/
59 return id;
60 }
61
62 public void setId(String id) {
/*
P/P * Method: void setId(String)
*
* Postconditions:
* this.id == id
* init'ed(this.id)
*/
63 this.id = id;
64 }
65
66 public String getName() {
/*
P/P * Method: String getName()
*
* Preconditions:
* init'ed(this.name)
*
* Postconditions:
* return_value == this.name
* init'ed(return_value)
*/
67 return name;
68 }
69
70 public void setName(String name) {
/*
P/P * Method: void setName(String)
*
* Postconditions:
* this.name == name
* init'ed(this.name)
*/
71 this.name = name;
72 }
73
74 public String getDescription() {
/*
P/P * Method: String getDescription()
*
* Preconditions:
* init'ed(this.description)
*
* Postconditions:
* return_value == this.description
* init'ed(return_value)
*/
75 return description;
76 }
77
78 public void setDescription(String description) {
/*
P/P * Method: void setDescription(String)
*
* Postconditions:
* this.description == description
* init'ed(this.description)
*/
79 this.description = description;
80 }
81
82 public Date getLastModified() {
/*
P/P * Method: Date getLastModified()
*
* Preconditions:
* init'ed(this.lastModified)
*
* Postconditions:
* return_value == this.lastModified
* init'ed(return_value)
*/
83 return lastModified;
84 }
85
86 public void setLastModified(Date lastModified) {
/*
P/P * Method: void setLastModified(Date)
*
* Postconditions:
* this.lastModified == lastModified
* init'ed(this.lastModified)
*/
87 this.lastModified = lastModified;
88 }
89
90 public String getTemplateLanguage() {
/*
P/P * Method: String getTemplateLanguage()
*
* Preconditions:
* init'ed(this.templateLanguage)
*
* Postconditions:
* return_value == this.templateLanguage
* init'ed(return_value)
*/
91 return templateLanguage;
92 }
93
94 public void setTemplateLanguage(String templateLanguage) {
/*
P/P * Method: void setTemplateLanguage(String)
*
* Postconditions:
* this.templateLanguage == templateLanguage
* init'ed(this.templateLanguage)
*/
95 this.templateLanguage = templateLanguage;
96 }
97
98 public String getOutputContentType() {
/*
P/P * Method: String getOutputContentType()
*
* Preconditions:
* init'ed(this.outputContentType)
*
* Postconditions:
* return_value == this.outputContentType
* init'ed(return_value)
*/
99 return outputContentType;
100 }
101
102 public void setOutputContentType(String outputContentType) {
/*
P/P * Method: void setOutputContentType(String)
*
* Postconditions:
* this.outputContentType == outputContentType
* init'ed(this.outputContentType)
*/
103 this.outputContentType = outputContentType;
104 }
105
106 public String getAction() {
/*
P/P * Method: String getAction()
*
* Preconditions:
* init'ed(this.action)
*
* Postconditions:
* return_value == this.action
* init'ed(return_value)
*/
107 return action;
108 }
109
110 public void setAction(String action) {
/*
P/P * Method: void setAction(String)
*
* Postconditions:
* this.action == action
* init'ed(this.action)
*/
111 this.action = action;
112 }
113
114 public String getLink() {
/*
P/P * Method: String getLink()
*
* Preconditions:
* init'ed(this.link)
*
* Postconditions:
* return_value == this.link
* init'ed(return_value)
*/
115 return link;
116 }
117
118 public void setLink(String link) {
/*
P/P * Method: void setLink(String)
*
* Postconditions:
* this.link == link
* init'ed(this.link)
*/
119 this.link = link;
120 }
121
122 public boolean isHidden() {
/*
P/P * Method: bool isHidden()
*
* Preconditions:
* init'ed(this.hidden)
*
* Postconditions:
* return_value == this.hidden
* init'ed(return_value)
*/
123 return hidden;
124 }
125
126 public void setHidden(boolean hidden) {
/*
P/P * Method: void setHidden(bool)
*
* Postconditions:
* this.hidden == hidden
* init'ed(this.hidden)
*/
127 this.hidden = hidden;
128 }
129
130 public boolean isNavbar() {
/*
P/P * Method: bool isNavbar()
*
* Preconditions:
* init'ed(this.navbar)
*
* Postconditions:
* return_value == this.navbar
* init'ed(return_value)
*/
131 return navbar;
132 }
133
134 public void setNavbar(boolean navbar) {
/*
P/P * Method: void setNavbar(bool)
*
* Postconditions:
* this.navbar == navbar
* init'ed(this.navbar)
*/
135 this.navbar = navbar;
136 }
137
138 public ThemeTemplate getDecorator() {
/*
P/P * Method: ThemeTemplate getDecorator()
*
* Preconditions:
* init'ed(this.decorator)
*
* Postconditions:
* return_value == this.decorator
* init'ed(return_value)
*/
139 return decorator;
140 }
141
142 public void setDecorator(ThemeTemplate decorator) {
/*
P/P * Method: void setDecorator(ThemeTemplate)
*
* Postconditions:
* this.decorator == decorator
* init'ed(this.decorator)
*/
143 this.decorator = decorator;
144 }
145
146 public String getContents() {
/*
P/P * Method: String getContents()
*
* Preconditions:
* init'ed(this.contents)
*
* Postconditions:
* return_value == this.contents
* init'ed(return_value)
*/
147 return contents;
148 }
149
150 public void setContents(String contents) {
/*
P/P * Method: void setContents(String)
*
* Postconditions:
* this.contents == contents
* init'ed(this.contents)
*/
151 this.contents = contents;
152 }
153
154 public String getDecoratorName() {
/*
P/P * Method: String getDecoratorName()
*
* Preconditions:
* init'ed(this.decoratorName)
*
* Postconditions:
* return_value == this.decoratorName
* init'ed(return_value)
*/
155 return decoratorName;
156 }
157
158 public void setDecoratorName(String decoratorName) {
/*
P/P * Method: void setDecoratorName(String)
*
* Postconditions:
* this.decoratorName == decoratorName
* init'ed(this.decoratorName)
*/
159 this.decoratorName = decoratorName;
160 }
161
162 }
SofCheck Inspector Build Version : 2.18479
| StaticThemeTemplate.java |
2009-Jan-02 14:25:32 |
| StaticThemeTemplate.class |
2009-Sep-04 03:12:32 |