001: /*
002: * XML Type: DocumentedType
003: * Namespace: http://www.w3.org/ns/wsdl
004: * Java type: org.w3.ns.wsdl.DocumentedType
005: *
006: * Automatically generated - do not modify.
007: */
008: package org.w3.ns.wsdl.impl;
009:
010: /**
011: * An XML DocumentedType(@http://www.w3.org/ns/wsdl).
012: *
013: * This is a complex type.
014: */
015: public class DocumentedTypeImpl extends
016: org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements
017: org.w3.ns.wsdl.DocumentedType {
018:
019: public DocumentedTypeImpl(org.apache.xmlbeans.SchemaType sType) {
020: super (sType);
021: }
022:
023: private static final javax.xml.namespace.QName DOCUMENTATION$0 = new javax.xml.namespace.QName(
024: "http://www.w3.org/ns/wsdl", "documentation");
025:
026: /**
027: * Gets array of all "documentation" elements
028: */
029: public org.w3.ns.wsdl.DocumentationType[] getDocumentationArray() {
030: synchronized (monitor()) {
031: check_orphaned();
032: java.util.List targetList = new java.util.ArrayList();
033: get_store().find_all_element_users(DOCUMENTATION$0,
034: targetList);
035: org.w3.ns.wsdl.DocumentationType[] result = new org.w3.ns.wsdl.DocumentationType[targetList
036: .size()];
037: targetList.toArray(result);
038: return result;
039: }
040: }
041:
042: /**
043: * Gets ith "documentation" element
044: */
045: public org.w3.ns.wsdl.DocumentationType getDocumentationArray(int i) {
046: synchronized (monitor()) {
047: check_orphaned();
048: org.w3.ns.wsdl.DocumentationType target = null;
049: target = (org.w3.ns.wsdl.DocumentationType) get_store()
050: .find_element_user(DOCUMENTATION$0, i);
051: if (target == null) {
052: throw new IndexOutOfBoundsException();
053: }
054: return target;
055: }
056: }
057:
058: /**
059: * Returns number of "documentation" element
060: */
061: public int sizeOfDocumentationArray() {
062: synchronized (monitor()) {
063: check_orphaned();
064: return get_store().count_elements(DOCUMENTATION$0);
065: }
066: }
067:
068: /**
069: * Sets array of all "documentation" element
070: */
071: public void setDocumentationArray(
072: org.w3.ns.wsdl.DocumentationType[] documentationArray) {
073: synchronized (monitor()) {
074: check_orphaned();
075: arraySetterHelper(documentationArray, DOCUMENTATION$0);
076: }
077: }
078:
079: /**
080: * Sets ith "documentation" element
081: */
082: public void setDocumentationArray(int i,
083: org.w3.ns.wsdl.DocumentationType documentation) {
084: synchronized (monitor()) {
085: check_orphaned();
086: org.w3.ns.wsdl.DocumentationType target = null;
087: target = (org.w3.ns.wsdl.DocumentationType) get_store()
088: .find_element_user(DOCUMENTATION$0, i);
089: if (target == null) {
090: throw new IndexOutOfBoundsException();
091: }
092: target.set(documentation);
093: }
094: }
095:
096: /**
097: * Inserts and returns a new empty value (as xml) as the ith "documentation" element
098: */
099: public org.w3.ns.wsdl.DocumentationType insertNewDocumentation(int i) {
100: synchronized (monitor()) {
101: check_orphaned();
102: org.w3.ns.wsdl.DocumentationType target = null;
103: target = (org.w3.ns.wsdl.DocumentationType) get_store()
104: .insert_element_user(DOCUMENTATION$0, i);
105: return target;
106: }
107: }
108:
109: /**
110: * Appends and returns a new empty value (as xml) as the last "documentation" element
111: */
112: public org.w3.ns.wsdl.DocumentationType addNewDocumentation() {
113: synchronized (monitor()) {
114: check_orphaned();
115: org.w3.ns.wsdl.DocumentationType target = null;
116: target = (org.w3.ns.wsdl.DocumentationType) get_store()
117: .add_element_user(DOCUMENTATION$0);
118: return target;
119: }
120: }
121:
122: /**
123: * Removes the ith "documentation" element
124: */
125: public void removeDocumentation(int i) {
126: synchronized (monitor()) {
127: check_orphaned();
128: get_store().remove_element(DOCUMENTATION$0, i);
129: }
130: }
131: }
|