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