01: /*
02: * The contents of this file are subject to the terms of the Common Development
03: * and Distribution License (the License). You may not use this file except in
04: * compliance with the License.
05: *
06: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
07: * or http://www.netbeans.org/cddl.txt.
08: *
09: * When distributing Covered Code, include this CDDL Header Notice in each file
10: * and include the License file at http://www.netbeans.org/cddl.txt.
11: * If applicable, add the following below the CDDL Header, with the fields
12: * enclosed by brackets [] replaced by your own identifying information:
13: * "Portions Copyrighted [year] [name of copyright owner]"
14: *
15: * The Original Software is NetBeans. The Initial Developer of the Original
16: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17: * Microsystems, Inc. All Rights Reserved.
18: */
19:
20: /**
21: *
22: */package org.netbeans.modules.bpel.model.api;
23:
24: /**
25: * @author ads
26: */
27: public interface ToPartContainer extends BpelContainer {
28:
29: /**
30: * @return ToPart's children array.
31: */
32: ToPart[] getToParts();
33:
34: /**
35: * Getter for <code>i</code>-th ToPart child.
36: *
37: * @param i
38: * Index in ToPart's children array.
39: * @return <code>i</code>-th ToPart child.
40: */
41: ToPart getToPart(int i);
42:
43: /**
44: * Setter for <code>i</code>-th ToPart child.
45: *
46: * @param part
47: * New ToPart child.
48: * @param i
49: * Index in ToPart's children array.
50: */
51: void setToPart(ToPart part, int i);
52:
53: /**
54: * Insert new <code>part</code> inside children list on the <code>i</code>-th
55: * place.
56: *
57: * @param part
58: * New ToPart child.
59: * @param i
60: * Index in ToPart's children array.
61: */
62: void insertToPart(ToPart part, int i);
63:
64: /**
65: * Adds new ToPart child at the end of FromPart's children list.
66: *
67: * @param part
68: * New ToPart child.
69: */
70: void addToPart(ToPart part);
71:
72: /**
73: * Removes <code>i</code>-th ToPart child.
74: *
75: * @param i
76: * Index in ToPart's children array.
77: */
78: void removeToPart(int i);
79:
80: /**
81: * Set new ToPart's children array.
82: *
83: * @param parts
84: * New array.
85: */
86: void setToPart(ToPart[] parts);
87:
88: /**
89: * @return Size of ToPart's children array.
90: */
91: int sizeOfToParts();
92: }
|