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.references.SchemaReference;
25: import org.netbeans.modules.bpel.model.api.references.WSDLReference;
26: import org.netbeans.modules.xml.schema.model.GlobalElement;
27: import org.netbeans.modules.xml.schema.model.GlobalType;
28: import org.netbeans.modules.xml.wsdl.model.Message;
29:
30: /**
31: * @author nk160297
32: *
33: * This interface is common interface for various variable
34: * declarations.
35: * It is used for referencing to such variable declaration
36: * from other entities.
37: */
38: public interface AbstractVariableDeclaration {
39:
40: /**
41: * Gets the message type if varaible declaration have WSDL type.
42: *
43: * Method returns reference that can point to read=-only Message.
44: *
45: * @return possible object is reference to WSDL model.
46: */
47: WSDLReference<Message> getMessageType();
48:
49: /**
50: * Gets the element type if variable declaration have Schema element type.
51: *
52: * Method returns reference that can point to read=-only Element.
53: *
54: * @return possible object is reference to GlobalElement in schema model.
55: */
56: SchemaReference<GlobalElement> getElement();
57:
58: /**
59: * Gets the type if variable declaration have Schema type.
60: *
61: * Method returns reference that can point to read=-only GlobalType.
62: *
63: * @return possible object is reference to GlobalType.
64: */
65: SchemaReference<GlobalType> getType();
66:
67: /**
68: * Getter for variable name.
69: * @return Variable name.
70: */
71: String getVariableName();
72: }
|