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