01: /*
02: * An XML document type.
03: * Localname: endpoint
04: * Namespace: http://www.w3.org/ns/wsdl
05: * Java type: org.w3.ns.wsdl.EndpointDocument
06: *
07: * Automatically generated - do not modify.
08: */
09: package org.w3.ns.wsdl.impl;
10:
11: /**
12: * A document containing one endpoint(@http://www.w3.org/ns/wsdl) element.
13: *
14: * This is a complex type.
15: */
16: public class EndpointDocumentImpl extends
17: org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements
18: org.w3.ns.wsdl.EndpointDocument {
19:
20: public EndpointDocumentImpl(org.apache.xmlbeans.SchemaType sType) {
21: super (sType);
22: }
23:
24: private static final javax.xml.namespace.QName ENDPOINT$0 = new javax.xml.namespace.QName(
25: "http://www.w3.org/ns/wsdl", "endpoint");
26:
27: /**
28: * Gets the "endpoint" element
29: */
30: public org.w3.ns.wsdl.EndpointType getEndpoint() {
31: synchronized (monitor()) {
32: check_orphaned();
33: org.w3.ns.wsdl.EndpointType target = null;
34: target = (org.w3.ns.wsdl.EndpointType) get_store()
35: .find_element_user(ENDPOINT$0, 0);
36: if (target == null) {
37: return null;
38: }
39: return target;
40: }
41: }
42:
43: /**
44: * Sets the "endpoint" element
45: */
46: public void setEndpoint(org.w3.ns.wsdl.EndpointType endpoint) {
47: synchronized (monitor()) {
48: check_orphaned();
49: org.w3.ns.wsdl.EndpointType target = null;
50: target = (org.w3.ns.wsdl.EndpointType) get_store()
51: .find_element_user(ENDPOINT$0, 0);
52: if (target == null) {
53: target = (org.w3.ns.wsdl.EndpointType) get_store()
54: .add_element_user(ENDPOINT$0);
55: }
56: target.set(endpoint);
57: }
58: }
59:
60: /**
61: * Appends and returns a new empty "endpoint" element
62: */
63: public org.w3.ns.wsdl.EndpointType addNewEndpoint() {
64: synchronized (monitor()) {
65: check_orphaned();
66: org.w3.ns.wsdl.EndpointType target = null;
67: target = (org.w3.ns.wsdl.EndpointType) get_store()
68: .add_element_user(ENDPOINT$0);
69: return target;
70: }
71: }
72: }
|