//# 0 errors, 37 messages
//#
/*
    //#checkboxpluginconfigtype.java:1:1: class: net.sourceforge.pebble.plugins.CheckboxPluginConfigType
 * Copyright (c) 2003-2005, 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.plugins;

import javax.servlet.jsp.JspWriter;
import java.io.IOException;

/**
 * @author James Roper
 */
public class CheckboxPluginConfigType implements PluginConfigType {
    //#checkboxpluginconfigtype.java:40: method: void net.sourceforge.pebble.plugins.CheckboxPluginConfigType.net.sourceforge.pebble.plugins.CheckboxPluginConfigType()
    //#checkboxpluginconfigtype.java:40: end of method: void net.sourceforge.pebble.plugins.CheckboxPluginConfigType.net.sourceforge.pebble.plugins.CheckboxPluginConfigType()

  public static final CheckboxPluginConfigType INSTANCE = new CheckboxPluginConfigType();
    //#checkboxpluginconfigtype.java:42: method: net.sourceforge.pebble.plugins.CheckboxPluginConfigType.net.sourceforge.pebble.plugins.CheckboxPluginConfigType__static_init
    //#output(net.sourceforge.pebble.plugins.CheckboxPluginConfigType__static_init): INSTANCE
    //#output(net.sourceforge.pebble.plugins.CheckboxPluginConfigType__static_init): __Descendant_Table[net/sourceforge/pebble/plugins/CheckboxPluginConfigType]
    //#output(net.sourceforge.pebble.plugins.CheckboxPluginConfigType__static_init): __Dispatch_Table.render(Ljavax/servlet/jsp/JspWriter;Lnet/sourceforge/pebble/plugins/PluginConfig;Ljava/lang/String;)V
    //#output(net.sourceforge.pebble.plugins.CheckboxPluginConfigType__static_init): __Dispatch_Table.validate(Lnet/sourceforge/pebble/plugins/PluginConfig;Ljava/lang/String;)Ljava/lang/String;
    //#output(net.sourceforge.pebble.plugins.CheckboxPluginConfigType__static_init): net/sourceforge/pebble/plugins/PluginConfigType.__Descendant_Table[net/sourceforge/pebble/plugins/CheckboxPluginConfigType]
    //#output(net.sourceforge.pebble.plugins.CheckboxPluginConfigType__static_init): new CheckboxPluginConfigType(CheckboxPluginConfigType__static_init#1) num objects
    //#output(net.sourceforge.pebble.plugins.CheckboxPluginConfigType__static_init): INSTANCE.__Tag
    //#new obj(net.sourceforge.pebble.plugins.CheckboxPluginConfigType__static_init): new CheckboxPluginConfigType(CheckboxPluginConfigType__static_init#1)
    //#post(net.sourceforge.pebble.plugins.CheckboxPluginConfigType__static_init): INSTANCE == &new CheckboxPluginConfigType(CheckboxPluginConfigType__static_init#1)
    //#post(net.sourceforge.pebble.plugins.CheckboxPluginConfigType__static_init): __Descendant_Table[net/sourceforge/pebble/plugins/CheckboxPluginConfigType] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.plugins.CheckboxPluginConfigType__static_init): net/sourceforge/pebble/plugins/PluginConfigType.__Descendant_Table[net/sourceforge/pebble/plugins/CheckboxPluginConfigType] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.plugins.CheckboxPluginConfigType__static_init): __Dispatch_Table.render(Ljavax/servlet/jsp/JspWriter;Lnet/sourceforge/pebble/plugins/PluginConfig;Ljava/lang/String;)V == &render
    //#post(net.sourceforge.pebble.plugins.CheckboxPluginConfigType__static_init): __Dispatch_Table.validate(Lnet/sourceforge/pebble/plugins/PluginConfig;Ljava/lang/String;)Ljava/lang/String; == &validate
    //#post(net.sourceforge.pebble.plugins.CheckboxPluginConfigType__static_init): new CheckboxPluginConfigType(CheckboxPluginConfigType__static_init#1) num objects == 1
    //#post(net.sourceforge.pebble.plugins.CheckboxPluginConfigType__static_init): INSTANCE.__Tag == net/sourceforge/pebble/plugins/CheckboxPluginConfigType
    //#checkboxpluginconfigtype.java:42: end of method: net.sourceforge.pebble.plugins.CheckboxPluginConfigType.net.sourceforge.pebble.plugins.CheckboxPluginConfigType__static_init

  public void render(JspWriter writer, PluginConfig pluginConfig, String value) throws IOException {
    writer.print("<input type=\"checkbox\" name=\"");
    //#checkboxpluginconfigtype.java:45: method: void net.sourceforge.pebble.plugins.CheckboxPluginConfigType.render(JspWriter, PluginConfig, String)
    //#input(void render(JspWriter, PluginConfig, String)): net/sourceforge/pebble/plugins/PluginConfig.__Descendant_Table[net/sourceforge/pebble/plugins/PluginConfig]
    //#input(void render(JspWriter, PluginConfig, String)): net/sourceforge/pebble/plugins/PluginConfig.__Descendant_Table[others]
    //#input(void render(JspWriter, PluginConfig, String)): net/sourceforge/pebble/plugins/PluginConfig.__Dispatch_Table.getKey()Ljava/lang/String;
    //#input(void render(JspWriter, PluginConfig, String)): pluginConfig
    //#input(void render(JspWriter, PluginConfig, String)): pluginConfig.__Tag
    //#input(void render(JspWriter, PluginConfig, String)): pluginConfig.key
    //#input(void render(JspWriter, PluginConfig, String)): writer
    //#pre[1] (void render(JspWriter, PluginConfig, String)): pluginConfig != null
    //#pre[2] (void render(JspWriter, PluginConfig, String)): pluginConfig.__Tag == net/sourceforge/pebble/plugins/PluginConfig
    //#pre[4] (void render(JspWriter, PluginConfig, String)): writer != null
    writer.print(PLUGIN_PROPERTY_NAME_PREFIX);    
    writer.print(pluginConfig.getKey());
    writer.print("\" value=\"true\"/>");
  }
    //#checkboxpluginconfigtype.java:49: end of method: void net.sourceforge.pebble.plugins.CheckboxPluginConfigType.render(JspWriter, PluginConfig, String)

  public String validate(PluginConfig pluginConfig, String value) {
    // Success
    return null;
    //#checkboxpluginconfigtype.java:53: method: String net.sourceforge.pebble.plugins.CheckboxPluginConfigType.validate(PluginConfig, String)
    //#output(String validate(PluginConfig, String)): return_value
    //#post(String validate(PluginConfig, String)): return_value == null
    //#checkboxpluginconfigtype.java:53: end of method: String net.sourceforge.pebble.plugins.CheckboxPluginConfigType.validate(PluginConfig, String)
  }
}    //#checkboxpluginconfigtype.java:: end of class: net.sourceforge.pebble.plugins.CheckboxPluginConfigType
