001: /*
002: * XML Type: ExtensionElement
003: * Namespace: http://www.w3.org/ns/wsdl
004: * Java type: org.w3.ns.wsdl.ExtensionElement
005: *
006: * Automatically generated - do not modify.
007: */
008: package org.w3.ns.wsdl.impl;
009:
010: /**
011: * An XML ExtensionElement(@http://www.w3.org/ns/wsdl).
012: *
013: * This is a complex type.
014: */
015: public class ExtensionElementImpl extends
016: org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements
017: org.w3.ns.wsdl.ExtensionElement {
018:
019: public ExtensionElementImpl(org.apache.xmlbeans.SchemaType sType) {
020: super (sType);
021: }
022:
023: private static final javax.xml.namespace.QName REQUIRED$0 = new javax.xml.namespace.QName(
024: "http://www.w3.org/ns/wsdl", "required");
025:
026: /**
027: * Gets the "required" attribute
028: */
029: public boolean getRequired() {
030: synchronized (monitor()) {
031: check_orphaned();
032: org.apache.xmlbeans.SimpleValue target = null;
033: target = (org.apache.xmlbeans.SimpleValue) get_store()
034: .find_attribute_user(REQUIRED$0);
035: if (target == null) {
036: return false;
037: }
038: return target.getBooleanValue();
039: }
040: }
041:
042: /**
043: * Gets (as xml) the "required" attribute
044: */
045: public org.apache.xmlbeans.XmlBoolean xgetRequired() {
046: synchronized (monitor()) {
047: check_orphaned();
048: org.apache.xmlbeans.XmlBoolean target = null;
049: target = (org.apache.xmlbeans.XmlBoolean) get_store()
050: .find_attribute_user(REQUIRED$0);
051: return target;
052: }
053: }
054:
055: /**
056: * True if has "required" attribute
057: */
058: public boolean isSetRequired() {
059: synchronized (monitor()) {
060: check_orphaned();
061: return get_store().find_attribute_user(REQUIRED$0) != null;
062: }
063: }
064:
065: /**
066: * Sets the "required" attribute
067: */
068: public void setRequired(boolean required) {
069: synchronized (monitor()) {
070: check_orphaned();
071: org.apache.xmlbeans.SimpleValue target = null;
072: target = (org.apache.xmlbeans.SimpleValue) get_store()
073: .find_attribute_user(REQUIRED$0);
074: if (target == null) {
075: target = (org.apache.xmlbeans.SimpleValue) get_store()
076: .add_attribute_user(REQUIRED$0);
077: }
078: target.setBooleanValue(required);
079: }
080: }
081:
082: /**
083: * Sets (as xml) the "required" attribute
084: */
085: public void xsetRequired(org.apache.xmlbeans.XmlBoolean required) {
086: synchronized (monitor()) {
087: check_orphaned();
088: org.apache.xmlbeans.XmlBoolean target = null;
089: target = (org.apache.xmlbeans.XmlBoolean) get_store()
090: .find_attribute_user(REQUIRED$0);
091: if (target == null) {
092: target = (org.apache.xmlbeans.XmlBoolean) get_store()
093: .add_attribute_user(REQUIRED$0);
094: }
095: target.set(required);
096: }
097: }
098:
099: /**
100: * Unsets the "required" attribute
101: */
102: public void unsetRequired() {
103: synchronized (monitor()) {
104: check_orphaned();
105: get_store().remove_attribute(REQUIRED$0);
106: }
107: }
108: }
|