//# 0 errors, 88 messages
//#
/*
    //#filedaofactory.java:1:1: class: net.sourceforge.pebble.dao.file.FileDAOFactory
    //#filedaofactory.java:1:1: method: net.sourceforge.pebble.dao.file.FileDAOFactory.net.sourceforge.pebble.dao.file.FileDAOFactory__static_init
 * Copyright (c) 2003-2006, Simon Brown
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *
 *   - Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in
 *     the documentation and/or other materials provided with the
 *     distribution.
 *
 *   - Neither the name of Pebble nor the names of its contributors may
 *     be used to endorse or promote products derived from this software
 *     without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
package net.sourceforge.pebble.dao.file;

import net.sourceforge.pebble.dao.*;

/**
 * Represents a strategy used to load and store blog entries
 * in the filing system using an XML format.
 *
 * @author    Simon Brown
 */
public class FileDAOFactory extends DAOFactory {

  private BlogEntryDAO blogEntryDAO;
  private StaticPageDAO staticPageDAO;
  private CategoryDAO categoryDAO;
  private RefererFilterDAO refererFilterDAO;

  /**
   * Default, no args constructor.
   */
  public FileDAOFactory() {
    //#filedaofactory.java:52: method: void net.sourceforge.pebble.dao.file.FileDAOFactory.net.sourceforge.pebble.dao.file.FileDAOFactory()
    //#input(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this
    //#output(void net.sourceforge.pebble.dao.file.FileDAOFactory()): new FileBlogEntryDAO(FileDAOFactory#1) num objects
    //#output(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.blogEntryDAO.__Tag
    //#output(void net.sourceforge.pebble.dao.file.FileDAOFactory()): new FileCategoryDAO(FileDAOFactory#3) num objects
    //#output(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.categoryDAO.__Tag
    //#output(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.categoryDAO.jaxbContext
    //#output(void net.sourceforge.pebble.dao.file.FileDAOFactory()): new FileRefererFilterDAO(FileDAOFactory#4) num objects
    //#output(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.refererFilterDAO.__Tag
    //#output(void net.sourceforge.pebble.dao.file.FileDAOFactory()): new FileStaticPageDAO(FileDAOFactory#2) num objects
    //#output(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.staticPageDAO.__Tag
    //#output(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.staticPageDAO.jaxbContext
    //#output(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.blogEntryDAO
    //#output(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.categoryDAO
    //#output(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.refererFilterDAO
    //#output(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.staticPageDAO
    //#new obj(void net.sourceforge.pebble.dao.file.FileDAOFactory()): new FileBlogEntryDAO(FileDAOFactory#1)
    //#new obj(void net.sourceforge.pebble.dao.file.FileDAOFactory()): new FileCategoryDAO(FileDAOFactory#3)
    //#new obj(void net.sourceforge.pebble.dao.file.FileDAOFactory()): new FileRefererFilterDAO(FileDAOFactory#4)
    //#new obj(void net.sourceforge.pebble.dao.file.FileDAOFactory()): new FileStaticPageDAO(FileDAOFactory#2)
    //#post(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.blogEntryDAO == &new FileBlogEntryDAO(FileDAOFactory#1)
    //#post(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.categoryDAO == &new FileCategoryDAO(FileDAOFactory#3)
    //#post(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.refererFilterDAO == &new FileRefererFilterDAO(FileDAOFactory#4)
    //#post(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.staticPageDAO == &new FileStaticPageDAO(FileDAOFactory#2)
    //#post(void net.sourceforge.pebble.dao.file.FileDAOFactory()): new FileBlogEntryDAO(FileDAOFactory#1) num objects == 1
    //#post(void net.sourceforge.pebble.dao.file.FileDAOFactory()): new FileCategoryDAO(FileDAOFactory#3) num objects == 1
    //#post(void net.sourceforge.pebble.dao.file.FileDAOFactory()): new FileRefererFilterDAO(FileDAOFactory#4) num objects == 1
    //#post(void net.sourceforge.pebble.dao.file.FileDAOFactory()): new FileStaticPageDAO(FileDAOFactory#2) num objects == 1
    //#post(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.blogEntryDAO.__Tag == net/sourceforge/pebble/dao/file/FileBlogEntryDAO
    //#post(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.categoryDAO.__Tag == net/sourceforge/pebble/dao/file/FileCategoryDAO
    //#post(void net.sourceforge.pebble.dao.file.FileDAOFactory()): possibly_updated(this.categoryDAO.jaxbContext)
    //#post(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.refererFilterDAO.__Tag == net/sourceforge/pebble/dao/file/FileRefererFilterDAO
    //#post(void net.sourceforge.pebble.dao.file.FileDAOFactory()): this.staticPageDAO.__Tag == net/sourceforge/pebble/dao/file/FileStaticPageDAO
    //#post(void net.sourceforge.pebble.dao.file.FileDAOFactory()): possibly_updated(this.staticPageDAO.jaxbContext)
    //#unanalyzed(void net.sourceforge.pebble.dao.file.FileDAOFactory()): Effects-of-calling:java.lang.Object:getClass
    //#unanalyzed(void net.sourceforge.pebble.dao.file.FileDAOFactory()): Effects-of-calling:java.lang.Class:getPackage
    //#unanalyzed(void net.sourceforge.pebble.dao.file.FileDAOFactory()): Effects-of-calling:java.lang.Package:getName
    //#unanalyzed(void net.sourceforge.pebble.dao.file.FileDAOFactory()): Effects-of-calling:javax.xml.bind.JAXBContext:newInstance
    //#unanalyzed(void net.sourceforge.pebble.dao.file.FileDAOFactory()): Effects-of-calling:java.lang.Exception:printStackTrace
    this.blogEntryDAO = new FileBlogEntryDAO();
    this.staticPageDAO = new FileStaticPageDAO();
    this.categoryDAO = new FileCategoryDAO();
    this.refererFilterDAO = new FileRefererFilterDAO();
  }
    //#filedaofactory.java:57: end of method: void net.sourceforge.pebble.dao.file.FileDAOFactory.net.sourceforge.pebble.dao.file.FileDAOFactory()

