net.zeroinstall.model.impl.CommandImpl 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: command
* Namespace: http://zero-install.sourceforge.net/2004/injector/interface
* Java type: net.zeroinstall.model.Command
*
* Automatically generated - do not modify.
*/
package net.zeroinstall.model.impl;
/**
* An XML command(@http://zero-install.sourceforge.net/2004/injector/interface).
*
* This is a complex type.
*/
public class CommandImpl extends net.zeroinstall.model.impl.FeedElementImpl implements net.zeroinstall.model.Command
{
private static final long serialVersionUID = 1L;
public CommandImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ARG$0 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "arg");
private static final javax.xml.namespace.QName FOREACH$2 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "for-each");
private static final javax.xml.namespace.QName BINDING$4 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "binding");
private static final javax.xml.namespace.QName ENVIRONMENT$6 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "environment");
private static final javax.xml.namespace.QName OVERLAY$8 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "overlay");
private static final javax.xml.namespace.QName EXECUTABLEINVAR$10 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "executable-in-var");
private static final javax.xml.namespace.QName EXECUTABLEINPATH$12 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "executable-in-path");
private static final javax.xml.namespace.QName REQUIRES$14 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "requires");
private static final javax.xml.namespace.QName RESTRICTS$16 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "restricts");
private static final javax.xml.namespace.QName WORKINGDIR$18 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "working-dir");
private static final javax.xml.namespace.QName RUNNER$20 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "runner");
private static final javax.xml.namespace.QName NAME$22 =
new javax.xml.namespace.QName("", "name");
private static final javax.xml.namespace.QName PATH$24 =
new javax.xml.namespace.QName("", "path");
/**
* Gets array of all "arg" elements
*/
public java.lang.String[] getArgArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ARG$0, targetList);
java.lang.String[] result = new java.lang.String[targetList.size()];
for (int i = 0, len = targetList.size() ; i < len ; i++)
result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
return result;
}
}
/**
* Gets ith "arg" element
*/
public java.lang.String getArgArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ARG$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target.getStringValue();
}
}
/**
* Gets (as xml) array of all "arg" elements
*/
public org.apache.xmlbeans.XmlString[] xgetArgArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ARG$0, targetList);
org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets (as xml) ith "arg" element
*/
public org.apache.xmlbeans.XmlString xgetArgArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ARG$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return (org.apache.xmlbeans.XmlString)target;
}
}
/**
* Returns number of "arg" element
*/
public int sizeOfArgArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ARG$0);
}
}
/**
* Sets array of all "arg" element
*/
public void setArgArray(java.lang.String[] argArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(argArray, ARG$0);
}
}
/**
* Sets ith "arg" element
*/
public void setArgArray(int i, java.lang.String arg)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ARG$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.setStringValue(arg);
}
}
/**
* Sets (as xml) array of all "arg" element
*/
public void xsetArgArray(org.apache.xmlbeans.XmlString[]argArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(argArray, ARG$0);
}
}
/**
* Sets (as xml) ith "arg" element
*/
public void xsetArgArray(int i, org.apache.xmlbeans.XmlString arg)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ARG$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(arg);
}
}
/**
* Inserts the value as the ith "arg" element
*/
public void insertArg(int i, java.lang.String arg)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target =
(org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(ARG$0, i);
target.setStringValue(arg);
}
}
/**
* Appends the value as the last "arg" element
*/
public void addArg(java.lang.String arg)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ARG$0);
target.setStringValue(arg);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "arg" element
*/
public org.apache.xmlbeans.XmlString insertNewArg(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(ARG$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "arg" element
*/
public org.apache.xmlbeans.XmlString addNewArg()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ARG$0);
return target;
}
}
/**
* Removes the ith "arg" element
*/
public void removeArg(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ARG$0, i);
}
}
/**
* Gets array of all "for-each" elements
*/
public net.zeroinstall.model.ForEachArg[] getForEachArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(FOREACH$2, targetList);
net.zeroinstall.model.ForEachArg[] result = new net.zeroinstall.model.ForEachArg[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "for-each" element
*/
public net.zeroinstall.model.ForEachArg getForEachArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.ForEachArg target = null;
target = (net.zeroinstall.model.ForEachArg)get_store().find_element_user(FOREACH$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "for-each" element
*/
public int sizeOfForEachArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(FOREACH$2);
}
}
/**
* Sets array of all "for-each" element
*/
public void setForEachArray(net.zeroinstall.model.ForEachArg[] forEachArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(forEachArray, FOREACH$2);
}
}
/**
* Sets ith "for-each" element
*/
public void setForEachArray(int i, net.zeroinstall.model.ForEachArg forEach)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.ForEachArg target = null;
target = (net.zeroinstall.model.ForEachArg)get_store().find_element_user(FOREACH$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(forEach);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "for-each" element
*/
public net.zeroinstall.model.ForEachArg insertNewForEach(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.ForEachArg target = null;
target = (net.zeroinstall.model.ForEachArg)get_store().insert_element_user(FOREACH$2, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "for-each" element
*/
public net.zeroinstall.model.ForEachArg addNewForEach()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.ForEachArg target = null;
target = (net.zeroinstall.model.ForEachArg)get_store().add_element_user(FOREACH$2);
return target;
}
}
/**
* Removes the ith "for-each" element
*/
public void removeForEach(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(FOREACH$2, i);
}
}
/**
* 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$4, 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$4, 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$4);
}
}
/**
* Sets array of all "binding" element
*/
public void setBindingArray(net.zeroinstall.model.Binding[] bindingArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(bindingArray, BINDING$4);
}
}
/**
* 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$4, 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$4, 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$4);
return target;
}
}
/**
* Removes the ith "binding" element
*/
public void removeBinding(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(BINDING$4, 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$6, 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$6, 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$6);
}
}
/**
* Sets array of all "environment" element
*/
public void setEnvironmentArray(net.zeroinstall.model.Environment[] environmentArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(environmentArray, ENVIRONMENT$6);
}
}
/**
* 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$6, 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$6, 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$6);
return target;
}
}
/**
* Removes the ith "environment" element
*/
public void removeEnvironment(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ENVIRONMENT$6, 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$8, 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$8, 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$8);
}
}
/**
* Sets array of all "overlay" element
*/
public void setOverlayArray(net.zeroinstall.model.Overlay[] overlayArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(overlayArray, OVERLAY$8);
}
}
/**
* 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$8, 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$8, 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$8);
return target;
}
}
/**
* Removes the ith "overlay" element
*/
public void removeOverlay(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(OVERLAY$8, 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$10, 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$10, 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$10);
}
}
/**
* Sets array of all "executable-in-var" element
*/
public void setExecutableInVarArray(net.zeroinstall.model.ExecutableInVar[] executableInVarArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(executableInVarArray, EXECUTABLEINVAR$10);
}
}
/**
* 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$10, 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$10, 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$10);
return target;
}
}
/**
* Removes the ith "executable-in-var" element
*/
public void removeExecutableInVar(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(EXECUTABLEINVAR$10, 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$12, 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$12, 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$12);
}
}
/**
* Sets array of all "executable-in-path" element
*/
public void setExecutableInPathArray(net.zeroinstall.model.ExecutableInPath[] executableInPathArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(executableInPathArray, EXECUTABLEINPATH$12);
}
}
/**
* 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$12, 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$12, 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$12);
return target;
}
}
/**
* Removes the ith "executable-in-path" element
*/
public void removeExecutableInPath(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(EXECUTABLEINPATH$12, 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$14, 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$14, 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$14);
}
}
/**
* Sets array of all "requires" element
*/
public void setRequiresArray(net.zeroinstall.model.Dependency[] requiresArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(requiresArray, REQUIRES$14);
}
}
/**
* 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$14, 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$14, 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$14);
return target;
}
}
/**
* Removes the ith "requires" element
*/
public void removeRequires(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(REQUIRES$14, 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$16, 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$16, 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$16);
}
}
/**
* Sets array of all "restricts" element
*/
public void setRestrictsArray(net.zeroinstall.model.Restriction[] restrictsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(restrictsArray, RESTRICTS$16);
}
}
/**
* 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$16, 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$16, 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$16);
return target;
}
}
/**
* Removes the ith "restricts" element
*/
public void removeRestricts(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(RESTRICTS$16, i);
}
}
/**
* Gets array of all "working-dir" elements
*/
public net.zeroinstall.model.WorkingDir[] getWorkingDirArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(WORKINGDIR$18, targetList);
net.zeroinstall.model.WorkingDir[] result = new net.zeroinstall.model.WorkingDir[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "working-dir" element
*/
public net.zeroinstall.model.WorkingDir getWorkingDirArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.WorkingDir target = null;
target = (net.zeroinstall.model.WorkingDir)get_store().find_element_user(WORKINGDIR$18, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "working-dir" element
*/
public int sizeOfWorkingDirArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(WORKINGDIR$18);
}
}
/**
* Sets array of all "working-dir" element
*/
public void setWorkingDirArray(net.zeroinstall.model.WorkingDir[] workingDirArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(workingDirArray, WORKINGDIR$18);
}
}
/**
* Sets ith "working-dir" element
*/
public void setWorkingDirArray(int i, net.zeroinstall.model.WorkingDir workingDir)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.WorkingDir target = null;
target = (net.zeroinstall.model.WorkingDir)get_store().find_element_user(WORKINGDIR$18, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(workingDir);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "working-dir" element
*/
public net.zeroinstall.model.WorkingDir insertNewWorkingDir(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.WorkingDir target = null;
target = (net.zeroinstall.model.WorkingDir)get_store().insert_element_user(WORKINGDIR$18, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "working-dir" element
*/
public net.zeroinstall.model.WorkingDir addNewWorkingDir()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.WorkingDir target = null;
target = (net.zeroinstall.model.WorkingDir)get_store().add_element_user(WORKINGDIR$18);
return target;
}
}
/**
* Removes the ith "working-dir" element
*/
public void removeWorkingDir(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(WORKINGDIR$18, i);
}
}
/**
* Gets array of all "runner" elements
*/
public net.zeroinstall.model.Runner[] getRunnerArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(RUNNER$20, targetList);
net.zeroinstall.model.Runner[] result = new net.zeroinstall.model.Runner[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "runner" element
*/
public net.zeroinstall.model.Runner getRunnerArray(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Runner target = null;
target = (net.zeroinstall.model.Runner)get_store().find_element_user(RUNNER$20, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "runner" element
*/
public int sizeOfRunnerArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(RUNNER$20);
}
}
/**
* Sets array of all "runner" element
*/
public void setRunnerArray(net.zeroinstall.model.Runner[] runnerArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(runnerArray, RUNNER$20);
}
}
/**
* Sets ith "runner" element
*/
public void setRunnerArray(int i, net.zeroinstall.model.Runner runner)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Runner target = null;
target = (net.zeroinstall.model.Runner)get_store().find_element_user(RUNNER$20, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(runner);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "runner" element
*/
public net.zeroinstall.model.Runner insertNewRunner(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Runner target = null;
target = (net.zeroinstall.model.Runner)get_store().insert_element_user(RUNNER$20, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "runner" element
*/
public net.zeroinstall.model.Runner addNewRunner()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Runner target = null;
target = (net.zeroinstall.model.Runner)get_store().add_element_user(RUNNER$20);
return target;
}
}
/**
* Removes the ith "runner" element
*/
public void removeRunner(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(RUNNER$20, i);
}
}
/**
* Gets the "name" attribute
*/
public java.lang.String getName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$22);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "name" attribute
*/
public org.apache.xmlbeans.XmlString xgetName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$22);
return target;
}
}
/**
* True if has "name" attribute
*/
public boolean isSetName()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(NAME$22) != null;
}
}
/**
* Sets the "name" attribute
*/
public void setName(java.lang.String name)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$22);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$22);
}
target.setStringValue(name);
}
}
/**
* Sets (as xml) the "name" attribute
*/
public void xsetName(org.apache.xmlbeans.XmlString name)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$22);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$22);
}
target.set(name);
}
}
/**
* Unsets the "name" attribute
*/
public void unsetName()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(NAME$22);
}
}
/**
* Gets the "path" attribute
*/
public java.lang.String getPath()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PATH$24);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "path" attribute
*/
public org.apache.xmlbeans.XmlString xgetPath()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PATH$24);
return target;
}
}
/**
* True if has "path" attribute
*/
public boolean isSetPath()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(PATH$24) != null;
}
}
/**
* Sets the "path" attribute
*/
public void setPath(java.lang.String path)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PATH$24);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PATH$24);
}
target.setStringValue(path);
}
}
/**
* Sets (as xml) the "path" attribute
*/
public void xsetPath(org.apache.xmlbeans.XmlString path)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PATH$24);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(PATH$24);
}
target.set(path);
}
}
/**
* Unsets the "path" attribute
*/
public void unsetPath()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(PATH$24);
}
}
}