/*
 * XML Type:  FileControlFileInfo
 * Namespace: http://www.bea.com/wli/control/dynamicProperties
 * Java type: com.bea.wli.control.dynamicProperties.FileControlFileInfo
 *
 * Automatically generated - do not modify.
 */
package com.bea.wli.control.dynamicProperties.impl;
/**
 * An XML FileControlFileInfo(@http://www.bea.com/wli/control/dynamicProperties).
 *
 * This is a complex type.
 */
public class FileControlFileInfoImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.bea.wli.control.dynamicProperties.FileControlFileInfo
{
    
    public FileControlFileInfoImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName FILEMASK$0 = 
        new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "file-mask");
    private static final javax.xml.namespace.QName DIRECTORYNAME$2 = 
        new javax.xml.namespace.QName("http://www.bea.com/wli/control/dynamicProperties", "directory-name");
    
    
    /**
     * Gets the "file-mask" element
     */
    public java.lang.String getFileMask()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FILEMASK$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "file-mask" element
     */
    public org.apache.xmlbeans.XmlString xgetFileMask()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FILEMASK$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "file-mask" element
     */
    public boolean isSetFileMask()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FILEMASK$0) != 0;
        }
    }
    
    /**
     * Sets the "file-mask" element
     */
    public void setFileMask(java.lang.String fileMask)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FILEMASK$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FILEMASK$0);
            }
            target.setStringValue(fileMask);
        }
    }
    
    /**
     * Sets (as xml) the "file-mask" element
     */
    public void xsetFileMask(org.apache.xmlbeans.XmlString fileMask)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FILEMASK$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(FILEMASK$0);
            }
            target.set(fileMask);
        }
    }
    
    /**
     * Unsets the "file-mask" element
     */
    public void unsetFileMask()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FILEMASK$0, 0);
        }
    }
    
    /**
     * Gets the "directory-name" element
     */
    public java.lang.String getDirectoryName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DIRECTORYNAME$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "directory-name" element
     */
    public org.apache.xmlbeans.XmlString xgetDirectoryName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DIRECTORYNAME$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "directory-name" element
     */
    public boolean isSetDirectoryName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DIRECTORYNAME$2) != 0;
        }
    }
    
    /**
     * Sets the "directory-name" element
     */
    public void setDirectoryName(java.lang.String directoryName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DIRECTORYNAME$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DIRECTORYNAME$2);
            }
            target.setStringValue(directoryName);
        }
    }
    
    /**
     * Sets (as xml) the "directory-name" element
     */
    public void xsetDirectoryName(org.apache.xmlbeans.XmlString directoryName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DIRECTORYNAME$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DIRECTORYNAME$2);
            }
            target.set(directoryName);
        }
    }
    
    /**
     * Unsets the "directory-name" element
     */
    public void unsetDirectoryName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DIRECTORYNAME$2, 0);
        }
    }
}
