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

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

The newest version!
/*
 * An XML document type.
 * Localname: icon
 * Namespace: http://zero-install.sourceforge.net/2004/injector/interface
 * Java type: net.zeroinstall.model.IconDocument
 *
 * Automatically generated - do not modify.
 */
package net.zeroinstall.model.impl;
/**
 * A document containing one icon(@http://zero-install.sourceforge.net/2004/injector/interface) element.
 *
 * This is a complex type.
 */
public class IconDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.zeroinstall.model.IconDocument
{
    private static final long serialVersionUID = 1L;
    
    public IconDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ICON$0 = 
        new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "icon");
    
    
    /**
     * Gets the "icon" element
     */
    public net.zeroinstall.model.Icon getIcon()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Icon target = null;
            target = (net.zeroinstall.model.Icon)get_store().find_element_user(ICON$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "icon" element
     */
    public void setIcon(net.zeroinstall.model.Icon icon)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Icon target = null;
            target = (net.zeroinstall.model.Icon)get_store().find_element_user(ICON$0, 0);
            if (target == null)
            {
                target = (net.zeroinstall.model.Icon)get_store().add_element_user(ICON$0);
            }
            target.set(icon);
        }
    }
    
    /**
     * Appends and returns a new empty "icon" element
     */
    public net.zeroinstall.model.Icon addNewIcon()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.zeroinstall.model.Icon target = null;
            target = (net.zeroinstall.model.Icon)get_store().add_element_user(ICON$0);
            return target;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy