net.zeroinstall.model.impl.DependencyImpl 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: dependency
* Namespace: http://zero-install.sourceforge.net/2004/injector/interface
* Java type: net.zeroinstall.model.Dependency
*
* Automatically generated - do not modify.
*/
package net.zeroinstall.model.impl;
/**
* An XML dependency(@http://zero-install.sourceforge.net/2004/injector/interface).
*
* This is a complex type.
*/
public class DependencyImpl extends net.zeroinstall.model.impl.RestrictionBaseImpl implements net.zeroinstall.model.Dependency
{
private static final long serialVersionUID = 1L;
public DependencyImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName VERSION2$0 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "version");
private static final javax.xml.namespace.QName BINDING$2 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "binding");
private static final javax.xml.namespace.QName ENVIRONMENT$4 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "environment");
private static final javax.xml.namespace.QName OVERLAY$6 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "overlay");
private static final javax.xml.namespace.QName EXECUTABLEINVAR$8 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "executable-in-var");
private static final javax.xml.namespace.QName EXECUTABLEINPATH$10 =
new javax.xml.namespace.QName("http://zero-install.sourceforge.net/2004/injector/interface", "executable-in-path");
private static final javax.xml.namespace.QName IMPORTANCE$12 =
new javax.xml.namespace.QName("", "importance");
private static final javax.xml.namespace.QName USE$14 =
new javax.xml.namespace.QName("", "use");
/**
* Gets array of all "version" elements
*/
public net.zeroinstall.model.Constraint[] getVersion2Array()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(VERSION2$0, targetList);
net.zeroinstall.model.Constraint[] result = new net.zeroinstall.model.Constraint[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "version" element
*/
public net.zeroinstall.model.Constraint getVersion2Array(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Constraint target = null;
target = (net.zeroinstall.model.Constraint)get_store().find_element_user(VERSION2$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "version" element
*/
public int sizeOfVersion2Array()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(VERSION2$0);
}
}
/**
* Sets array of all "version" element
*/
public void setVersion2Array(net.zeroinstall.model.Constraint[] version2Array)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(version2Array, VERSION2$0);
}
}
/**
* Sets ith "version" element
*/
public void setVersion2Array(int i, net.zeroinstall.model.Constraint version2)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Constraint target = null;
target = (net.zeroinstall.model.Constraint)get_store().find_element_user(VERSION2$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(version2);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "version" element
*/
public net.zeroinstall.model.Constraint insertNewVersion2(int i)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Constraint target = null;
target = (net.zeroinstall.model.Constraint)get_store().insert_element_user(VERSION2$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "version" element
*/
public net.zeroinstall.model.Constraint addNewVersion2()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Constraint target = null;
target = (net.zeroinstall.model.Constraint)get_store().add_element_user(VERSION2$0);
return target;
}
}
/**
* Removes the ith "version" element
*/
public void removeVersion2(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(VERSION2$0, 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$2, 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$2, 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$2);
}
}
/**
* Sets array of all "binding" element
*/
public void setBindingArray(net.zeroinstall.model.Binding[] bindingArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(bindingArray, BINDING$2);
}
}
/**
* 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$2, 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$2, 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$2);
return target;
}
}
/**
* Removes the ith "binding" element
*/
public void removeBinding(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(BINDING$2, 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$4, 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$4, 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$4);
}
}
/**
* Sets array of all "environment" element
*/
public void setEnvironmentArray(net.zeroinstall.model.Environment[] environmentArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(environmentArray, ENVIRONMENT$4);
}
}
/**
* 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$4, 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$4, 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$4);
return target;
}
}
/**
* Removes the ith "environment" element
*/
public void removeEnvironment(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ENVIRONMENT$4, 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$6, 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$6, 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$6);
}
}
/**
* Sets array of all "overlay" element
*/
public void setOverlayArray(net.zeroinstall.model.Overlay[] overlayArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(overlayArray, OVERLAY$6);
}
}
/**
* 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$6, 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$6, 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$6);
return target;
}
}
/**
* Removes the ith "overlay" element
*/
public void removeOverlay(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(OVERLAY$6, 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$8, 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$8, 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$8);
}
}
/**
* Sets array of all "executable-in-var" element
*/
public void setExecutableInVarArray(net.zeroinstall.model.ExecutableInVar[] executableInVarArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(executableInVarArray, EXECUTABLEINVAR$8);
}
}
/**
* 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$8, 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$8, 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$8);
return target;
}
}
/**
* Removes the ith "executable-in-var" element
*/
public void removeExecutableInVar(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(EXECUTABLEINVAR$8, 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$10, 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$10, 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$10);
}
}
/**
* Sets array of all "executable-in-path" element
*/
public void setExecutableInPathArray(net.zeroinstall.model.ExecutableInPath[] executableInPathArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(executableInPathArray, EXECUTABLEINPATH$10);
}
}
/**
* 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$10, 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$10, 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$10);
return target;
}
}
/**
* Removes the ith "executable-in-path" element
*/
public void removeExecutableInPath(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(EXECUTABLEINPATH$10, i);
}
}
/**
* Gets the "importance" attribute
*/
public net.zeroinstall.model.Importance.Enum getImportance()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(IMPORTANCE$12);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(IMPORTANCE$12);
}
if (target == null)
{
return null;
}
return (net.zeroinstall.model.Importance.Enum)target.getEnumValue();
}
}
/**
* Gets (as xml) the "importance" attribute
*/
public net.zeroinstall.model.Importance xgetImportance()
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Importance target = null;
target = (net.zeroinstall.model.Importance)get_store().find_attribute_user(IMPORTANCE$12);
if (target == null)
{
target = (net.zeroinstall.model.Importance)get_default_attribute_value(IMPORTANCE$12);
}
return target;
}
}
/**
* True if has "importance" attribute
*/
public boolean isSetImportance()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(IMPORTANCE$12) != null;
}
}
/**
* Sets the "importance" attribute
*/
public void setImportance(net.zeroinstall.model.Importance.Enum importance)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(IMPORTANCE$12);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(IMPORTANCE$12);
}
target.setEnumValue(importance);
}
}
/**
* Sets (as xml) the "importance" attribute
*/
public void xsetImportance(net.zeroinstall.model.Importance importance)
{
synchronized (monitor())
{
check_orphaned();
net.zeroinstall.model.Importance target = null;
target = (net.zeroinstall.model.Importance)get_store().find_attribute_user(IMPORTANCE$12);
if (target == null)
{
target = (net.zeroinstall.model.Importance)get_store().add_attribute_user(IMPORTANCE$12);
}
target.set(importance);
}
}
/**
* Unsets the "importance" attribute
*/
public void unsetImportance()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(IMPORTANCE$12);
}
}
/**
* Gets the "use" attribute
*/
public java.lang.String getUse()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(USE$14);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "use" attribute
*/
public org.apache.xmlbeans.XmlString xgetUse()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(USE$14);
return target;
}
}
/**
* True if has "use" attribute
*/
public boolean isSetUse()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(USE$14) != null;
}
}
/**
* Sets the "use" attribute
*/
public void setUse(java.lang.String use)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(USE$14);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(USE$14);
}
target.setStringValue(use);
}
}
/**
* Sets (as xml) the "use" attribute
*/
public void xsetUse(org.apache.xmlbeans.XmlString use)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(USE$14);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(USE$14);
}
target.set(use);
}
}
/**
* Unsets the "use" attribute
*/
public void unsetUse()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(USE$14);
}
}
}