cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject cvs commit: cocoon-2.1/src/idl/cocoon/flow Script.idl _module.idl
Date Mon, 17 Mar 2003 23:29:25 GMT
pier        2003/03/17 15:29:25

  Modified:    src/idl/cocoon _module.idl
               src/idl/cocoon/flow _module.idl
  Added:       src/idl/cocoon/flow Script.idl
  Log:
  Beginning to layout the object model after separating out the Javascript
  implementation documents.
  
  Revision  Changes    Path
  1.2       +3 -0      cocoon-2.1/src/idl/cocoon/_module.idl
  
  Index: _module.idl
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/idl/cocoon/_module.idl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- _module.idl	9 Mar 2003 00:08:32 -0000	1.1
  +++ _module.idl	17 Mar 2003 23:29:23 -0000	1.2
  @@ -86,6 +86,9 @@
     interface Response {
     };
   
  +  interface Cocoon {
  +  };
  +
     interface Session {
     };
   
  
  
  
  1.3       +8 -3      cocoon-2.1/src/idl/cocoon/flow/_module.idl
  
  Index: _module.idl
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/idl/cocoon/flow/_module.idl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- _module.idl	17 Mar 2003 23:04:41 -0000	1.2
  +++ _module.idl	17 Mar 2003 23:29:24 -0000	1.3
  @@ -55,13 +55,18 @@
    * ------------------------------------------------------------------------- */
   
   /**
  - *
  + * The <b>flow</b> module defines the object model used by the <b>Flow</b>
  + * system available on <b>Apache Cocoon 2.1</b>.
    */
   module flow {
   
  -    interface Script {
  -    };
  +    // Interfaces definitions.
  +    interface Script;
   
  +    // Interfaces inclusions.
  +    #include "cocoon/flow/Script.idl"
  +
  +    // Sub-modules inclusions.
       #include "cocoon/flow/javascript/_module.idl"
   
   };
  
  
  
  1.1                  cocoon-2.1/src/idl/cocoon/flow/Script.idl
  
  Index: Script.idl
  ===================================================================
  /* ========================================================================= *
   *                   The Apache Software License, Version 1.1                *
   * ========================================================================= *
   *          Copyright (C) 1999-2003 The Apache Software Foundation.          *
   *                           All rights reserved.                            *
   *                                                                           *
   * Redistribution  and  use in  source and  binary  forms,  with or  without *
   * modification,  are permitted provided  that the following  conditions are *
   * met:                                                                      *
   *                                                                           *
   * 1. Redistributions of source code must retain the above copyright notice, *
   *    this list of conditions and the following disclaimer.                  *
   *                                                                           *
   * 2. 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.   *
   *                                                                           *
   * 3. The end-user  documentation included with the redistribution,  if any, *
   *    must include the following acknowledgment:                             *
   *                                                                           *
   *             "This product includes software developed by the              *
   *            Apache Software Foundation <http://www.apache.org/>."          *
   *                                                                           *
   *    Alternately, this acknowledgment may appear in the software itself, if *
   *    and wherever such third-party acknowledgments normally appear.         *
   *                                                                           *
   * 4. The names "Apache Cocoon" and "Apache Software Foundation" must not be *
   *    used to endorse or promote products derived from this software without *
   *    prior  written  permission.  For written  permission,  please  contact *
   *    <mailto:apache@apache.org>.                                            *
   *                                                                           *
   * 5. Products derived  from this software  may not be called "Apache",  nor *
   *    may "Apache" appear in their name, without prior written permission of *
   *    the Apache Software Foundation.                                        *
   *                                                                           *
   * ------------------------------------------------------------------------- *
   *                                                                           *
   * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED 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  APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS BE  LIABLE FOR  ANY *
   * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGE *
   * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVI- *
   * CES;  LOSS OF USE, DATA,  OR PROFITS;  OR BUSINESS INTERRUPTION)  HOWEVER *
   * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABI- *
   * LITY, 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.                                                                   *
   *                                                                           *
   * This software consists of voluntary contributions made by many individua- *
   * ls on behalf of the Apache Software Foundation and was originally created *
   * by  Stefano Mazzocchi  <mailto:stefano@apache.org>.  For more information *
   * about the Apache Software Foundation please see <http://www.apache.org/>. *
   *                                                                           *
   * ------------------------------------------------------------------------- */
  
  
  /**
   * <p>
   *   The <code>Script</code> object represents the instance of the script
   *   currently executed by the <b>Cocoon Flow Layer</b>.
   * </p>
   * <p>
   *   When a Cocoon sitemap contains an entry like <code>&lt;map:call
   *  function="myFunction"/&gt;</code>, the flow engine will invoke the
   *  <code>myFunction</code> function in a user-defined subclass of this
   *  interface.
   * </p>
   * <p>
   *   For example, using the JavaScript flow, attributes and operations of
   *   this instance can be retrieved, set or called prefixing them with the
   *   keyword <code>this.</code>, or without any prefix, as in JavaScript
   *   the current script defines also <b>Global</b> attributes and operations.
   * </p>
   */
  interface Script {
  
      /**
       * The current <b>Cocoon</b> instance associated with this script.
       */
      readonly attribute cocoon::Cocoon cocoon;
  
      /**
       * The current <b>Request</b> instance associated with this script.
       */
      readonly attribute cocoon::Request request;
  
      /**
       * The current <b>Response</b> instance associated with this script.
       */
      readonly attribute cocoon::Response response;
  
  };
  
  
  

Mime
View raw message