001    /*
002     * XML Type:  realmPrincipalType
003     * Namespace: http://geronimo.apache.org/xml/ns/security-1.2
004     * Java type: org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType
005     *
006     * Automatically generated - do not modify.
007     */
008    package org.apache.geronimo.xbeans.geronimo.security.impl;
009    /**
010     * An XML realmPrincipalType(@http://geronimo.apache.org/xml/ns/security-1.2).
011     *
012     * This is a complex type.
013     */
014    public class GerRealmPrincipalTypeImpl extends org.apache.geronimo.xbeans.geronimo.security.impl.GerLoginDomainPrincipalTypeImpl implements org.apache.geronimo.xbeans.geronimo.security.GerRealmPrincipalType
015    {
016        
017        public GerRealmPrincipalTypeImpl(org.apache.xmlbeans.SchemaType sType)
018        {
019            super(sType);
020        }
021        
022        private static final javax.xml.namespace.QName REALMNAME$0 = 
023            new javax.xml.namespace.QName("", "realm-name");
024        
025        
026        /**
027         * Gets the "realm-name" attribute
028         */
029        public java.lang.String getRealmName()
030        {
031            synchronized (monitor())
032            {
033                check_orphaned();
034                org.apache.xmlbeans.SimpleValue target = null;
035                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REALMNAME$0);
036                if (target == null)
037                {
038                    return null;
039                }
040                return target.getStringValue();
041            }
042        }
043        
044        /**
045         * Gets (as xml) the "realm-name" attribute
046         */
047        public org.apache.xmlbeans.XmlString xgetRealmName()
048        {
049            synchronized (monitor())
050            {
051                check_orphaned();
052                org.apache.xmlbeans.XmlString target = null;
053                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(REALMNAME$0);
054                return target;
055            }
056        }
057        
058        /**
059         * Sets the "realm-name" attribute
060         */
061        public void setRealmName(java.lang.String realmName)
062        {
063            synchronized (monitor())
064            {
065                check_orphaned();
066                org.apache.xmlbeans.SimpleValue target = null;
067                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REALMNAME$0);
068                if (target == null)
069                {
070                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(REALMNAME$0);
071                }
072                target.setStringValue(realmName);
073            }
074        }
075        
076        /**
077         * Sets (as xml) the "realm-name" attribute
078         */
079        public void xsetRealmName(org.apache.xmlbeans.XmlString realmName)
080        {
081            synchronized (monitor())
082            {
083                check_orphaned();
084                org.apache.xmlbeans.XmlString target = null;
085                target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(REALMNAME$0);
086                if (target == null)
087                {
088                    target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(REALMNAME$0);
089                }
090                target.set(realmName);
091            }
092        }
093    }