io.github.isotes.vs.model.impl.WhenTypeImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vs-model Show documentation
Show all versions of vs-model Show documentation
Generated XMLBeans Java classes for the XML schema of MSBuild project files
The newest version!
/*
* XML Type: WhenType
* Namespace: http://schemas.microsoft.com/developer/msbuild/2003
* Java type: io.github.isotes.vs.model.WhenType
*
* Automatically generated - do not modify.
*/
package io.github.isotes.vs.model.impl;
/**
* An XML WhenType(@http://schemas.microsoft.com/developer/msbuild/2003).
*
* This is a complex type.
*/
public class WhenTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements io.github.isotes.vs.model.WhenType
{
private static final long serialVersionUID = 1L;
public WhenTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName PROPERTYGROUP$0 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/developer/msbuild/2003", "PropertyGroup");
private static final javax.xml.namespace.QName ITEMGROUP$2 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/developer/msbuild/2003", "ItemGroup");
private static final javax.xml.namespace.QName CHOOSE$4 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/developer/msbuild/2003", "Choose");
private static final javax.xml.namespace.QName CONDITION$6 =
new javax.xml.namespace.QName("", "Condition");
/**
* Gets a List of "PropertyGroup" elements
*/
public java.util.List getPropertyGroupList()
{
final class PropertyGroupList extends java.util.AbstractList
{
@Override
public io.github.isotes.vs.model.PropertyGroupType get(int i)
{ return WhenTypeImpl.this.getPropertyGroupArray(i); }
@Override
public io.github.isotes.vs.model.PropertyGroupType set(int i, io.github.isotes.vs.model.PropertyGroupType o)
{
io.github.isotes.vs.model.PropertyGroupType old = WhenTypeImpl.this.getPropertyGroupArray(i);
WhenTypeImpl.this.setPropertyGroupArray(i, o);
return old;
}
@Override
public void add(int i, io.github.isotes.vs.model.PropertyGroupType o)
{ WhenTypeImpl.this.insertNewPropertyGroup(i).set(o); }
@Override
public io.github.isotes.vs.model.PropertyGroupType remove(int i)
{
io.github.isotes.vs.model.PropertyGroupType old = WhenTypeImpl.this.getPropertyGroupArray(i);
WhenTypeImpl.this.removePropertyGroup(i);
return old;
}
@Override
public int size()
{ return WhenTypeImpl.this.sizeOfPropertyGroupArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new PropertyGroupList();
}
}
/**
* Gets array of all "PropertyGroup" elements
* @deprecated
*/
@Deprecated
public io.github.isotes.vs.model.PropertyGroupType[] getPropertyGroupArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(PROPERTYGROUP$0, targetList);
io.github.isotes.vs.model.PropertyGroupType[] result = new io.github.isotes.vs.model.PropertyGroupType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "PropertyGroup" element
*/
public io.github.isotes.vs.model.PropertyGroupType getPropertyGroupArray(int i)
{
synchronized (monitor())
{
check_orphaned();
io.github.isotes.vs.model.PropertyGroupType target = null;
target = (io.github.isotes.vs.model.PropertyGroupType)get_store().find_element_user(PROPERTYGROUP$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "PropertyGroup" element
*/
public int sizeOfPropertyGroupArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(PROPERTYGROUP$0);
}
}
/**
* Sets array of all "PropertyGroup" element WARNING: This method is not atomicaly synchronized.
*/
public void setPropertyGroupArray(io.github.isotes.vs.model.PropertyGroupType[] propertyGroupArray)
{
check_orphaned();
arraySetterHelper(propertyGroupArray, PROPERTYGROUP$0);
}
/**
* Sets ith "PropertyGroup" element
*/
public void setPropertyGroupArray(int i, io.github.isotes.vs.model.PropertyGroupType propertyGroup)
{
generatedSetterHelperImpl(propertyGroup, PROPERTYGROUP$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "PropertyGroup" element
*/
public io.github.isotes.vs.model.PropertyGroupType insertNewPropertyGroup(int i)
{
synchronized (monitor())
{
check_orphaned();
io.github.isotes.vs.model.PropertyGroupType target = null;
target = (io.github.isotes.vs.model.PropertyGroupType)get_store().insert_element_user(PROPERTYGROUP$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "PropertyGroup" element
*/
public io.github.isotes.vs.model.PropertyGroupType addNewPropertyGroup()
{
synchronized (monitor())
{
check_orphaned();
io.github.isotes.vs.model.PropertyGroupType target = null;
target = (io.github.isotes.vs.model.PropertyGroupType)get_store().add_element_user(PROPERTYGROUP$0);
return target;
}
}
/**
* Removes the ith "PropertyGroup" element
*/
public void removePropertyGroup(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(PROPERTYGROUP$0, i);
}
}
/**
* Gets a List of "ItemGroup" elements
*/
public java.util.List getItemGroupList()
{
final class ItemGroupList extends java.util.AbstractList
{
@Override
public io.github.isotes.vs.model.ItemGroupType get(int i)
{ return WhenTypeImpl.this.getItemGroupArray(i); }
@Override
public io.github.isotes.vs.model.ItemGroupType set(int i, io.github.isotes.vs.model.ItemGroupType o)
{
io.github.isotes.vs.model.ItemGroupType old = WhenTypeImpl.this.getItemGroupArray(i);
WhenTypeImpl.this.setItemGroupArray(i, o);
return old;
}
@Override
public void add(int i, io.github.isotes.vs.model.ItemGroupType o)
{ WhenTypeImpl.this.insertNewItemGroup(i).set(o); }
@Override
public io.github.isotes.vs.model.ItemGroupType remove(int i)
{
io.github.isotes.vs.model.ItemGroupType old = WhenTypeImpl.this.getItemGroupArray(i);
WhenTypeImpl.this.removeItemGroup(i);
return old;
}
@Override
public int size()
{ return WhenTypeImpl.this.sizeOfItemGroupArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new ItemGroupList();
}
}
/**
* Gets array of all "ItemGroup" elements
* @deprecated
*/
@Deprecated
public io.github.isotes.vs.model.ItemGroupType[] getItemGroupArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ITEMGROUP$2, targetList);
io.github.isotes.vs.model.ItemGroupType[] result = new io.github.isotes.vs.model.ItemGroupType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "ItemGroup" element
*/
public io.github.isotes.vs.model.ItemGroupType getItemGroupArray(int i)
{
synchronized (monitor())
{
check_orphaned();
io.github.isotes.vs.model.ItemGroupType target = null;
target = (io.github.isotes.vs.model.ItemGroupType)get_store().find_element_user(ITEMGROUP$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "ItemGroup" element
*/
public int sizeOfItemGroupArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ITEMGROUP$2);
}
}
/**
* Sets array of all "ItemGroup" element WARNING: This method is not atomicaly synchronized.
*/
public void setItemGroupArray(io.github.isotes.vs.model.ItemGroupType[] itemGroupArray)
{
check_orphaned();
arraySetterHelper(itemGroupArray, ITEMGROUP$2);
}
/**
* Sets ith "ItemGroup" element
*/
public void setItemGroupArray(int i, io.github.isotes.vs.model.ItemGroupType itemGroup)
{
generatedSetterHelperImpl(itemGroup, ITEMGROUP$2, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "ItemGroup" element
*/
public io.github.isotes.vs.model.ItemGroupType insertNewItemGroup(int i)
{
synchronized (monitor())
{
check_orphaned();
io.github.isotes.vs.model.ItemGroupType target = null;
target = (io.github.isotes.vs.model.ItemGroupType)get_store().insert_element_user(ITEMGROUP$2, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "ItemGroup" element
*/
public io.github.isotes.vs.model.ItemGroupType addNewItemGroup()
{
synchronized (monitor())
{
check_orphaned();
io.github.isotes.vs.model.ItemGroupType target = null;
target = (io.github.isotes.vs.model.ItemGroupType)get_store().add_element_user(ITEMGROUP$2);
return target;
}
}
/**
* Removes the ith "ItemGroup" element
*/
public void removeItemGroup(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ITEMGROUP$2, i);
}
}
/**
* Gets a List of "Choose" elements
*/
public java.util.List getChooseList()
{
final class ChooseList extends java.util.AbstractList
{
@Override
public io.github.isotes.vs.model.ChooseType get(int i)
{ return WhenTypeImpl.this.getChooseArray(i); }
@Override
public io.github.isotes.vs.model.ChooseType set(int i, io.github.isotes.vs.model.ChooseType o)
{
io.github.isotes.vs.model.ChooseType old = WhenTypeImpl.this.getChooseArray(i);
WhenTypeImpl.this.setChooseArray(i, o);
return old;
}
@Override
public void add(int i, io.github.isotes.vs.model.ChooseType o)
{ WhenTypeImpl.this.insertNewChoose(i).set(o); }
@Override
public io.github.isotes.vs.model.ChooseType remove(int i)
{
io.github.isotes.vs.model.ChooseType old = WhenTypeImpl.this.getChooseArray(i);
WhenTypeImpl.this.removeChoose(i);
return old;
}
@Override
public int size()
{ return WhenTypeImpl.this.sizeOfChooseArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new ChooseList();
}
}
/**
* Gets array of all "Choose" elements
* @deprecated
*/
@Deprecated
public io.github.isotes.vs.model.ChooseType[] getChooseArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(CHOOSE$4, targetList);
io.github.isotes.vs.model.ChooseType[] result = new io.github.isotes.vs.model.ChooseType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "Choose" element
*/
public io.github.isotes.vs.model.ChooseType getChooseArray(int i)
{
synchronized (monitor())
{
check_orphaned();
io.github.isotes.vs.model.ChooseType target = null;
target = (io.github.isotes.vs.model.ChooseType)get_store().find_element_user(CHOOSE$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "Choose" element
*/
public int sizeOfChooseArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CHOOSE$4);
}
}
/**
* Sets array of all "Choose" element WARNING: This method is not atomicaly synchronized.
*/
public void setChooseArray(io.github.isotes.vs.model.ChooseType[] chooseArray)
{
check_orphaned();
arraySetterHelper(chooseArray, CHOOSE$4);
}
/**
* Sets ith "Choose" element
*/
public void setChooseArray(int i, io.github.isotes.vs.model.ChooseType choose)
{
generatedSetterHelperImpl(choose, CHOOSE$4, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "Choose" element
*/
public io.github.isotes.vs.model.ChooseType insertNewChoose(int i)
{
synchronized (monitor())
{
check_orphaned();
io.github.isotes.vs.model.ChooseType target = null;
target = (io.github.isotes.vs.model.ChooseType)get_store().insert_element_user(CHOOSE$4, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "Choose" element
*/
public io.github.isotes.vs.model.ChooseType addNewChoose()
{
synchronized (monitor())
{
check_orphaned();
io.github.isotes.vs.model.ChooseType target = null;
target = (io.github.isotes.vs.model.ChooseType)get_store().add_element_user(CHOOSE$4);
return target;
}
}
/**
* Removes the ith "Choose" element
*/
public void removeChoose(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CHOOSE$4, i);
}
}
/**
* Gets the "Condition" attribute
*/
public java.lang.String getCondition()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CONDITION$6);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "Condition" attribute
*/
public org.apache.xmlbeans.XmlString xgetCondition()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(CONDITION$6);
return target;
}
}
/**
* Sets the "Condition" attribute
*/
public void setCondition(java.lang.String condition)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CONDITION$6);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CONDITION$6);
}
target.setStringValue(condition);
}
}
/**
* Sets (as xml) the "Condition" attribute
*/
public void xsetCondition(org.apache.xmlbeans.XmlString condition)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(CONDITION$6);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(CONDITION$6);
}
target.set(condition);
}
}
}