001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)Description.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package com.sun.jbi.wsdl2.impl;
030:
031: import javax.xml.namespace.QName;
032: import org.w3.ns.wsdl.DescriptionType;
033:
034: /**
035: * Abstract implementation of
036: * WSDL 2.0 Description container
037: *
038: * @author Sun Microsystems, Inc.
039: */
040: abstract class Description extends ExtensibleDocumentedComponent
041: implements com.sun.jbi.wsdl2.Definitions {
042: /**
043: * Get the XML bean for this definitions component.
044: *
045: * @return The definitions XML bean for this component.
046: */
047: protected final DescriptionType getBean() {
048: return (DescriptionType) this .mXmlObject;
049: }
050:
051: /**
052: * Construct an abstract Description fault reference implementation base component.
053: *
054: * @param bean The XML bean for this Description component
055: */
056: Description(DescriptionType bean) {
057: super (bean);
058: }
059:
060: /**
061: * Find named binding in this definition or the imported/included
062: * bindings.
063: *
064: * @param name Name of binding to find.
065: * @return Named Binding; null if none found.
066: */
067: public abstract com.sun.jbi.wsdl2.Binding findBinding(QName name);
068:
069: /**
070: * Find named interface in this definition or the imported/included
071: * interfaces.
072: *
073: * @param name Name of interface to find.
074: * @return Named Interface; null if none found.
075: */
076: public abstract com.sun.jbi.wsdl2.Interface findInterface(QName name);
077:
078: /**
079: * Find named service in this definition or the imported/included
080: * services.
081: *
082: * @param name Name of service to find.
083: * @return Named Service; null if none found.
084: */
085: public abstract com.sun.jbi.wsdl2.Service findService(QName name);
086:
087: /**
088: * Create a new binding component, appended to this definition's binding
089: * list.
090: *
091: * @param name Name of binding to create.
092: * @return Newly created binding, appended to the bindings list.
093: */
094: public abstract com.sun.jbi.wsdl2.Binding addNewBinding(String name);
095:
096: /**
097: * Create a new import component, appended to this definition's import
098: * list.
099: *
100: * @return Newly created import, appended to the imports list.
101: */
102: public abstract com.sun.jbi.wsdl2.Import addNewImport();
103:
104: /**
105: * Create a new include, appended to this definition's include list.
106: *
107: * @return Newly created include, appended to the includes list.
108: */
109: public abstract com.sun.jbi.wsdl2.Include addNewInclude();
110:
111: /**
112: * Create a new interface component, appended to this definition's
113: * interface list.
114: *
115: * @param name Name of interface to create.
116: * @return Newly created interface, appended to interfaces list.
117: */
118: public abstract com.sun.jbi.wsdl2.Interface addNewInterface(
119: String name);
120:
121: /**
122: * Create a new service component, appended to this definition's service
123: * list.
124: *
125: * @param name Name of service to create.
126: * @return Newly created service, appended to the services list.
127: */
128: public abstract com.sun.jbi.wsdl2.Service addNewService(String name);
129:
130: /**
131: * Create a new types component, replacing the existing types component
132: * of this definition, if necessary.
133: *
134: * @return Newly created Types component.
135: */
136: public abstract com.sun.jbi.wsdl2.Types newTypes();
137:
138: /**
139: * Return this WSDL definition as an XML string.
140: *
141: * @return This definition, serialized as an XML string.
142: */
143: public abstract String toXmlString();
144:
145: /**
146: * Return this document as a DOM document. The DOM tree is a copy;
147: * altering it will not affect this definitions component.
148: *
149: * @return This definition, as a DOM document.
150: */
151: public abstract org.w3c.dom.Document toXmlDocument();
152:
153: }
154:
155: // End-of-file: Description.java
|