![JAR search and dependency download from the Maven repository](/logo.png)
net.zeroinstall.model.impl.IconDocumentImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zeroinstall-model Show documentation
Show all versions of zeroinstall-model Show documentation
The Zero Install XSD model transformed by Apache XMLBeans to Java source code.
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