KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xml > wsdl > ui > extensibility > model > WSDLExtensibilityElement


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-2007 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 /*
21  * Created on May 25, 2005
22  *
23  * To change the template for this generated file go to
24  * Window - Preferences - Java - Code Generation - Code and Comments
25  */

26 package org.netbeans.modules.xml.wsdl.ui.extensibility.model;
27
28 import java.util.Collection JavaDoc;
29 import java.util.List JavaDoc;
30
31 import javax.xml.namespace.QName JavaDoc;
32
33
34
35 /**
36  * @author radval
37  *
38  * WSDLExtensibilityElement is orginized as <folder> in layer.xml
39  * one for each constants as defined in WSDLExtensibilityElements
40  */

41 public interface WSDLExtensibilityElement {
42
43     /**
44      * Get the name of the element which is extensibile.
45      * This will be one of the constants in @see WSDLExtensibilityElements
46      * @return name
47      */

48     String JavaDoc getName();
49     
50     /**
51      * Get All WSDLExtensibilityElementInfo which are define
52      * under this WSDLExtensibilityElement. This will return
53      * all WSDLExtensibilityElementInfo which are grouped under
54      * WSDLExtensibilityElementInfoContainer
55      * @return List of all WSDLExtensibilityElementInfo
56      */

57     List JavaDoc<WSDLExtensibilityElementInfo> getAllWSDLExtensibilityElementInfos();
58     
59     /**
60      * Return only top level WSDLExtensibilityElementInfo which are define
61      * under this WSDLExtensibilityElement. This will not return WSDLExtensibilityElementInfo
62      * which are defined under WSDLExtensibilityElementInfoContainer
63      * @return List of top level WSDLExtensibilityElementInfo
64      */

65     List JavaDoc<WSDLExtensibilityElementInfo> getWSDLExtensibilityElementInfos();
66     
67     /**
68      * Return all WSDLExtensibilityElementInfoContainer defined under
69      * this WSDLExtensibilityElement
70      * @return List of WSDLExtensibilityElementInfoContainer
71      */

72     List JavaDoc<WSDLExtensibilityElementInfoContainer> getAllWSDLExtensibilityElementInfoContainers();
73     
74     /**
75      * Check if there are zero or more WSDLExtensibilityElementInfo
76      * under this WSDLExtensibilityElement
77      * @return true of there are more than zero WSDLExtensibilityElementInfo
78      */

79     boolean isExtensibilityElementsAvailable();
80     
81     /**
82      * Get a particular WSDLExtensibilityElementInfo based on the matching QName
83      * WSDLExtensibilityElementInfo represents one schema element which is
84      * from a wsdl extension schema.
85      * @param elementQName name of the element
86      * @return WSDLExtensibilityElementInfo
87      */

88     WSDLExtensibilityElementInfo getWSDLExtensibilityElementInfos(QName JavaDoc elementQName);
89     
90     
91     Collection JavaDoc<WSDLExtensibilityElementInfo> getWSDLExtensibilityElementInfos(String JavaDoc namespace);
92 }
93
Popular Tags