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: import org.netbeans.modules.bpel.model.api.events.VetoException;
25:
26: /**
27: * @author ads
28: * <p>
29: * Java class for tOnEvent complex type.
30: * <p>
31: * The following schema fragment specifies the expected content
32: * contained within this class.
33: *
34: * <pre>
35: * <complexType name="tOnEvent">
36: * <complexContent>
37: * <extension base="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}tOnMsgCommon">
38: * <sequence>
39: * <element ref="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}scope"/>
40: * </sequence>
41: * <attribute name="messageType" use="required" type="{http://www.w3.org/2001/XMLSchema}QName" />
42: * <attribute name="variable" use="required" type="{http://www.w3.org/2001/XMLSchema}NCName" />
43: * </extension>
44: * </complexContent>
45: * </complexType>
46: * </pre>
47: *
48: * This interface should not extend VariableReference becuase it doesn't
49: * reference to Variable. It declare new local variable.
50: */
51: public interface OnEvent extends OnMessageCommon, ScopeHolder,
52: ElementReference, MessageTypeReference, VariableDeclaration,
53: VariableDeclarationScope {
54:
55: String VARIABLE = VariableReference.VARIABLE;
56:
57: /**
58: * Gets the value of the variable property.
59: * This is variable declaration. Opposite to VariableSpec interface where
60: * this attribute is reference to variable.
61: *
62: * @return possible object is String.
63: */
64: String getVariable();
65:
66: /**
67: * Removes variable attribute.
68: */
69: void removeVariable();
70:
71: /**
72: * Sets the value of the variable property.
73: *
74: * @param value
75: * allowed object is String.
76: * @throws VetoException { @link VetoException } will be thrown
77: * if value is not acceptable name for variable.
78: */
79: void setVariable(String value) throws VetoException;
80: }
|