KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xml > wsdl > model > Definitions


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * 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-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.xml.wsdl.model;
21
22 import java.util.Collection JavaDoc;
23 import javax.xml.namespace.QName JavaDoc;
24 import org.netbeans.modules.xml.xam.Nameable;
25
26 /**
27  *
28  * @author rico
29  * Represents the WSDL definitions section
30  */

31 public interface Definitions extends Nameable<WSDLComponent>, WSDLComponent {
32     public static String JavaDoc IMPORT_PROPERTY = "import";
33     public static String JavaDoc BINDING_PROPERTY = "binding";
34     public static String JavaDoc TYPES_PROPERTY = "types";
35     public static String JavaDoc MESSAGE_PROPERTY = "message";
36     public static String JavaDoc PORT_TYPE_PROPERTY = "portType";
37     public static String JavaDoc SERVICE_PROPERTY = "service";
38     public static String JavaDoc TARGET_NAMESPACE_PROPERTY = "targetNamespace";
39     
40     void addImport(Import importDefinition);
41     void removeImport(Import importDefinition);
42     Collection JavaDoc<Import> getImports();
43     
44     void setTypes(Types types);
45     Types getTypes();
46     
47     void addMessage(Message message);
48     void removeMessage(Message message);
49     Collection JavaDoc<Message> getMessages();
50     
51     void addPortType(PortType portType);
52     void removePortType(PortType portType);
53     Collection JavaDoc<PortType> getPortTypes();
54     
55     void addBinding(Binding binding);
56     void removeBinding(Binding binding);
57     Collection JavaDoc<Binding> getBindings();
58     
59     void addService(Service service);
60     void removeService(Service service);
61     Collection JavaDoc<Service> getServices();
62     
63     String JavaDoc getTargetNamespace();
64     void setTargetNamespace(String JavaDoc uri);
65     
66     /**
67      * Returns string value of the attribute from different namespace.
68      * If given QName has prefix, it will be ignored.
69      * @param attr non-null QName represents the attribute name.
70      * @return attribute value
71      */

72     String JavaDoc getAnyAttribute(QName JavaDoc attr);
73
74     /**
75      * Set string value of the attribute identified by given QName.
76      * This will fire property change event using attribute local name.
77      * @param attr non-null QName represents the attribute name.
78      * @param value string value for the attribute.
79      */

80     void setAnyAttribute(QName JavaDoc attr, String JavaDoc value);
81 }
82
Popular Tags