001    /*
002     * XML Type:  ITTPrincipalNameStaticType
003     * Namespace: http://openejb.apache.org/xml/ns/corba-css-config-2.1
004     * Java type: org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameStaticType
005     *
006     * Automatically generated - do not modify.
007     */
008    package org.apache.geronimo.corba.xbeans.csiv2.css.impl;
009    /**
010     * An XML ITTPrincipalNameStaticType(@http://openejb.apache.org/xml/ns/corba-css-config-2.1).
011     *
012     * This is a complex type.
013     */
014    public class CSSITTPrincipalNameStaticTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.geronimo.corba.xbeans.csiv2.css.CSSITTPrincipalNameStaticType
015    {
016        
017        public CSSITTPrincipalNameStaticTypeImpl(org.apache.xmlbeans.SchemaType sType)
018        {
019            super(sType);
020        }
021        
022        private static final javax.xml.namespace.QName NAME$0 = 
023            new javax.xml.namespace.QName("", "name");
024        private static final javax.xml.namespace.QName OID$2 = 
025            new javax.xml.namespace.QName("", "oid");
026        
027        
028        /**
029         * Gets the "name" attribute
030         */
031        public java.lang.String getName()
032        {
033            synchronized (monitor())
034            {
035                check_orphaned();
036                org.apache.xmlbeans.SimpleValue target = null;
037                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0);
038                if (target == null)
039                {
040                    return null;
041                }
042                return target.getStringValue();
043            }
044        }
045        
046        /**
047         * Gets (as xml) the "name" attribute
048         */
049        public org.apache.xmlbeans.XmlString xgetName()
050        {
051            synchronized (monitor())
052            {
053                check_orphaned();
054                org.apache.xmlbeans.XmlString target = null;
055                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$0);
056                return target;
057            }
058        }
059        
060        /**
061         * True if has "name" attribute
062         */
063        public boolean isSetName()
064        {
065            synchronized (monitor())
066            {
067                check_orphaned();
068                return get_store().find_attribute_user(NAME$0) != null;
069            }
070        }
071        
072        /**
073         * Sets the "name" attribute
074         */
075        public void setName(java.lang.String name)
076        {
077            synchronized (monitor())
078            {
079                check_orphaned();
080                org.apache.xmlbeans.SimpleValue target = null;
081                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0);
082                if (target == null)
083                {
084                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$0);
085                }
086                target.setStringValue(name);
087            }
088        }
089        
090        /**
091         * Sets (as xml) the "name" attribute
092         */
093        public void xsetName(org.apache.xmlbeans.XmlString name)
094        {
095            synchronized (monitor())
096            {
097                check_orphaned();
098                org.apache.xmlbeans.XmlString target = null;
099                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$0);
100                if (target == null)
101                {
102                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$0);
103                }
104                target.set(name);
105            }
106        }
107        
108        /**
109         * Unsets the "name" attribute
110         */
111        public void unsetName()
112        {
113            synchronized (monitor())
114            {
115                check_orphaned();
116                get_store().remove_attribute(NAME$0);
117            }
118        }
119        
120        /**
121         * Gets the "oid" attribute
122         */
123        public java.lang.String getOid()
124        {
125            synchronized (monitor())
126            {
127                check_orphaned();
128                org.apache.xmlbeans.SimpleValue target = null;
129                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OID$2);
130                if (target == null)
131                {
132                    return null;
133                }
134                return target.getStringValue();
135            }
136        }
137        
138        /**
139         * Gets (as xml) the "oid" attribute
140         */
141        public org.apache.xmlbeans.XmlString xgetOid()
142        {
143            synchronized (monitor())
144            {
145                check_orphaned();
146                org.apache.xmlbeans.XmlString target = null;
147                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(OID$2);
148                return target;
149            }
150        }
151        
152        /**
153         * True if has "oid" attribute
154         */
155        public boolean isSetOid()
156        {
157            synchronized (monitor())
158            {
159                check_orphaned();
160                return get_store().find_attribute_user(OID$2) != null;
161            }
162        }
163        
164        /**
165         * Sets the "oid" attribute
166         */
167        public void setOid(java.lang.String oid)
168        {
169            synchronized (monitor())
170            {
171                check_orphaned();
172                org.apache.xmlbeans.SimpleValue target = null;
173                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OID$2);
174                if (target == null)
175                {
176                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(OID$2);
177                }
178                target.setStringValue(oid);
179            }
180        }
181        
182        /**
183         * Sets (as xml) the "oid" attribute
184         */
185        public void xsetOid(org.apache.xmlbeans.XmlString oid)
186        {
187            synchronized (monitor())
188            {
189                check_orphaned();
190                org.apache.xmlbeans.XmlString target = null;
191                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(OID$2);
192                if (target == null)
193                {
194                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(OID$2);
195                }
196                target.set(oid);
197            }
198        }
199        
200        /**
201         * Unsets the "oid" attribute
202         */
203        public void unsetOid()
204        {
205            synchronized (monitor())
206            {
207                check_orphaned();
208                get_store().remove_attribute(OID$2);
209            }
210        }
211    }