net.zeroinstall.model.impl.InterfaceDocumentImpl 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: interface
* Namespace: http://zero-install.sourceforge.net/2004/injector/interface
* Java type: net.zeroinstall.model.InterfaceDocument
*
* Automatically generated - do not modify.
*/
package net.zeroinstall.model.impl;
/**
* A document containing one interface(@http://zero-install.sourceforge.net/2004/injector/interface) element.
*
* This is a complex type.
*/
public class InterfaceDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.zeroinstall.model.InterfaceDocument
{
private static final long serialVersionUID = 1L;
public InterfaceDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName INTERFACE$0 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "interface");
/**
* Gets the "interface" element
*/
public net.zeroinstall.model.Feed getInterface()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Feed target = null;
target = (net.zeroinstall.model.Feed)get_store().find_element_user(INTERFACE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "interface" element
*/
public void setInterface(net.zeroinstall.model.Feed xinterface)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Feed target = null;
target = (net.zeroinstall.model.Feed)get_store().find_element_user(INTERFACE$0, 0);
if (target == null)
{
target = (net.zeroinstall.model.Feed)get_store().add_element_user(INTERFACE$0);
}
target.set(xinterface);
}
}
/**
* Appends and returns a new empty "interface" element
*/
public net.zeroinstall.model.Feed addNewInterface()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Feed target = null;
target = (net.zeroinstall.model.Feed)get_store().add_element_user(INTERFACE$0);
return target;
}
}
}