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