001    /*
002     * XML Type:  descriptionType
003     * Namespace: http://openejb.apache.org/xml/ns/corba-css-config-2.1
004     * Java type: org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType
005     *
006     * Automatically generated - do not modify.
007     */
008    package org.apache.geronimo.corba.xbeans.csiv2.css.impl;
009    /**
010     * An XML descriptionType(@http://openejb.apache.org/xml/ns/corba-css-config-2.1).
011     *
012     * This is an atomic type that is a restriction of org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType.
013     */
014    public class CSSDescriptionTypeImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements org.apache.geronimo.corba.xbeans.csiv2.css.CSSDescriptionType
015    {
016        
017        public CSSDescriptionTypeImpl(org.apache.xmlbeans.SchemaType sType)
018        {
019            super(sType, true);
020        }
021        
022        protected CSSDescriptionTypeImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
023        {
024            super(sType, b);
025        }
026        
027        private static final javax.xml.namespace.QName LANG$0 = 
028            new javax.xml.namespace.QName("http://www.w3.org/XML/1998/namespace", "lang");
029        
030        
031        /**
032         * Gets the "lang" attribute
033         */
034        public java.lang.String getLang()
035        {
036            synchronized (monitor())
037            {
038                check_orphaned();
039                org.apache.xmlbeans.SimpleValue target = null;
040                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANG$0);
041                if (target == null)
042                {
043                    return null;
044                }
045                return target.getStringValue();
046            }
047        }
048        
049        /**
050         * Gets (as xml) the "lang" attribute
051         */
052        public org.apache.xmlbeans.XmlLanguage xgetLang()
053        {
054            synchronized (monitor())
055            {
056                check_orphaned();
057                org.apache.xmlbeans.XmlLanguage target = null;
058                target = (org.apache.xmlbeans.XmlLanguage)get_store().find_attribute_user(LANG$0);
059                return target;
060            }
061        }
062        
063        /**
064         * True if has "lang" attribute
065         */
066        public boolean isSetLang()
067        {
068            synchronized (monitor())
069            {
070                check_orphaned();
071                return get_store().find_attribute_user(LANG$0) != null;
072            }
073        }
074        
075        /**
076         * Sets the "lang" attribute
077         */
078        public void setLang(java.lang.String lang)
079        {
080            synchronized (monitor())
081            {
082                check_orphaned();
083                org.apache.xmlbeans.SimpleValue target = null;
084                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANG$0);
085                if (target == null)
086                {
087                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LANG$0);
088                }
089                target.setStringValue(lang);
090            }
091        }
092        
093        /**
094         * Sets (as xml) the "lang" attribute
095         */
096        public void xsetLang(org.apache.xmlbeans.XmlLanguage lang)
097        {
098            synchronized (monitor())
099            {
100                check_orphaned();
101                org.apache.xmlbeans.XmlLanguage target = null;
102                target = (org.apache.xmlbeans.XmlLanguage)get_store().find_attribute_user(LANG$0);
103                if (target == null)
104                {
105                    target = (org.apache.xmlbeans.XmlLanguage)get_store().add_attribute_user(LANG$0);
106                }
107                target.set(lang);
108            }
109        }
110        
111        /**
112         * Unsets the "lang" attribute
113         */
114        public void unsetLang()
115        {
116            synchronized (monitor())
117            {
118                check_orphaned();
119                get_store().remove_attribute(LANG$0);
120            }
121        }
122    }