/*
 * An XML attribute type.
 * Localname: specializes
 * Namespace: http://docs.oasis-open.org/wsrf/2004/10/wsrf-WSResourceMetadataDescriptor-1.0-draft-01.xsd
 * Java type: org.activemq.ws.xmlbeans.resource.md.SpecializesAttribute
 *
 * Automatically generated - do not modify.
 */
package org.activemq.ws.xmlbeans.resource.md.impl;
/**
 * A document containing one specializes(@http://docs.oasis-open.org/wsrf/2004/10/wsrf-WSResourceMetadataDescriptor-1.0-draft-01.xsd) attribute.
 *
 * This is a complex type.
 */
public class SpecializesAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.activemq.ws.xmlbeans.resource.md.SpecializesAttribute
{
    
    public SpecializesAttributeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SPECIALIZES$0 = 
        new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/2004/10/wsrf-WSResourceMetadataDescriptor-1.0-draft-01.xsd", "specializes");
    
    
    /**
     * Gets the "specializes" attribute
     */
    public java.util.List getSpecializes()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SPECIALIZES$0);
            if (target == null)
            {
                return null;
            }
            return target.getListValue();
        }
    }
    
    /**
     * Gets (as xml) the "specializes" attribute
     */
    public org.activemq.ws.xmlbeans.resource.md.SpecializesType xgetSpecializes()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.md.SpecializesType target = null;
            target = (org.activemq.ws.xmlbeans.resource.md.SpecializesType)get_store().find_attribute_user(SPECIALIZES$0);
            return target;
        }
    }
    
    /**
     * True if has "specializes" attribute
     */
    public boolean isSetSpecializes()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(SPECIALIZES$0) != null;
        }
    }
    
    /**
     * Sets the "specializes" attribute
     */
    public void setSpecializes(java.util.List specializes)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SPECIALIZES$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SPECIALIZES$0);
            }
            target.setListValue(specializes);
        }
    }
    
    /**
     * Sets (as xml) the "specializes" attribute
     */
    public void xsetSpecializes(org.activemq.ws.xmlbeans.resource.md.SpecializesType specializes)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.activemq.ws.xmlbeans.resource.md.SpecializesType target = null;
            target = (org.activemq.ws.xmlbeans.resource.md.SpecializesType)get_store().find_attribute_user(SPECIALIZES$0);
            if (target == null)
            {
                target = (org.activemq.ws.xmlbeans.resource.md.SpecializesType)get_store().add_attribute_user(SPECIALIZES$0);
            }
            target.set(specializes);
        }
    }
    
    /**
     * Unsets the "specializes" attribute
     */
    public void unsetSpecializes()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(SPECIALIZES$0);
        }
    }
}
