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 tTargets complex type.
028: * <p>
029: * The following schema fragment specifies the expected content
030: * contained within this class.
031: *
032: * <pre>
033: * <complexType name="tTargets">
034: * <complexContent>
035: * <extension base="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tExtensibleElements">
036: * <sequence>
037: * <element name="joinCondition" type="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tCondition" minOccurs="0"/>
038: * <element name="target" type="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tTarget" maxOccurs="unbounded"/>
039: * </sequence>
040: * </extension>
041: * </complexContent>
042: * </complexType>
043: * </pre>
044: */
045: public interface TargetContainer extends ExtensibleElements {
046:
047: /**
048: * @return array of all Targets
049: */
050: Target[] getTargets();
051:
052: /**
053: * @param i
054: * position in array.
055: * @return <code>i</code>th Taget.
056: */
057: Target getTarget(int i);
058:
059: /**
060: * Remove i-th Target ( index in Target set ).
061: *
062: * @param i
063: * position in array.
064: */
065: void removeTarget(int i);
066:
067: /**
068: * Set <code>target</code> to the <code>i</code>th palce.
069: *
070: * @param target
071: * object for set.
072: * @param i
073: * position for set.
074: */
075: void setTarget(Target target, int i);
076:
077: /**
078: * Adds <code>target</code> to the end.
079: *
080: * @param target
081: * object for add
082: */
083: void addTarget(Target target);
084:
085: /**
086: * Set new list of targets to this activity.
087: *
088: * @param target
089: * array for set.
090: */
091: void setTargets(Target[] target);
092:
093: /**
094: * Insert <code>target</code> to the <code>i</code>th place.
095: *
096: * @param target
097: * object for insert.
098: * @param i
099: * position for insert.
100: */
101: void insertTarget(Target target, int i);
102:
103: /**
104: * @return "joinCondition" tag entity.
105: */
106: Condition getJoinCondition();
107:
108: /**
109: * Set new Condition child.
110: *
111: * @param condition
112: * New Condition child object.
113: */
114: void setJoinCondition(Condition condition);
115:
116: /**
117: * Removes "joinCondition" tag entity.
118: */
119: void removeJoinCondition();
120:
121: }
|