  /**
   * Gets a DAO instance responsible for the dao of blog entries.
   *
   * @return  a BlogEntryDAO instance
   */
  public BlogEntryDAO getBlogEntryDAO() {
    return this.blogEntryDAO;
    //#filedaofactory.java:65: method: BlogEntryDAO net.sourceforge.pebble.dao.file.FileDAOFactory.getBlogEntryDAO()
    //#input(BlogEntryDAO getBlogEntryDAO()): this
    //#input(BlogEntryDAO getBlogEntryDAO()): this.blogEntryDAO
    //#output(BlogEntryDAO getBlogEntryDAO()): return_value
    //#pre[2] (BlogEntryDAO getBlogEntryDAO()): init'ed(this.blogEntryDAO)
    //#post(BlogEntryDAO getBlogEntryDAO()): return_value == this.blogEntryDAO
    //#post(BlogEntryDAO getBlogEntryDAO()): init'ed(return_value)
    //#filedaofactory.java:65: end of method: BlogEntryDAO net.sourceforge.pebble.dao.file.FileDAOFactory.getBlogEntryDAO()
  }

  /**
   * Gets a DAO instance responsible for the dao of static pages.
   *
   * @return a StaticPageDAO instance
   */
  public StaticPageDAO getStaticPageDAO() {
    return this.staticPageDAO;
    //#filedaofactory.java:74: method: StaticPageDAO net.sourceforge.pebble.dao.file.FileDAOFactory.getStaticPageDAO()
    //#input(StaticPageDAO getStaticPageDAO()): this
    //#input(StaticPageDAO getStaticPageDAO()): this.staticPageDAO
    //#output(StaticPageDAO getStaticPageDAO()): return_value
    //#pre[2] (StaticPageDAO getStaticPageDAO()): init'ed(this.staticPageDAO)
    //#post(StaticPageDAO getStaticPageDAO()): return_value == this.staticPageDAO
    //#post(StaticPageDAO getStaticPageDAO()): init'ed(return_value)
    //#filedaofactory.java:74: end of method: StaticPageDAO net.sourceforge.pebble.dao.file.FileDAOFactory.getStaticPageDAO()
  }

  /**
   * Gets a DAO instance responsible for the dao of categories.
   *
   * @return  a CategoryDAO instance
   */
  public CategoryDAO getCategoryDAO() {
    return this.categoryDAO;
    //#filedaofactory.java:83: method: CategoryDAO net.sourceforge.pebble.dao.file.FileDAOFactory.getCategoryDAO()
    //#input(CategoryDAO getCategoryDAO()): this
    //#input(CategoryDAO getCategoryDAO()): this.categoryDAO
    //#output(CategoryDAO getCategoryDAO()): return_value
    //#pre[2] (CategoryDAO getCategoryDAO()): init'ed(this.categoryDAO)
    //#post(CategoryDAO getCategoryDAO()): return_value == this.categoryDAO
    //#post(CategoryDAO getCategoryDAO()): init'ed(return_value)
    //#filedaofactory.java:83: end of method: CategoryDAO net.sourceforge.pebble.dao.file.FileDAOFactory.getCategoryDAO()
  }

