net.zeroinstall.model.impl.GroupImpl 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!
/*
* XML Type: group
* Namespace: http://zero-install.sourceforge.net/2004/injector/interface
* Java type: net.zeroinstall.model.Group
*
* Automatically generated - do not modify.
*/
package net.zeroinstall.model.impl;
/**
* An XML group(@http://zero-install.sourceforge.net/2004/injector/interface).
*
* This is a complex type.
*/
public class GroupImpl extends net.zeroinstall.model.impl.ElementImpl implements net.zeroinstall.model.Group
{
private static final long serialVersionUID = 1L;
public GroupImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName BINDING$0 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "binding");
private static final javax.xml.namespace.QName ENVIRONMENT$2 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "environment");
private static final javax.xml.namespace.QName OVERLAY$4 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "overlay");
private static final javax.xml.namespace.QName EXECUTABLEINVAR$6 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "executable-in-var");
private static final javax.xml.namespace.QName EXECUTABLEINPATH$8 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "executable-in-path");
private static final javax.xml.namespace.QName COMMAND$10 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "command");
private static final javax.xml.namespace.QName REQUIRES$12 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "requires");
private static final javax.xml.namespace.QName RESTRICTS$14 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "restricts");
private static final javax.xml.namespace.QName IMPLEMENTATION$16 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "implementation");
private static final javax.xml.namespace.QName PACKAGEIMPLEMENTATION$18 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "package-implementation");
private static final javax.xml.namespace.QName GROUP$20 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "group");
/**
* Gets array of all "binding" elements
*/
public net.zeroinstall.model.Binding[] getBindingArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(BINDING$0, targetList);
net.zeroinstall.model.Binding[] result = new net.zeroinstall.model.Binding[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "binding" element
*/
public net.zeroinstall.model.Binding getBindingArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Binding target = null;
target = (net.zeroinstall.model.Binding)get_store().find_element_user(BINDING$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "binding" element
*/
public int sizeOfBindingArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(BINDING$0);
}
}
/**
* Sets array of all "binding" element
*/
public void setBindingArray(net.zeroinstall.model.Binding[] bindingArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(bindingArray, BINDING$0);
}
}
/**
* Sets ith "binding" element
*/
public void setBindingArray(int i, net.zeroinstall.model.Binding binding)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Binding target = null;
target = (net.zeroinstall.model.Binding)get_store().find_element_user(BINDING$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(binding);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "binding" element
*/
public net.zeroinstall.model.Binding insertNewBinding(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Binding target = null;
target = (net.zeroinstall.model.Binding)get_store().insert_element_user(BINDING$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "binding" element
*/
public net.zeroinstall.model.Binding addNewBinding()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Binding target = null;
target = (net.zeroinstall.model.Binding)get_store().add_element_user(BINDING$0);
return target;
}
}
/**
* Removes the ith "binding" element
*/
public void removeBinding(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(BINDING$0, i);
}
}
/**
* Gets array of all "environment" elements
*/
public net.zeroinstall.model.Environment[] getEnvironmentArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ENVIRONMENT$2, targetList);
net.zeroinstall.model.Environment[] result = new net.zeroinstall.model.Environment[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "environment" element
*/
public net.zeroinstall.model.Environment getEnvironmentArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Environment target = null;
target = (net.zeroinstall.model.Environment)get_store().find_element_user(ENVIRONMENT$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "environment" element
*/
public int sizeOfEnvironmentArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ENVIRONMENT$2);
}
}
/**
* Sets array of all "environment" element
*/
public void setEnvironmentArray(net.zeroinstall.model.Environment[] environmentArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(environmentArray, ENVIRONMENT$2);
}
}
/**
* Sets ith "environment" element
*/
public void setEnvironmentArray(int i, net.zeroinstall.model.Environment environment)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Environment target = null;
target = (net.zeroinstall.model.Environment)get_store().find_element_user(ENVIRONMENT$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(environment);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "environment" element
*/
public net.zeroinstall.model.Environment insertNewEnvironment(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Environment target = null;
target = (net.zeroinstall.model.Environment)get_store().insert_element_user(ENVIRONMENT$2, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "environment" element
*/
public net.zeroinstall.model.Environment addNewEnvironment()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Environment target = null;
target = (net.zeroinstall.model.Environment)get_store().add_element_user(ENVIRONMENT$2);
return target;
}
}
/**
* Removes the ith "environment" element
*/
public void removeEnvironment(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ENVIRONMENT$2, i);
}
}
/**
* Gets array of all "overlay" elements
*/
public net.zeroinstall.model.Overlay[] getOverlayArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(OVERLAY$4, targetList);
net.zeroinstall.model.Overlay[] result = new net.zeroinstall.model.Overlay[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "overlay" element
*/
public net.zeroinstall.model.Overlay getOverlayArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Overlay target = null;
target = (net.zeroinstall.model.Overlay)get_store().find_element_user(OVERLAY$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "overlay" element
*/
public int sizeOfOverlayArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(OVERLAY$4);
}
}
/**
* Sets array of all "overlay" element
*/
public void setOverlayArray(net.zeroinstall.model.Overlay[] overlayArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(overlayArray, OVERLAY$4);
}
}
/**
* Sets ith "overlay" element
*/
public void setOverlayArray(int i, net.zeroinstall.model.Overlay overlay)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Overlay target = null;
target = (net.zeroinstall.model.Overlay)get_store().find_element_user(OVERLAY$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(overlay);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "overlay" element
*/
public net.zeroinstall.model.Overlay insertNewOverlay(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Overlay target = null;
target = (net.zeroinstall.model.Overlay)get_store().insert_element_user(OVERLAY$4, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "overlay" element
*/
public net.zeroinstall.model.Overlay addNewOverlay()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Overlay target = null;
target = (net.zeroinstall.model.Overlay)get_store().add_element_user(OVERLAY$4);
return target;
}
}
/**
* Removes the ith "overlay" element
*/
public void removeOverlay(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(OVERLAY$4, i);
}
}
/**
* Gets array of all "executable-in-var" elements
*/
public net.zeroinstall.model.ExecutableInVar[] getExecutableInVarArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(EXECUTABLEINVAR$6, targetList);
net.zeroinstall.model.ExecutableInVar[] result = new net.zeroinstall.model.ExecutableInVar[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "executable-in-var" element
*/
public net.zeroinstall.model.ExecutableInVar getExecutableInVarArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.ExecutableInVar target = null;
target = (net.zeroinstall.model.ExecutableInVar)get_store().find_element_user(EXECUTABLEINVAR$6, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "executable-in-var" element
*/
public int sizeOfExecutableInVarArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(EXECUTABLEINVAR$6);
}
}
/**
* Sets array of all "executable-in-var" element
*/
public void setExecutableInVarArray(net.zeroinstall.model.ExecutableInVar[] executableInVarArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(executableInVarArray, EXECUTABLEINVAR$6);
}
}
/**
* Sets ith "executable-in-var" element
*/
public void setExecutableInVarArray(int i, net.zeroinstall.model.ExecutableInVar executableInVar)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.ExecutableInVar target = null;
target = (net.zeroinstall.model.ExecutableInVar)get_store().find_element_user(EXECUTABLEINVAR$6, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(executableInVar);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "executable-in-var" element
*/
public net.zeroinstall.model.ExecutableInVar insertNewExecutableInVar(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.ExecutableInVar target = null;
target = (net.zeroinstall.model.ExecutableInVar)get_store().insert_element_user(EXECUTABLEINVAR$6, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "executable-in-var" element
*/
public net.zeroinstall.model.ExecutableInVar addNewExecutableInVar()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.ExecutableInVar target = null;
target = (net.zeroinstall.model.ExecutableInVar)get_store().add_element_user(EXECUTABLEINVAR$6);
return target;
}
}
/**
* Removes the ith "executable-in-var" element
*/
public void removeExecutableInVar(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(EXECUTABLEINVAR$6, i);
}
}
/**
* Gets array of all "executable-in-path" elements
*/
public net.zeroinstall.model.ExecutableInPath[] getExecutableInPathArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(EXECUTABLEINPATH$8, targetList);
net.zeroinstall.model.ExecutableInPath[] result = new net.zeroinstall.model.ExecutableInPath[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "executable-in-path" element
*/
public net.zeroinstall.model.ExecutableInPath getExecutableInPathArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.ExecutableInPath target = null;
target = (net.zeroinstall.model.ExecutableInPath)get_store().find_element_user(EXECUTABLEINPATH$8, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "executable-in-path" element
*/
public int sizeOfExecutableInPathArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(EXECUTABLEINPATH$8);
}
}
/**
* Sets array of all "executable-in-path" element
*/
public void setExecutableInPathArray(net.zeroinstall.model.ExecutableInPath[] executableInPathArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(executableInPathArray, EXECUTABLEINPATH$8);
}
}
/**
* Sets ith "executable-in-path" element
*/
public void setExecutableInPathArray(int i, net.zeroinstall.model.ExecutableInPath executableInPath)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.ExecutableInPath target = null;
target = (net.zeroinstall.model.ExecutableInPath)get_store().find_element_user(EXECUTABLEINPATH$8, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(executableInPath);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "executable-in-path" element
*/
public net.zeroinstall.model.ExecutableInPath insertNewExecutableInPath(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.ExecutableInPath target = null;
target = (net.zeroinstall.model.ExecutableInPath)get_store().insert_element_user(EXECUTABLEINPATH$8, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "executable-in-path" element
*/
public net.zeroinstall.model.ExecutableInPath addNewExecutableInPath()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.ExecutableInPath target = null;
target = (net.zeroinstall.model.ExecutableInPath)get_store().add_element_user(EXECUTABLEINPATH$8);
return target;
}
}
/**
* Removes the ith "executable-in-path" element
*/
public void removeExecutableInPath(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(EXECUTABLEINPATH$8, i);
}
}
/**
* Gets array of all "command" elements
*/
public net.zeroinstall.model.Command[] getCommandArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(COMMAND$10, targetList);
net.zeroinstall.model.Command[] result = new net.zeroinstall.model.Command[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "command" element
*/
public net.zeroinstall.model.Command getCommandArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Command target = null;
target = (net.zeroinstall.model.Command)get_store().find_element_user(COMMAND$10, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "command" element
*/
public int sizeOfCommandArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(COMMAND$10);
}
}
/**
* Sets array of all "command" element
*/
public void setCommandArray(net.zeroinstall.model.Command[] commandArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(commandArray, COMMAND$10);
}
}
/**
* Sets ith "command" element
*/
public void setCommandArray(int i, net.zeroinstall.model.Command command)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Command target = null;
target = (net.zeroinstall.model.Command)get_store().find_element_user(COMMAND$10, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(command);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "command" element
*/
public net.zeroinstall.model.Command insertNewCommand(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Command target = null;
target = (net.zeroinstall.model.Command)get_store().insert_element_user(COMMAND$10, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "command" element
*/
public net.zeroinstall.model.Command addNewCommand()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Command target = null;
target = (net.zeroinstall.model.Command)get_store().add_element_user(COMMAND$10);
return target;
}
}
/**
* Removes the ith "command" element
*/
public void removeCommand(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(COMMAND$10, i);
}
}
/**
* Gets array of all "requires" elements
*/
public net.zeroinstall.model.Dependency[] getRequiresArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(REQUIRES$12, targetList);
net.zeroinstall.model.Dependency[] result = new net.zeroinstall.model.Dependency[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "requires" element
*/
public net.zeroinstall.model.Dependency getRequiresArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Dependency target = null;
target = (net.zeroinstall.model.Dependency)get_store().find_element_user(REQUIRES$12, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "requires" element
*/
public int sizeOfRequiresArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(REQUIRES$12);
}
}
/**
* Sets array of all "requires" element
*/
public void setRequiresArray(net.zeroinstall.model.Dependency[] requiresArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(requiresArray, REQUIRES$12);
}
}
/**
* Sets ith "requires" element
*/
public void setRequiresArray(int i, net.zeroinstall.model.Dependency requires)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Dependency target = null;
target = (net.zeroinstall.model.Dependency)get_store().find_element_user(REQUIRES$12, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(requires);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "requires" element
*/
public net.zeroinstall.model.Dependency insertNewRequires(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Dependency target = null;
target = (net.zeroinstall.model.Dependency)get_store().insert_element_user(REQUIRES$12, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "requires" element
*/
public net.zeroinstall.model.Dependency addNewRequires()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Dependency target = null;
target = (net.zeroinstall.model.Dependency)get_store().add_element_user(REQUIRES$12);
return target;
}
}
/**
* Removes the ith "requires" element
*/
public void removeRequires(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(REQUIRES$12, i);
}
}
/**
* Gets array of all "restricts" elements
*/
public net.zeroinstall.model.Restriction[] getRestrictsArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(RESTRICTS$14, targetList);
net.zeroinstall.model.Restriction[] result = new net.zeroinstall.model.Restriction[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "restricts" element
*/
public net.zeroinstall.model.Restriction getRestrictsArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Restriction target = null;
target = (net.zeroinstall.model.Restriction)get_store().find_element_user(RESTRICTS$14, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "restricts" element
*/
public int sizeOfRestrictsArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(RESTRICTS$14);
}
}
/**
* Sets array of all "restricts" element
*/
public void setRestrictsArray(net.zeroinstall.model.Restriction[] restrictsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(restrictsArray, RESTRICTS$14);
}
}
/**
* Sets ith "restricts" element
*/
public void setRestrictsArray(int i, net.zeroinstall.model.Restriction restricts)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Restriction target = null;
target = (net.zeroinstall.model.Restriction)get_store().find_element_user(RESTRICTS$14, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(restricts);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "restricts" element
*/
public net.zeroinstall.model.Restriction insertNewRestricts(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Restriction target = null;
target = (net.zeroinstall.model.Restriction)get_store().insert_element_user(RESTRICTS$14, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "restricts" element
*/
public net.zeroinstall.model.Restriction addNewRestricts()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Restriction target = null;
target = (net.zeroinstall.model.Restriction)get_store().add_element_user(RESTRICTS$14);
return target;
}
}
/**
* Removes the ith "restricts" element
*/
public void removeRestricts(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(RESTRICTS$14, i);
}
}
/**
* Gets array of all "implementation" elements
*/
public net.zeroinstall.model.Implementation[] getImplementationArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(IMPLEMENTATION$16, targetList);
net.zeroinstall.model.Implementation[] result = new net.zeroinstall.model.Implementation[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "implementation" element
*/
public net.zeroinstall.model.Implementation getImplementationArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Implementation target = null;
target = (net.zeroinstall.model.Implementation)get_store().find_element_user(IMPLEMENTATION$16, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "implementation" element
*/
public int sizeOfImplementationArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(IMPLEMENTATION$16);
}
}
/**
* Sets array of all "implementation" element
*/
public void setImplementationArray(net.zeroinstall.model.Implementation[] implementationArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(implementationArray, IMPLEMENTATION$16);
}
}
/**
* Sets ith "implementation" element
*/
public void setImplementationArray(int i, net.zeroinstall.model.Implementation implementation)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Implementation target = null;
target = (net.zeroinstall.model.Implementation)get_store().find_element_user(IMPLEMENTATION$16, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(implementation);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "implementation" element
*/
public net.zeroinstall.model.Implementation insertNewImplementation(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Implementation target = null;
target = (net.zeroinstall.model.Implementation)get_store().insert_element_user(IMPLEMENTATION$16, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "implementation" element
*/
public net.zeroinstall.model.Implementation addNewImplementation()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Implementation target = null;
target = (net.zeroinstall.model.Implementation)get_store().add_element_user(IMPLEMENTATION$16);
return target;
}
}
/**
* Removes the ith "implementation" element
*/
public void removeImplementation(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(IMPLEMENTATION$16, i);
}
}
/**
* Gets array of all "package-implementation" elements
*/
public net.zeroinstall.model.PackageImplementation[] getPackageImplementationArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(PACKAGEIMPLEMENTATION$18, targetList);
net.zeroinstall.model.PackageImplementation[] result = new net.zeroinstall.model.PackageImplementation[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "package-implementation" element
*/
public net.zeroinstall.model.PackageImplementation getPackageImplementationArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.PackageImplementation target = null;
target = (net.zeroinstall.model.PackageImplementation)get_store().find_element_user(PACKAGEIMPLEMENTATION$18, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "package-implementation" element
*/
public int sizeOfPackageImplementationArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(PACKAGEIMPLEMENTATION$18);
}
}
/**
* Sets array of all "package-implementation" element
*/
public void setPackageImplementationArray(net.zeroinstall.model.PackageImplementation[] packageImplementationArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(packageImplementationArray, PACKAGEIMPLEMENTATION$18);
}
}
/**
* Sets ith "package-implementation" element
*/
public void setPackageImplementationArray(int i, net.zeroinstall.model.PackageImplementation packageImplementation)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.PackageImplementation target = null;
target = (net.zeroinstall.model.PackageImplementation)get_store().find_element_user(PACKAGEIMPLEMENTATION$18, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(packageImplementation);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "package-implementation" element
*/
public net.zeroinstall.model.PackageImplementation insertNewPackageImplementation(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.PackageImplementation target = null;
target = (net.zeroinstall.model.PackageImplementation)get_store().insert_element_user(PACKAGEIMPLEMENTATION$18, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "package-implementation" element
*/
public net.zeroinstall.model.PackageImplementation addNewPackageImplementation()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.PackageImplementation target = null;
target = (net.zeroinstall.model.PackageImplementation)get_store().add_element_user(PACKAGEIMPLEMENTATION$18);
return target;
}
}
/**
* Removes the ith "package-implementation" element
*/
public void removePackageImplementation(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(PACKAGEIMPLEMENTATION$18, i);
}
}
/**
* Gets array of all "group" elements
*/
public net.zeroinstall.model.Group[] getGroupArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(GROUP$20, targetList);
net.zeroinstall.model.Group[] result = new net.zeroinstall.model.Group[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "group" element
*/
public net.zeroinstall.model.Group getGroupArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Group target = null;
target = (net.zeroinstall.model.Group)get_store().find_element_user(GROUP$20, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "group" element
*/
public int sizeOfGroupArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(GROUP$20);
}
}
/**
* Sets array of all "group" element
*/
public void setGroupArray(net.zeroinstall.model.Group[] groupArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(groupArray, GROUP$20);
}
}
/**
* Sets ith "group" element
*/
public void setGroupArray(int i, net.zeroinstall.model.Group group)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Group target = null;
target = (net.zeroinstall.model.Group)get_store().find_element_user(GROUP$20, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(group);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "group" element
*/
public net.zeroinstall.model.Group insertNewGroup(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Group target = null;
target = (net.zeroinstall.model.Group)get_store().insert_element_user(GROUP$20, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "group" element
*/
public net.zeroinstall.model.Group addNewGroup()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Group target = null;
target = (net.zeroinstall.model.Group)get_store().add_element_user(GROUP$20);
return target;
}
}
/**
* Removes the ith "group" element
*/
public void removeGroup(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(GROUP$20, i);
}
}
}