/* ========================================================================= *
* 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
* Interface to Cocoon XMLForm.
*
*
*
*
expr
*/
Object getValue(in string expr);
/**
* Returns an iterator over a nodeset value of an xpath expression
* evaluated against the model of this form
* @param expr xpath expression
* @return java.util.Iterator representing a nodeset
*/
java::Iterator iterate(in string expr);
/**
* Sends view to presentation pipeline and waits for subsequent submission.
* Automatically resends view if validation fails.
* Creates two continuations: one immediately before the page is sent
* and one immediately after. These are used to implement automated support
* for back/forward navigation in the form. When you move forward in the
* form the second continuation is invoked. When you move back from the
* following page the first continuation is invoked.
* @param phase view to send (and phase to validate)
* @param uri presentation pipeline resource identifier
* @param validator optional function invoked to perform validation
*/
void sendView(in string phase, in string uri, in cocoon::Function validator);
/**
* Sends view to presentation pipeline but doesn't wait for submission
* @param view view to send
* @param uri presentation pipeline uri
*/
void finish(in string view, in string uri);
};