001: /*
002: * The contents of this file are subject to the terms of the Common Development
003: * and Distribution License (the License). You may not use this file except in
004: * compliance with the License.
005: *
006: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
007: * or http://www.netbeans.org/cddl.txt.
008: *
009: * When distributing Covered Code, include this CDDL Header Notice in each file
010: * and include the License file at http://www.netbeans.org/cddl.txt.
011: * If applicable, add the following below the CDDL Header, with the fields
012: * enclosed by brackets [] replaced by your own identifying information:
013: * "Portions Copyrighted [year] [name of copyright owner]"
014: *
015: * The Original Software is NetBeans. The Initial Developer of the Original
016: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
017: * Microsystems, Inc. All Rights Reserved.
018: */
019:
020: /**
021: *
022: */package org.netbeans.modules.bpel.model.api;
023:
024: import org.netbeans.modules.bpel.model.api.events.VetoException;
025: import org.netbeans.modules.bpel.model.api.support.TBoolean;
026:
027: /**
028: * @author ads
029: * <p>
030: * Java class for tForEach complex type.
031: * <p>
032: * The following schema fragment specifies the expected content
033: * contained within this class.
034: *
035: * <pre>
036: * <complexType name="tForEach">
037: * <complexContent>
038: * <extension base="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tActivity">
039: * <sequence>
040: * <element name="iterator" type="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tForEachIterator"/>
041: * <element name="completionCondition" type="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tCompletionCondition" minOccurs="0"/>
042: * <element ref="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}scope"/>
043: * </sequence>
044: * <attribute name="counterName" use="required" type="{http://www.w3.org/2001/XMLSchema}NCName" />
045: * <attribute name="parallel" use="required" type="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tBoolean" />
046: * </extension>
047: * </complexContent>
048: * </complexType>
049: * </pre>
050: */
051: public interface ForEach extends Activity, ScopeHolder,
052: VariableDeclaration, VariableDeclarationScope
053:
054: {
055:
056: /**
057: * counterName attribute name.
058: */
059: String COUNTER_NAME = "counterName"; // NOI18N
060:
061: /**
062: * parallel attribute value.
063: */
064: String PARALLEL = "parallel"; // NOI18N
065:
066: /**
067: * @return "startCounterValue" tag element.
068: */
069: StartCounterValue getStartCounterValue();
070:
071: /**
072: * Setter for "startCounterValue" tag element.
073: *
074: * @param expression
075: * New Expression for "startCounterValue" child.
076: */
077: void setStartCounterValue(StartCounterValue expression);
078:
079: /**
080: * @return "finalCounterValue" tag element.
081: */
082: FinalCounterValue getFinalCounterValue();
083:
084: /**
085: * Setter for "finalCounterValue" tag element.
086: *
087: * @param expression
088: * New Expression for "finalCounterValue" child.
089: */
090: void setFinalCounterValue(FinalCounterValue expression);
091:
092: /**
093: * Getter for "completionCondition" tag entity.
094: *
095: * @return CompletionCondition child entity.
096: */
097: CompletionCondition getCompletionCondition();
098:
099: /**
100: * Setter or "completionCondition" tag entity.
101: *
102: * @param condition
103: * CompletionCondition child entity.
104: */
105: void setCompletionCondition(CompletionCondition condition);
106:
107: /**
108: * Removes CompletionCondition child entity.
109: */
110: void removeCompletionCondition();
111:
112: /**
113: * Getter for counter name variable. This is local variable that is created
114: * implicetly . This is one more place where variable could be defined.
115: *
116: * @return Counter name.
117: */
118: String getCounterName();
119:
120: /**
121: * Set counter name.
122: *
123: * @param value
124: * New name of counter variable.
125: * @throws VetoException
126: * Could be thrown if <code>value</code> is not allowable
127: * here.
128: */
129: void setCounterName(String value) throws VetoException;
130:
131: /**
132: * @return parallel attribute value.
133: */
134: TBoolean getParallel();
135:
136: /**
137: * @param value
138: * New value for "parallel" attribute.
139: */
140: void setParallel(TBoolean value);
141: }
|