File Source: WeblogTheme.java

         /* 
    P/P   *  Method: org.apache.roller.weblogger.pojos.WeblogTheme__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  
    23  
    24  /**
    25   * A Theme which is specifically tied to a given weblog.
    26   *
    27   * A WeblogTheme is what is used throughout the rendering process to do the
    28   * rendering for a given weblog design.
    29   */
    30  public abstract class WeblogTheme implements Theme, Serializable {
    31      
    32      // this is the name that will be used to identify a user customized theme
    33      public static final String CUSTOM = "custom";
    34      
    35      protected Weblog weblog = null;
    36      
    37      
             /* 
    P/P       *  Method: void org.apache.roller.weblogger.pojos.WeblogTheme(Weblog)
              * 
              *  Postconditions:
              *    this.weblog == weblog
              *    init'ed(this.weblog)
              */
    38      public WeblogTheme(Weblog weblog) {
    39          this.weblog = weblog;
    40      }
    41      
    42      
    43      public Weblog getWeblog() {
                 /* 
    P/P           *  Method: Weblog getWeblog()
                  * 
                  *  Preconditions:
                  *    init'ed(this.weblog)
                  * 
                  *  Postconditions:
                  *    return_value == this.weblog
                  *    init'ed(return_value)
                  */
    44          return this.weblog;
    45      }
    46      
    47  }








SofCheck Inspector Build Version : 2.18479
WeblogTheme.java 2009-Jan-02 14:25:24
WeblogTheme.class 2009-Sep-04 03:12:29