01: /*
02: * BEGIN_HEADER - DO NOT EDIT
03: *
04: * The contents of this file are subject to the terms
05: * of the Common Development and Distribution License
06: * (the "License"). You may not use this file except
07: * in compliance with the License.
08: *
09: * You can obtain a copy of the license at
10: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
11: * See the License for the specific language governing
12: * permissions and limitations under the License.
13: *
14: * When distributing Covered Code, include this CDDL
15: * HEADER in each file and include the License file at
16: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
17: * If applicable add the following below this CDDL HEADER,
18: * with the fields enclosed by brackets "[]" replaced with
19: * your own identifying information: Portions Copyright
20: * [year] [name of copyright owner]
21: */
22:
23: /*
24: * @(#)Service.java
25: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
26: *
27: * END_HEADER - DO NOT EDIT
28: */
29: package com.sun.jbi.wsdl2.impl;
30:
31: import org.w3c.dom.DocumentFragment;
32: import org.w3.ns.wsdl.ServiceType;
33:
34: /**
35: * Abstract implementation of
36: * WSDL 2.0 Service component.
37: *
38: * @author Sun Microsystems, Inc.
39: */
40: abstract class Service extends ExtensibleDocumentedComponent implements
41: com.sun.jbi.wsdl2.Service {
42: /**
43: * Get the Xml bean for this component.
44: *
45: * @return The Xml bean for this component.
46: */
47: protected final ServiceType getBean() {
48: return (ServiceType) this .mXmlObject;
49: }
50:
51: /**
52: * Construct an abstract Service implementation base component.
53: *
54: * @param bean The XML bean for this Service component
55: */
56: Service(ServiceType bean) {
57: super (bean);
58: }
59:
60: /**
61: * Create a new end point component, appending it to this service's
62: * endpoint list.
63: *
64: * @param name NC name for the new endpoint.
65: * @param binding Binding to which the endpoint refers.
66: * @return The newly created endpoint, appended to this service's
67: * endpoint list.
68: */
69: public abstract com.sun.jbi.wsdl2.Endpoint addNewEndpoint(
70: String name, com.sun.jbi.wsdl2.Binding binding);
71:
72: /**
73: * Return this WSDL service as an XML string.
74: *
75: * @return This service, serialized as an XML string.
76: */
77: public abstract String toXmlString();
78:
79: /**
80: * Return this service as a DOM document fragment. The DOM subtree is a
81: * copy; altering it will not affect this service.
82: *
83: * @return This service, as a DOM document fragment.
84: */
85: public abstract DocumentFragment toXmlDocumentFragment();
86:
87: }
88:
89: // End-of-file: Service.java
|