All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.zeroinstall.model.impl.EnvironmentImpl Maven / Gradle / Ivy

The newest version!
/*
 * XML Type:  environment
 * Namespace: http://zero-install.sourceforge.net/2004/injector/interface
 * Java type: net.zeroinstall.model.Environment
 *
 * Automatically generated - do not modify.
 */
package net.zeroinstall.model.impl;
/**
 * An XML environment(@http://zero-install.sourceforge.net/2004/injector/interface).
 *
 * This is a complex type.
 */
public class EnvironmentImpl extends net.zeroinstall.model.impl.BindingBaseImpl implements net.zeroinstall.model.Environment
{
    private static final long serialVersionUID = 1L;
    
    public EnvironmentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName NAME$0 = 
        new javax.xml.namespace.QName("", "name");
    private static final javax.xml.namespace.QName VALUE$2 = 
        new javax.xml.namespace.QName("", "value");
    private static final javax.xml.namespace.QName INSERT$4 = 
        new javax.xml.namespace.QName("", "insert");
    private static final javax.xml.namespace.QName MODE$6 = 
        new javax.xml.namespace.QName("", "mode");
    private static final javax.xml.namespace.QName SEPARATOR$8 = 
        new javax.xml.namespace.QName("", "separator");
    private static final javax.xml.namespace.QName DEFAULT$10 = 
        new javax.xml.namespace.QName("", "default");
    
    
    /**
     * Gets the "name" attribute
     */
    public java.lang.String getName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "name" attribute
     */
    public org.apache.xmlbeans.XmlString xgetName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$0);
            return target;
        }
    }
    
    /**
     * Sets the "name" attribute
     */
    public void setName(java.lang.String name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$0);
            }
            target.setStringValue(name);
        }
    }
    
    /**
     * Sets (as xml) the "name" attribute
     */
    public void xsetName(org.apache.xmlbeans.XmlString name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$0);
            }
            target.set(name);
        }
    }
    
    /**
     * Gets the "value" attribute
     */
    public java.lang.String getValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALUE$2);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "value" attribute
     */
    public org.apache.xmlbeans.XmlString xgetValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(VALUE$2);
            return target;
        }
    }
    
    /**
     * True if has "value" attribute
     */
    public boolean isSetValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(VALUE$2) != null;
        }
    }
    
    /**
     * Sets the "value" attribute
     */
    public void setValue(java.lang.String value)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALUE$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(VALUE$2);
            }
            target.setStringValue(value);
        }
    }
    
    /**
     * Sets (as xml) the "value" attribute
     */
    public void xsetValue(org.apache.xmlbeans.XmlString value)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(VALUE$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(VALUE$2);
            }
            target.set(value);
        }
    }
    
    /**
     * Unsets the "value" attribute
     */
    public void unsetValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(VALUE$2);
        }
    }
    
    /**
     * Gets the "insert" attribute
     */
    public java.lang.String getInsert()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(INSERT$4);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "insert" attribute
     */
    public org.apache.xmlbeans.XmlString xgetInsert()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(INSERT$4);
            return target;
        }
    }
    
    /**
     * True if has "insert" attribute
     */
    public boolean isSetInsert()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(INSERT$4) != null;
        }
    }
    
    /**
     * Sets the "insert" attribute
     */
    public void setInsert(java.lang.String insert)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(INSERT$4);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(INSERT$4);
            }
            target.setStringValue(insert);
        }
    }
    
    /**
     * Sets (as xml) the "insert" attribute
     */
    public void xsetInsert(org.apache.xmlbeans.XmlString insert)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(INSERT$4);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(INSERT$4);
            }
            target.set(insert);
        }
    }
    
    /**
     * Unsets the "insert" attribute
     */
    public void unsetInsert()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(INSERT$4);
        }
    }
    
    /**
     * Gets the "mode" attribute
     */
    public net.zeroinstall.model.EnvironmentMode.Enum getMode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MODE$6);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(MODE$6);
            }
            if (target == null)
            {
                return null;
            }
            return (net.zeroinstall.model.EnvironmentMode.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "mode" attribute
     */
    public net.zeroinstall.model.EnvironmentMode xgetMode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.EnvironmentMode target = null;
            target = (net.zeroinstall.model.EnvironmentMode)get_store().find_attribute_user(MODE$6);
            if (target == null)
            {
                target = (net.zeroinstall.model.EnvironmentMode)get_default_attribute_value(MODE$6);
            }
            return target;
        }
    }
    
    /**
     * True if has "mode" attribute
     */
    public boolean isSetMode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(MODE$6) != null;
        }
    }
    
    /**
     * Sets the "mode" attribute
     */
    public void setMode(net.zeroinstall.model.EnvironmentMode.Enum mode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MODE$6);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MODE$6);
            }
            target.setEnumValue(mode);
        }
    }
    
    /**
     * Sets (as xml) the "mode" attribute
     */
    public void xsetMode(net.zeroinstall.model.EnvironmentMode mode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.EnvironmentMode target = null;
            target = (net.zeroinstall.model.EnvironmentMode)get_store().find_attribute_user(MODE$6);
            if (target == null)
            {
                target = (net.zeroinstall.model.EnvironmentMode)get_store().add_attribute_user(MODE$6);
            }
            target.set(mode);
        }
    }
    
    /**
     * Unsets the "mode" attribute
     */
    public void unsetMode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(MODE$6);
        }
    }
    
    /**
     * Gets the "separator" attribute
     */
    public java.lang.String getSeparator()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SEPARATOR$8);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "separator" attribute
     */
    public org.apache.xmlbeans.XmlString xgetSeparator()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(SEPARATOR$8);
            return target;
        }
    }
    
    /**
     * True if has "separator" attribute
     */
    public boolean isSetSeparator()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(SEPARATOR$8) != null;
        }
    }
    
    /**
     * Sets the "separator" attribute
     */
    public void setSeparator(java.lang.String separator)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SEPARATOR$8);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SEPARATOR$8);
            }
            target.setStringValue(separator);
        }
    }
    
    /**
     * Sets (as xml) the "separator" attribute
     */
    public void xsetSeparator(org.apache.xmlbeans.XmlString separator)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(SEPARATOR$8);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(SEPARATOR$8);
            }
            target.set(separator);
        }
    }
    
    /**
     * Unsets the "separator" attribute
     */
    public void unsetSeparator()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(SEPARATOR$8);
        }
    }
    
    /**
     * Gets the "default" attribute
     */
    public java.lang.String getDefault()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DEFAULT$10);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "default" attribute
     */
    public org.apache.xmlbeans.XmlString xgetDefault()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DEFAULT$10);
            return target;
        }
    }
    
    /**
     * True if has "default" attribute
     */
    public boolean isSetDefault()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(DEFAULT$10) != null;
        }
    }
    
    /**
     * Sets the "default" attribute
     */
    public void setDefault(java.lang.String xdefault)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DEFAULT$10);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DEFAULT$10);
            }
            target.setStringValue(xdefault);
        }
    }
    
    /**
     * Sets (as xml) the "default" attribute
     */
    public void xsetDefault(org.apache.xmlbeans.XmlString xdefault)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DEFAULT$10);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DEFAULT$10);
            }
            target.set(xdefault);
        }
    }
    
    /**
     * Unsets the "default" attribute
     */
    public void unsetDefault()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(DEFAULT$10);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy