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: /**
025: * @author ads
026: * <p>
027: * Java class for tIf complex type.
028: * <p>
029: * The following schema fragment specifies the expected content
030: * contained within this class.
031: * <pre>
032: * <complexType name="tIf">
033: * <complexContent>
034: * <extension base="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tActivity">
035: * <sequence>
036: * <element name="condition" type="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tBoolean-expr"/>
037: * <sequence>
038: * <group ref="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}activity"/>
039: * </sequence>
040: * <element name="elseif" maxOccurs="unbounded" minOccurs="0">
041: * <complexType>
042: * <complexContent>
043: * <extension base="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tExtensibleElements">
044: * <sequence>
045: * <element name="condition" type="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tBoolean-expr"/>
046: * <group ref="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}activity"/>
047: * </sequence>
048: * </extension>
049: * </complexContent>
050: * </complexType>
051: * </element>
052: * <element name="else" type="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tActivityContainer" minOccurs="0"/>
053: * </sequence>
054: * </extension>
055: * </complexContent>
056: * </complexType>
057: * </pre>
058: */
059: public interface If extends Activity, ActivityHolder, ConditionHolder {
060:
061: /**
062: * @return Array of ElseIf entities.
063: */
064: ElseIf[] getElseIfs();
065:
066: /**
067: * Set new ElseIf children to this container.
068: *
069: * @param value
070: * New array of children.
071: */
072: void setElseIfs(ElseIf[] value);
073:
074: /**
075: * Insert new <code>value</code> in ElseIf array children.
076: *
077: * @param value
078: * New entity.
079: * @param i
080: * index for insert.
081: */
082: void insertElseIf(ElseIf value, int i);
083:
084: /**
085: * Adds new <code>value</code> to the end of list.
086: *
087: * @param value
088: * New ElseIf entity.
089: */
090: void addElseIf(ElseIf value);
091:
092: /**
093: * @param i
094: * index in array.
095: * @return <code>i</code>-th ElseIf entity.
096: */
097: ElseIf getElseIf(int i);
098:
099: /**
100: * Set <code>value</code> on the <code>i</code>-th place.
101: *
102: * @param value
103: * New value.
104: * @param i
105: * index in array.
106: */
107: void setElseIf(ElseIf value, int i);
108:
109: /**
110: * Removes <code>i</code>-th element .
111: *
112: * @param i
113: * index in array.
114: */
115: void removeElseIf(int i);
116:
117: /**
118: * @return Size of ElseIf children elements.
119: */
120: int sizeElseIfs();
121:
122: /**
123: * @return Else child entity.
124: */
125: Else getElse();
126:
127: /**
128: * Set new <code>value</code> as Else entity.
129: *
130: * @param value
131: * New Else entity.
132: */
133: void setElse(Else value);
134:
135: /**
136: * Removes Else entity.
137: */
138: void removeElse();
139: }
|