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: // This file was generated by the JavaTM Architecture for XML Binding(JAXB)
022: // Reference Implementation, v2.0-06/22/2005 01:29 PM(ryans)-EA2
023: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
024: // Any modifications to this file will be lost upon recompilation of the source
025: // schema.
026: // Generated on: 2005.09.05 at 07:05:33 PM MSD
027: //
028: package org.netbeans.modules.bpel.model.api;
029:
030: /**
031: * <p>
032: * Java class for tEventHandlers complex type.
033: * <p>
034: * The following schema fragment specifies the expected content contained within
035: * this class.
036: *
037: * <pre>
038: * <complexType name="tEventHandlers">
039: * <complexContent>
040: * <extension base="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tExtensibleElements">
041: * <sequence>
042: * <element name="onEvent" type="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tOnEvent" maxOccurs="unbounded" minOccurs="0"/>
043: * <element name="onAlarm" type="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tOnAlarmEvent" maxOccurs="unbounded" minOccurs="0"/>
044: * </sequence>
045: * </extension>
046: * </complexContent>
047: * </complexType>
048: * </pre>
049: */
050: public interface EventHandlers extends ExtensibleElements,
051: BpelContainer {
052:
053: /**
054: * Returns aray of onEvent children.
055: *
056: * @return array of onMessage.
057: */
058: OnEvent[] getOnEvents();
059:
060: /**
061: * Returns ith OnEvent child .
062: *
063: * @param i
064: * index
065: * @return ith OnEvent object.
066: */
067: OnEvent getOnEvent(int i);
068:
069: /**
070: * Removes ith onMessage object.
071: *
072: * @param i
073: * index
074: */
075: void removeOnEvent(int i);
076:
077: /**
078: * Set new array of OnEvent children.
079: *
080: * @param events
081: * new array for set.
082: */
083: void setOnEvent(OnEvent[] events);
084:
085: /**
086: * Set <code>event</code> to the ith place.
087: *
088: * @param event
089: * object for set.
090: * @param i
091: * index
092: */
093: void setOnEvent(OnEvent event, int i);
094:
095: /**
096: * Adds OnEvent.
097: *
098: * @param event
099: * object for add.
100: */
101: void addOnEvent(OnEvent event);
102:
103: /**
104: * Insert <code>event</code> on the ith place.
105: *
106: * @param event
107: * object for insert.
108: * @param i
109: * index
110: */
111: void insertOnEvent(OnEvent event, int i);
112:
113: /**
114: * Returns array of onAlarmEvent children.
115: *
116: * @return array of onAlarmEvent children.
117: */
118: OnAlarmEvent[] getOnAlarms();
119:
120: /**
121: * Returns ith onAlarmEvent.
122: *
123: * @param i
124: * index in array.
125: * @return ith onAlarmEvent.
126: */
127: OnAlarmEvent getOnAlarm(int i);
128:
129: /**
130: * Removes ith onAlarmEvent.
131: *
132: * @param i
133: * index for remove.
134: */
135: void removeOnAlarm(int i);
136:
137: /**
138: * Set new array of onAlarmEvent children.
139: *
140: * @param alarm
141: * array for set.
142: */
143: void setOnAlarms(OnAlarmEvent[] alarm);
144:
145: /**
146: * Set ith onAlarmEvent to <code>alarm</code> object.
147: *
148: * @param alarm
149: * object for set.
150: * @param i
151: * index.
152: */
153: void setOnAlarm(OnAlarmEvent alarm, int i);
154:
155: /**
156: * Add <code>alarm</code>.
157: *
158: * @param alarm
159: * object for add.
160: */
161: void addOnAlarm(OnAlarmEvent alarm);
162:
163: /**
164: * Insert <code>alarm</code> to the ith place.
165: *
166: * @param alarm
167: * object for set.
168: * @param i
169: * index
170: */
171: void insertOnAlarm(OnAlarmEvent alarm, int i);
172:
173: /**
174: * @return size of onMessage children.
175: */
176: int sizeOfOnEvents();
177:
178: /**
179: * @return size of onAlarm children.
180: */
181: int sizeOfOnAlarms();
182:
183: }
|