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: * @(#)Endpoint.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.EndpointType;
33:
34: /**
35: * Abstract implementation of
36: * WSDL 2.0 Endpoint component
37: *
38: * @author Sun Microsystems, Inc.
39: */
40: abstract class Endpoint extends ExtensibleDocumentedComponent implements
41: com.sun.jbi.wsdl2.Endpoint {
42: /**
43: * Get the Xml bean for this component.
44: *
45: * @return Xml Bean for this component.
46: */
47: EndpointType getBean() {
48: return (EndpointType) this .mXmlObject;
49: }
50:
51: /**
52: * Construct an abstract endpoint implementation base component.
53: *
54: * @param bean The XML bean for this endpoint component
55: */
56: Endpoint(EndpointType bean) {
57: super (bean);
58: }
59:
60: /**
61: * Return this WSDL endpoint as an XML string.
62: *
63: * @return This endpoint, serialized as an XML string.
64: */
65: public abstract String toXmlString();
66:
67: /**
68: * Return this endpoint as a DOM document fragment. The DOM subtree is a
69: * copy; altering it will not affect this endpoint.
70: *
71: * @return This endpoint, as a DOM document fragment.
72: */
73: public abstract DocumentFragment toXmlDocumentFragment();
74:
75: }
76:
77: // End-of-file: Endpoint.java
|