io.github.isotes.vs.model.impl.SDKReferenceDocumentImpl 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!
/*
* An XML document type.
* Localname: SDKReference
* Namespace: http://schemas.microsoft.com/developer/msbuild/2003
* Java type: io.github.isotes.vs.model.SDKReferenceDocument
*
* Automatically generated - do not modify.
*/
package io.github.isotes.vs.model.impl;
/**
* A document containing one SDKReference(@http://schemas.microsoft.com/developer/msbuild/2003) element.
*
* This is a complex type.
*/
public class SDKReferenceDocumentImpl extends io.github.isotes.vs.model.impl.ItemDocumentImpl implements io.github.isotes.vs.model.SDKReferenceDocument
{
private static final long serialVersionUID = 1L;
public SDKReferenceDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName SDKREFERENCE$0 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/developer/msbuild/2003", "SDKReference");
/**
* Gets the "SDKReference" element
*/
public io.github.isotes.vs.model.SDKReferenceDocument.SDKReference getSDKReference()
{
synchronized (monitor())
{
check_orphaned();
io.github.isotes.vs.model.SDKReferenceDocument.SDKReference target = null;
target = (io.github.isotes.vs.model.SDKReferenceDocument.SDKReference)get_store().find_element_user(SDKREFERENCE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "SDKReference" element
*/
public void setSDKReference(io.github.isotes.vs.model.SDKReferenceDocument.SDKReference sdkReference)
{
generatedSetterHelperImpl(sdkReference, SDKREFERENCE$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "SDKReference" element
*/
public io.github.isotes.vs.model.SDKReferenceDocument.SDKReference addNewSDKReference()
{
synchronized (monitor())
{
check_orphaned();
io.github.isotes.vs.model.SDKReferenceDocument.SDKReference target = null;
target = (io.github.isotes.vs.model.SDKReferenceDocument.SDKReference)get_store().add_element_user(SDKREFERENCE$0);
return target;
}
}
/**
* An XML SDKReference(@http://schemas.microsoft.com/developer/msbuild/2003).
*
* This is a complex type.
*/
public static class SDKReferenceImpl extends io.github.isotes.vs.model.impl.SimpleItemTypeImpl implements io.github.isotes.vs.model.SDKReferenceDocument.SDKReference
{
private static final long serialVersionUID = 1L;
public SDKReferenceImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName NAME$0 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/developer/msbuild/2003", "Name");
/**
* Gets a List of "Name" elements
*/
public java.util.List getNameList()
{
final class NameList extends java.util.AbstractList
{
@Override
public org.apache.xmlbeans.XmlObject get(int i)
{ return SDKReferenceImpl.this.getNameArray(i); }
@Override
public org.apache.xmlbeans.XmlObject set(int i, org.apache.xmlbeans.XmlObject o)
{
org.apache.xmlbeans.XmlObject old = SDKReferenceImpl.this.getNameArray(i);
SDKReferenceImpl.this.setNameArray(i, o);
return old;
}
@Override
public void add(int i, org.apache.xmlbeans.XmlObject o)
{ SDKReferenceImpl.this.insertNewName(i).set(o); }
@Override
public org.apache.xmlbeans.XmlObject remove(int i)
{
org.apache.xmlbeans.XmlObject old = SDKReferenceImpl.this.getNameArray(i);
SDKReferenceImpl.this.removeName(i);
return old;
}
@Override
public int size()
{ return SDKReferenceImpl.this.sizeOfNameArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new NameList();
}
}
/**
* Gets array of all "Name" elements
* @deprecated
*/
@Deprecated
public org.apache.xmlbeans.XmlObject[] getNameArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(NAME$0, targetList);
org.apache.xmlbeans.XmlObject[] result = new org.apache.xmlbeans.XmlObject[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "Name" element
*/
public org.apache.xmlbeans.XmlObject getNameArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlObject target = null;
target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(NAME$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "Name" element
*/
public int sizeOfNameArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(NAME$0);
}
}
/**
* Sets array of all "Name" element WARNING: This method is not atomicaly synchronized.
*/
public void setNameArray(org.apache.xmlbeans.XmlObject[] nameArray)
{
check_orphaned();
arraySetterHelper(nameArray, NAME$0);
}
/**
* Sets ith "Name" element
*/
public void setNameArray(int i, org.apache.xmlbeans.XmlObject name)
{
generatedSetterHelperImpl(name, NAME$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "Name" element
*/
public org.apache.xmlbeans.XmlObject insertNewName(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlObject target = null;
target = (org.apache.xmlbeans.XmlObject)get_store().insert_element_user(NAME$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "Name" element
*/
public org.apache.xmlbeans.XmlObject addNewName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlObject target = null;
target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(NAME$0);
return target;
}
}
/**
* Removes the ith "Name" element
*/
public void removeName(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(NAME$0, i);
}
}
}
}