KickJava   Java API By Example, From Geeks To Geeks.

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


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.List JavaDoc;
23 import java.util.Map JavaDoc;
24 import javax.xml.namespace.QName JavaDoc;
25 import org.netbeans.modules.xml.schema.model.ReferenceableSchemaComponent;
26 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor;
27 import org.netbeans.modules.xml.xam.dom.DocumentComponent;
28 import org.netbeans.modules.xml.xam.dom.NamedComponentReference;
29
30 /**
31  *
32  * @author rico
33  * Base interface of all WSDL components
34  */

35 public interface WSDLComponent extends DocumentComponent<WSDLComponent> {
36     public static final String JavaDoc DOCUMENTATION_PROPERTY = "documentation"; //NOI18N
37
public static final String JavaDoc EXTENSIBILITY_ELEMENT_PROPERTY = "extensibilityElement";
38
39     /**
40      * @return WSDL model.
41      */

42     WSDLModel getModel();
43     
44     void accept(WSDLVisitor visitor);
45     
46     void setDocumentation(Documentation doc);
47     Documentation getDocumentation();
48     
49     /**
50      * Creates a global reference to the given target WSDL component.
51      * @param target the target WSDLComponent
52      * @param type actual type of the target
53      * @return the global reference.
54      */

55     <T extends ReferenceableWSDLComponent> NamedComponentReference<T> createReferenceTo(T target, Class JavaDoc<T> type);
56     
57     /**
58      * Creates a GlobalReference to a Schema component
59      * @param target The schema component that is being referenced.
60      * @param type Class object of the schema component
61      */

62     <T extends ReferenceableSchemaComponent> NamedComponentReference<T>
63             createSchemaReference(T target, Class JavaDoc<T> type);
64
65     void addExtensibilityElement(ExtensibilityElement ee);
66     void removeExtensibilityElement(ExtensibilityElement ee);
67     List JavaDoc<ExtensibilityElement> getExtensibilityElements();
68     
69     <T extends ExtensibilityElement> List JavaDoc<T> getExtensibilityElements(Class JavaDoc<T> type);
70
71     /**
72      * Returns map of attribute names and string values.
73      */

74     Map JavaDoc<QName JavaDoc,String JavaDoc> getAttributeMap();
75     
76 }
77
Popular Tags