KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mr > core > util > patterns > flow > Condition


1 package org.mr.core.util.patterns.flow;
2
3 import org.mr.core.util.exceptions.CreationException;
4 import org.w3c.dom.Element JavaDoc;
5
6 /*
7  * Copyright 2002 by
8  * <a HREF="http://www.coridan.com">Coridan</a>
9  * <a HREF="mailto: support@coridan.com ">support@coridan.com</a>
10  *
11  * The contents of this file are subject to the Mozilla Public License Version
12  * 1.1 (the "License"); you may not use this file except in compliance with the
13  * License. You may obtain a copy of the License at
14  * http://www.mozilla.org/MPL/
15  *
16  * Software distributed under the License is distributed on an "AS IS" basis,
17  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
18  * for the specific language governing rights and limitations under the
19  * License.
20  *
21  * The Original Code is "MantaRay" (TM).
22  *
23  * The Initial Developer of the Original Code is Coridan.
24  * Portions created by the Initial Developer are Copyright (C) 2006
25  * Coridan Inc. All Rights Reserved.
26  *
27  * Contributor(s): all the names of the contributors are added in the source
28  * code where applicable.
29  *
30  * Alternatively, the contents of this file may be used under the terms of the
31  * LGPL license (the "GNU LESSER GENERAL PUBLIC LICENSE"), in which case the
32  * provisions of LGPL are applicable instead of those above. If you wish to
33  * allow use of your version of this file only under the terms of the LGPL
34  * License and not to allow others to use your version of this file under
35  * the MPL, indicate your decision by deleting the provisions above and
36  * replace them with the notice and other provisions required by the LGPL.
37  * If you do not delete the provisions above, a recipient may use your version
38  * of this file under either the MPL or the GNU LESSER GENERAL PUBLIC LICENSE.
39  
40  *
41  * This library is free software; you can redistribute it and/or modify it
42  * under the terms of the MPL as stated above or under the terms of the GNU
43  * Lesser General Public License as published by the Free Software Foundation;
44  * either version 2.1 of the License, or any later version.
45  *
46  * This library is distributed in the hope that it will be useful, but WITHOUT
47  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
48  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
49  * License for more details.
50  */

51
52  /**
53  * User: Moti Tal
54  * Date: Feb 21, 2005
55  * Time: 12:36:02 PM
56  *
57  * This interface represent a condition.
58  */

59 public interface Condition {
60
61
62     /**
63      * Sets the condition configuration
64      * @param i_object Element to be configure
65      * @throws CreationException
66      */

67     public void configure(Element JavaDoc i_object) throws CreationException ;
68
69     /**
70      * Check if the step met condition
71      * @param i_object the up to date parameters passed in the flow
72      * @return true is met condition, false otherwise.
73      */

74     public boolean metCondition(Object JavaDoc i_object);
75
76 }
77
Popular Tags