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

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

The newest version!
/*
 * XML Type:  executable-in-binding
 * Namespace: http://zero-install.sourceforge.net/2004/injector/interface
 * Java type: net.zeroinstall.model.ExecutableInBinding
 *
 * Automatically generated - do not modify.
 */
package net.zeroinstall.model.impl;
/**
 * An XML executable-in-binding(@http://zero-install.sourceforge.net/2004/injector/interface).
 *
 * This is a complex type.
 */
public class ExecutableInBindingImpl extends net.zeroinstall.model.impl.FeedElementImpl implements net.zeroinstall.model.ExecutableInBinding
{
    private static final long serialVersionUID = 1L;
    
    public ExecutableInBindingImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName COMMAND$0 = 
        new javax.xml.namespace.QName("", "command");
    
    
    /**
     * Gets the "command" attribute
     */
    public java.lang.String getCommand()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(COMMAND$0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "command" attribute
     */
    public org.apache.xmlbeans.XmlString xgetCommand()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(COMMAND$0);
            return target;
        }
    }
    
    /**
     * True if has "command" attribute
     */
    public boolean isSetCommand()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(COMMAND$0) != null;
        }
    }
    
    /**
     * Sets the "command" attribute
     */
    public void setCommand(java.lang.String command)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(COMMAND$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(COMMAND$0);
            }
            target.setStringValue(command);
        }
    }
    
    /**
     * Sets (as xml) the "command" attribute
     */
    public void xsetCommand(org.apache.xmlbeans.XmlString command)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(COMMAND$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(COMMAND$0);
            }
            target.set(command);
        }
    }
    
    /**
     * Unsets the "command" attribute
     */
    public void unsetCommand()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(COMMAND$0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy