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 tSources complex type.
028: * <p>
029: * The following schema fragment specifies the expected content
030: * contained within this class.
031: *
032: * <pre>
033: * <complexType name="tSources">
034: * <complexContent>
035: * <extension base="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tExtensibleElements">
036: * <sequence>
037: * <element name="source" type="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tSource" maxOccurs="unbounded"/>
038: * </sequence>
039: * </extension>
040: * </complexContent>
041: * </complexType>
042: * </pre>
043: */
044: public interface SourceContainer extends ExtensibleElements {
045:
046: /**
047: * Returns list of all sources entities.
048: *
049: * @return array of sources.
050: */
051: Source[] getSources();
052:
053: /**
054: * @param i
055: * position in array.
056: * @return <code>i</code>th source entity.
057: */
058: Source getSource(int i);
059:
060: /**
061: * Remove i-th Source ( index in Sources set ).
062: *
063: * @param i
064: * position in array.
065: */
066: void removeSource(int i);
067:
068: /**
069: * Set <code>source</code> to the <code>i</code> place.
070: *
071: * @param source
072: * object for set.
073: * @param i
074: * position for set.
075: */
076: void setSource(Source source, int i);
077:
078: /**
079: * Adds <code>source</code> to the end of sources list.
080: *
081: * @param source
082: * object for add.
083: */
084: void addSource(Source source);
085:
086: /**
087: * Set new list iof sources for this activity.
088: *
089: * @param source
090: * array for set.
091: */
092: void setSources(Source[] source);
093:
094: /**
095: * Insert <code>source</code> to the <code>i</code>th position.
096: *
097: * @param source
098: * object for insert.
099: * @param i
100: * position for insert.
101: */
102: void insertSource(Source source, int i);
103:
104: /**
105: * @return size of sources list.
106: */
107: int sizeOfSource();
108: }
|