//# 0 errors, 30 messages
//#
/*
    //#Theme.java:1:1: class: org.apache.roller.weblogger.pojos.Theme
    //#Theme.java:1:1: method: org.apache.roller.weblogger.pojos.Theme.org.apache.roller.weblogger.pojos.Theme__static_init
 * Licensed to the Apache Software Foundation (ASF) under one or more
 *  contributor license agreements.  The ASF licenses this file to You
 * under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.  For additional information regarding
 * copyright in this work, please see the NOTICE file in the top level
 * directory of this distribution.
 */

package org.apache.roller.weblogger.pojos;

import java.util.Date;
import java.util.List;
import org.apache.roller.weblogger.WebloggerException;


/**
 * A Theme represents the set of components which are used to generate the
 * web design for a weblog along with some metadata like a name, etc.
 */
public interface Theme {
    
    /**
     * A unique identifier for this Theme.
     */
    public String getId();
    
    
    /**
     * A common or display name for this Theme.
     */
    public String getName();
    
    
    /**
     * A description of the Theme.
     */
    public String getDescription();
    
    
    /**
     * The last modification date of the Theme.
     */
    public Date getLastModified();
    
    
    /**
     * Is the Theme enable for use?
     */
    public boolean isEnabled();
    
    
    /**
     * Get the list of all templates associated with this Theme.
     */
    public List getTemplates() throws WebloggerException;
    
    
    /**
     * Lookup the stylesheet template for the Theme.
     */
    public ThemeTemplate getStylesheet() throws WebloggerException;
    
    
    /**
     * Lookup the default template for the Theme.
     */
    public ThemeTemplate getDefaultTemplate() throws WebloggerException;
    
    
    /**
     * Lookup a template by action.
     * Returns null if the template cannot be found.
     */
    public ThemeTemplate getTemplateByAction(String action) throws WebloggerException;
    
    
    /**
     * Lookup a template by name.
     * Returns null if the template cannot be found.
     */
    public ThemeTemplate getTemplateByName(String name) throws WebloggerException;
    
    
    /**
     * Lookup a template by link.
     * Returns null if the template cannot be found.
     */
    public ThemeTemplate getTemplateByLink(String link) throws WebloggerException;
    
    
    /**
     * Lookup a resource by path.
     * Returns null if the resource cannot be found.
     */
    public ThemeResource getResource(String path);
    
}
    //#output(org.apache.roller.weblogger.pojos.Theme__static_init): __Descendant_Table[org/apache/roller/weblogger/pojos/Theme]
    //#output(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getDefaultTemplate()Lorg/apache/roller/weblogger/pojos/ThemeTemplate;
    //#output(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getDescription()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getId()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getLastModified()Ljava/util/Date;
    //#output(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getName()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getResource(Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/ThemeResource;
    //#output(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getStylesheet()Lorg/apache/roller/weblogger/pojos/ThemeTemplate;
    //#output(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getTemplateByAction(Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/ThemeTemplate;
    //#output(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getTemplateByLink(Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/ThemeTemplate;
    //#output(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getTemplateByName(Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/ThemeTemplate;
    //#output(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getTemplates()Ljava/util/List;
    //#output(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.isEnabled()Z
    //#post(org.apache.roller.weblogger.pojos.Theme__static_init): __Descendant_Table[org/apache/roller/weblogger/pojos/Theme] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getDefaultTemplate()Lorg/apache/roller/weblogger/pojos/ThemeTemplate; == &getDefaultTemplate
    //#post(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getDescription()Ljava/lang/String; == &getDescription
    //#post(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getId()Ljava/lang/String; == &getId
    //#post(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getLastModified()Ljava/util/Date; == &getLastModified
    //#post(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getName()Ljava/lang/String; == &getName
    //#post(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getResource(Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/ThemeResource; == &getResource
    //#post(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getStylesheet()Lorg/apache/roller/weblogger/pojos/ThemeTemplate; == &getStylesheet
    //#post(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getTemplateByAction(Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/ThemeTemplate; == &getTemplateByAction
    //#post(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getTemplateByLink(Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/ThemeTemplate; == &getTemplateByLink
    //#post(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getTemplateByName(Ljava/lang/String;)Lorg/apache/roller/weblogger/pojos/ThemeTemplate; == &getTemplateByName
    //#post(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.getTemplates()Ljava/util/List; == &getTemplates
    //#post(org.apache.roller.weblogger.pojos.Theme__static_init): __Dispatch_Table.isEnabled()Z == &isEnabled
    //#Theme.java:: end of method: org.apache.roller.weblogger.pojos.Theme.org.apache.roller.weblogger.pojos.Theme__static_init
    //#Theme.java:: end of class: org.apache.roller.weblogger.pojos.Theme
