Clover coverage report - Code Coverage for tapestry release 3.1-alpha-1
Coverage timestamp: Mon Feb 21 2005 09:16:14 EST
file stats: LOC: 61   Methods: 0
NCLOC: 9   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
IScriptProcessor.java - - - -
coverage
 1   
 // Copyright 2004, 2005 The Apache Software Foundation
 2   
 //
 3   
 // Licensed under the Apache License, Version 2.0 (the "License");
 4   
 // you may not use this file except in compliance with the License.
 5   
 // You may obtain a copy of the License at
 6   
 //
 7   
 //     http://www.apache.org/licenses/LICENSE-2.0
 8   
 //
 9   
 // Unless required by applicable law or agreed to in writing, software
 10   
 // distributed under the License is distributed on an "AS IS" BASIS,
 11   
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12   
 // See the License for the specific language governing permissions and
 13   
 // limitations under the License.
 14   
 
 15   
 package org.apache.tapestry;
 16   
 
 17   
 import org.apache.hivemind.Resource;
 18   
 
 19   
 /**
 20   
  * Defines methods needed by a {@link org.apache.tapestry.IScript} to
 21   
  * execute.
 22   
  *
 23   
  * @author Howard Lewis Ship
 24   
  * @since 3.0
 25   
  * @see org.apache.tapestry.html.Body
 26   
  */
 27   
 
 28   
 public interface IScriptProcessor
 29   
 {
 30   
     /**
 31   
      * Adds scripting code to the main body.  During the render, multiple scripts may
 32   
      * render multiple bodies; all are concatinated together to form
 33   
      * a single block.
 34   
      */
 35   
     
 36   
     public void addBodyScript(String script);
 37   
     
 38   
     /**
 39   
      * Adds initialization script.  Initialization script is executed once, when
 40   
      * the containing page loads.  Effectively, this means that initialization script
 41   
      * is stored inside the HTML &lt;body&gt; element's <code>onload</code>
 42   
      * event handler.
 43   
      */
 44   
     public void addInitializationScript(String script);
 45   
     
 46   
     /**
 47   
      * Adds an external script.  The processor is expected to ensure
 48   
      * that external scripts are only loaded a single time per page.
 49   
      */
 50   
     
 51   
     public void addExternalScript(Resource resource);
 52   
     
 53   
     /**
 54   
      * Ensures that the given string is unique.  The string
 55   
      * is either returned unchanged, or a suffix is appended to
 56   
      * ensure uniqueness.
 57   
      */
 58   
     
 59   
     public String getUniqueString(String baseValue);
 60   
 }
 61