001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: /*
043: * Created on May 25, 2005
044: *
045: * To change the template for this generated file go to
046: * Window - Preferences - Java - Code Generation - Code and Comments
047: */
048: package org.netbeans.modules.xml.wsdl.ui.extensibility.model;
049:
050: import java.util.Collection;
051: import java.util.List;
052:
053: import javax.xml.namespace.QName;
054:
055: /**
056: * @author radval
057: *
058: * WSDLExtensibilityElement is orginized as <folder> in layer.xml
059: * one for each constants as defined in WSDLExtensibilityElements
060: */
061: public interface WSDLExtensibilityElement {
062:
063: /**
064: * Get the name of the element which is extensibile.
065: * This will be one of the constants in @see WSDLExtensibilityElements
066: * @return name
067: */
068: String getName();
069:
070: /**
071: * Get All WSDLExtensibilityElementInfo which are define
072: * under this WSDLExtensibilityElement. This will return
073: * all WSDLExtensibilityElementInfo which are grouped under
074: * WSDLExtensibilityElementInfoContainer
075: * @return List of all WSDLExtensibilityElementInfo
076: */
077: List<WSDLExtensibilityElementInfo> getAllWSDLExtensibilityElementInfos();
078:
079: /**
080: * Return only top level WSDLExtensibilityElementInfo which are define
081: * under this WSDLExtensibilityElement. This will not return WSDLExtensibilityElementInfo
082: * which are defined under WSDLExtensibilityElementInfoContainer
083: * @return List of top level WSDLExtensibilityElementInfo
084: */
085: List<WSDLExtensibilityElementInfo> getWSDLExtensibilityElementInfos();
086:
087: /**
088: * Return all WSDLExtensibilityElementInfoContainer defined under
089: * this WSDLExtensibilityElement
090: * @return List of WSDLExtensibilityElementInfoContainer
091: */
092: List<WSDLExtensibilityElementInfoContainer> getAllWSDLExtensibilityElementInfoContainers();
093:
094: /**
095: * Check if there are zero or more WSDLExtensibilityElementInfo
096: * under this WSDLExtensibilityElement
097: * @return true of there are more than zero WSDLExtensibilityElementInfo
098: */
099: boolean isExtensibilityElementsAvailable();
100:
101: /**
102: * Get a particular WSDLExtensibilityElementInfo based on the matching QName
103: * WSDLExtensibilityElementInfo represents one schema element which is
104: * from a wsdl extension schema.
105: * @param elementQName name of the element
106: * @return WSDLExtensibilityElementInfo
107: */
108: WSDLExtensibilityElementInfo getWSDLExtensibilityElementInfos(
109: QName elementQName);
110:
111: Collection<WSDLExtensibilityElementInfo> getWSDLExtensibilityElementInfos(
112: String namespace);
113: }
|