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