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