File Source: StaticTemplate.java

         /* 
    P/P   *  Method: org.apache.roller.weblogger.pojos.StaticTemplate__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 StaticTemplate implements Template, Serializable {
    33      
    34      private String id = null;
    35      private String name = null;
    36      private String description = null;
    37      private Date lastModified = new Date();
    38      private String templateLanguage = null;
    39      private String  outputContentType = null;
    40      
    41      
             /* 
    P/P       *  Method: void org.apache.roller.weblogger.pojos.StaticTemplate(String, String)
              * 
              *  Postconditions:
              *    this.description == id
              *    init'ed(this.description)
              *    this.id == this.description
              *    this.name == this.description
              *    this.lastModified == &new Date(StaticTemplate#1)
              *    this.outputContentType == null
              *    this.templateLanguage == lang
              *    init'ed(this.templateLanguage)
              *    new Date(StaticTemplate#1) num objects == 1
              */
    42      public StaticTemplate(String id, String lang) {
    43          this.id = id;
    44          this.name = id;
    45          this.description = id;
    46          this.templateLanguage = lang;
    47      }
    48      
    49      
    50      public String getId() {
                 /* 
    P/P           *  Method: String getId()
                  * 
                  *  Preconditions:
                  *    init'ed(this.id)
                  * 
                  *  Postconditions:
                  *    return_value == this.id
                  *    init'ed(return_value)
                  */
    51          return id;
    52      }
    53  
    54      public void setId(String id) {
                 /* 
    P/P           *  Method: void setId(String)
                  * 
                  *  Postconditions:
                  *    this.id == id
                  *    init'ed(this.id)
                  */
    55          this.id = id;
    56      }
    57  
    58      public String getName() {
                 /* 
    P/P           *  Method: String getName()
                  * 
                  *  Preconditions:
                  *    init'ed(this.name)
                  * 
                  *  Postconditions:
                  *    return_value == this.name
                  *    init'ed(return_value)
                  */
    59          return name;
    60      }
    61  
    62      public void setName(String name) {
                 /* 
    P/P           *  Method: void setName(String)
                  * 
                  *  Postconditions:
                  *    this.name == name
                  *    init'ed(this.name)
                  */
    63          this.name = name;
    64      }
    65  
    66      public String getDescription() {
                 /* 
    P/P           *  Method: String getDescription()
                  * 
                  *  Preconditions:
                  *    init'ed(this.description)
                  * 
                  *  Postconditions:
                  *    return_value == this.description
                  *    init'ed(return_value)
                  */
    67          return description;
    68      }
    69  
    70      public void setDescription(String description) {
                 /* 
    P/P           *  Method: void setDescription(String)
                  * 
                  *  Postconditions:
                  *    this.description == description
                  *    init'ed(this.description)
                  */
    71          this.description = description;
    72      }
    73  
    74      public Date getLastModified() {
                 /* 
    P/P           *  Method: Date getLastModified()
                  * 
                  *  Preconditions:
                  *    init'ed(this.lastModified)
                  * 
                  *  Postconditions:
                  *    return_value == this.lastModified
                  *    init'ed(return_value)
                  */
    75          return lastModified;
    76      }
    77  
    78      public void setLastModified(Date lastModified) {
                 /* 
    P/P           *  Method: void setLastModified(Date)
                  * 
                  *  Postconditions:
                  *    this.lastModified == lastModified
                  *    init'ed(this.lastModified)
                  */
    79          this.lastModified = lastModified;
    80      }
    81  
    82      public String getTemplateLanguage() {
                 /* 
    P/P           *  Method: String getTemplateLanguage()
                  * 
                  *  Preconditions:
                  *    init'ed(this.templateLanguage)
                  * 
                  *  Postconditions:
                  *    return_value == this.templateLanguage
                  *    init'ed(return_value)
                  */
    83          return templateLanguage;
    84      }
    85  
    86      public void setTemplateLanguage(String templateLanguage) {
                 /* 
    P/P           *  Method: void setTemplateLanguage(String)
                  * 
                  *  Postconditions:
                  *    this.templateLanguage == templateLanguage
                  *    init'ed(this.templateLanguage)
                  */
    87          this.templateLanguage = templateLanguage;
    88      }
    89      
    90      public String getOutputContentType() {
                 /* 
    P/P           *  Method: String getOutputContentType()
                  * 
                  *  Preconditions:
                  *    init'ed(this.outputContentType)
                  * 
                  *  Postconditions:
                  *    return_value == this.outputContentType
                  *    init'ed(return_value)
                  */
    91          return outputContentType;
    92      }
    93  
    94      public void setOutputContentType(String outputContentType) {
                 /* 
    P/P           *  Method: void setOutputContentType(String)
                  * 
                  *  Postconditions:
                  *    this.outputContentType == outputContentType
                  *    init'ed(this.outputContentType)
                  */
    95          this.outputContentType = outputContentType;
    96      }
    97      
    98  }








SofCheck Inspector Build Version : 2.18479
StaticTemplate.java 2009-Jan-02 14:24:54
StaticTemplate.class 2009-Sep-04 03:12:32