  /**
   * Gets a DAO instance responsible for the dao of referer filters.
   *
   * @return  a RefererFilterDAO instance
   */
  public RefererFilterDAO getRefererFilterDAO() {
    return this.refererFilterDAO;
    //#filedaofactory.java:92: method: RefererFilterDAO net.sourceforge.pebble.dao.file.FileDAOFactory.getRefererFilterDAO()
    //#input(RefererFilterDAO getRefererFilterDAO()): this
    //#input(RefererFilterDAO getRefererFilterDAO()): this.refererFilterDAO
    //#output(RefererFilterDAO getRefererFilterDAO()): return_value
    //#pre[2] (RefererFilterDAO getRefererFilterDAO()): init'ed(this.refererFilterDAO)
    //#post(RefererFilterDAO getRefererFilterDAO()): return_value == this.refererFilterDAO
    //#post(RefererFilterDAO getRefererFilterDAO()): init'ed(return_value)
    //#filedaofactory.java:92: end of method: RefererFilterDAO net.sourceforge.pebble.dao.file.FileDAOFactory.getRefererFilterDAO()
  }

}
    //#output(net.sourceforge.pebble.dao.file.FileDAOFactory__static_init): __Descendant_Table[net/sourceforge/pebble/dao/file/FileDAOFactory]
    //#output(net.sourceforge.pebble.dao.file.FileDAOFactory__static_init): __Dispatch_Table.getBlogEntryDAO()Lnet/sourceforge/pebble/dao/BlogEntryDAO;
    //#output(net.sourceforge.pebble.dao.file.FileDAOFactory__static_init): __Dispatch_Table.getCategoryDAO()Lnet/sourceforge/pebble/dao/CategoryDAO;
    //#output(net.sourceforge.pebble.dao.file.FileDAOFactory__static_init): __Dispatch_Table.getRefererFilterDAO()Lnet/sourceforge/pebble/dao/RefererFilterDAO;
    //#output(net.sourceforge.pebble.dao.file.FileDAOFactory__static_init): __Dispatch_Table.getStaticPageDAO()Lnet/sourceforge/pebble/dao/StaticPageDAO;
    //#output(net.sourceforge.pebble.dao.file.FileDAOFactory__static_init): net/sourceforge/pebble/dao/DAOFactory.__Descendant_Table[net/sourceforge/pebble/dao/file/FileDAOFactory]
    //#post(net.sourceforge.pebble.dao.file.FileDAOFactory__static_init): __Descendant_Table[net/sourceforge/pebble/dao/file/FileDAOFactory] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.dao.file.FileDAOFactory__static_init): net/sourceforge/pebble/dao/DAOFactory.__Descendant_Table[net/sourceforge/pebble/dao/file/FileDAOFactory] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.dao.file.FileDAOFactory__static_init): __Dispatch_Table.getBlogEntryDAO()Lnet/sourceforge/pebble/dao/BlogEntryDAO; == &getBlogEntryDAO
    //#post(net.sourceforge.pebble.dao.file.FileDAOFactory__static_init): __Dispatch_Table.getCategoryDAO()Lnet/sourceforge/pebble/dao/CategoryDAO; == &getCategoryDAO
    //#post(net.sourceforge.pebble.dao.file.FileDAOFactory__static_init): __Dispatch_Table.getRefererFilterDAO()Lnet/sourceforge/pebble/dao/RefererFilterDAO; == &getRefererFilterDAO
    //#post(net.sourceforge.pebble.dao.file.FileDAOFactory__static_init): __Dispatch_Table.getStaticPageDAO()Lnet/sourceforge/pebble/dao/StaticPageDAO; == &getStaticPageDAO
    //#filedaofactory.java:: end of method: net.sourceforge.pebble.dao.file.FileDAOFactory.net.sourceforge.pebble.dao.file.FileDAOFactory__static_init
    //#filedaofactory.java:: end of class: net.sourceforge.pebble.dao.file.FileDAOFactory
