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: *
026: * <pre>
027: * <xsd:element name="fromParts" type="tFromParts"/>
028: * <xsd:complexType name="tFromParts">
029: * <xsd:complexContent>
030: * <xsd:extension base="tExtensibleElements">
031: * <xsd:sequence>
032: * <xsd:element ref="fromPart" minOccurs="1" maxOccurs="unbounded"/>
033: * </xsd:sequence>
034: * </xsd:extension>
035: * </xsd:complexContent>
036: * </xsd:complexType>
037: * </pre>
038: * @author ads
039: */
040: public interface FromPartContainer extends BpelContainer {
041:
042: /**
043: * @return FromPart's children array.
044: */
045: FromPart[] getFromParts();
046:
047: /**
048: * Getter for <code>i</code>-th FromPart child.
049: *
050: * @param i
051: * Index in FromPart's children array.
052: * @return <code>i</code>-th FromPart child.
053: */
054: FromPart getFromPart(int i);
055:
056: /**
057: * Setter for <code>i</code>-th FromPart child.
058: *
059: * @param part
060: * New FromPart child.
061: * @param i
062: * Index in FromPart's children array.
063: */
064: void setFromPart(FromPart part, int i);
065:
066: /**
067: * Insert new <code>part</code> inside children list on the <code>i</code>-th
068: * place.
069: *
070: * @param part
071: * New FromPart child.
072: * @param i
073: * Index in FromPart's children array.
074: */
075: void insertFromPart(FromPart part, int i);
076:
077: /**
078: * Adds new FromPart child at the end of FromPart's children list.
079: *
080: * @param part New FromPart child.
081: */
082: void addFromPart(FromPart part);
083:
084: /**
085: * Set new FromPart's children array.
086: *
087: * @param parts
088: * New array.
089: */
090: void setFromParts(FromPart[] parts);
091:
092: /**
093: * @return size of FromPart's children array.
094: */
095: int sizeOfFromParts();
096:
097: /**
098: * Removes <code>i</code>-th FromPart child.
099: *
100: * @param i
101: * Index in FromPart's children array.
102: */
103: void removeFromPart(int i);
104: }
|