001/*
002 * XML Type:  identifiedType
003 * Namespace: http://www.springframework.org/schema/beans
004 * Java type: org.springframework.schema.beans.IdentifiedType
005 *
006 * Automatically generated - do not modify.
007 */
008package org.springframework.schema.beans.impl;
009/**
010 * An XML identifiedType(@http://www.springframework.org/schema/beans).
011 *
012 * This is a complex type.
013 */
014public class IdentifiedTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.springframework.schema.beans.IdentifiedType
015{
016    private static final long serialVersionUID = 1L;
017    
018    public IdentifiedTypeImpl(org.apache.xmlbeans.SchemaType sType)
019    {
020        super(sType);
021    }
022    
023    private static final javax.xml.namespace.QName ID$0 = 
024        new javax.xml.namespace.QName("", "id");
025    
026    
027    /**
028     * Gets the "id" attribute
029     */
030    public java.lang.String getId()
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(ID$0);
037            if (target == null)
038            {
039                return null;
040            }
041            return target.getStringValue();
042        }
043    }
044    
045    /**
046     * Gets (as xml) the "id" attribute
047     */
048    public org.apache.xmlbeans.XmlID xgetId()
049    {
050        synchronized (monitor())
051        {
052            check_orphaned();
053            org.apache.xmlbeans.XmlID target = null;
054            target = (org.apache.xmlbeans.XmlID)get_store().find_attribute_user(ID$0);
055            return target;
056        }
057    }
058    
059    /**
060     * True if has "id" attribute
061     */
062    public boolean isSetId()
063    {
064        synchronized (monitor())
065        {
066            check_orphaned();
067            return get_store().find_attribute_user(ID$0) != null;
068        }
069    }
070    
071    /**
072     * Sets the "id" attribute
073     */
074    public void setId(java.lang.String id)
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(ID$0);
081            if (target == null)
082            {
083                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ID$0);
084            }
085            target.setStringValue(id);
086        }
087    }
088    
089    /**
090     * Sets (as xml) the "id" attribute
091     */
092    public void xsetId(org.apache.xmlbeans.XmlID id)
093    {
094        synchronized (monitor())
095        {
096            check_orphaned();
097            org.apache.xmlbeans.XmlID target = null;
098            target = (org.apache.xmlbeans.XmlID)get_store().find_attribute_user(ID$0);
099            if (target == null)
100            {
101                target = (org.apache.xmlbeans.XmlID)get_store().add_attribute_user(ID$0);
102            }
103            target.set(id);
104        }
105    }
106    
107    /**
108     * Unsets the "id" attribute
109     */
110    public void unsetId()
111    {
112        synchronized (monitor())
113        {
114            check_orphaned();
115            get_store().remove_attribute(ID$0);
116        }
117    }
118}