com.microsoft.schemas.office.visio.x2012.main.impl.ColorsTypeImpl Maven / Gradle / Ivy
Go to download
XmlBeans generated from the Ecma supplied xsds:
http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%20Part%204%20(DOCX).zip
/*
* XML Type: Colors_Type
* Namespace: http://schemas.microsoft.com/office/visio/2012/main
* Java type: com.microsoft.schemas.office.visio.x2012.main.ColorsType
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
* An XML Colors_Type(@http://schemas.microsoft.com/office/visio/2012/main).
*
* This is a complex type.
*/
public class ColorsTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.ColorsType
{
public ColorsTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName COLORENTRY$0 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "ColorEntry");
/**
* Gets a List of "ColorEntry" elements
*/
public java.util.List getColorEntryList()
{
final class ColorEntryList extends java.util.AbstractList
{
public com.microsoft.schemas.office.visio.x2012.main.ColorEntryType get(int i)
{ return ColorsTypeImpl.this.getColorEntryArray(i); }
public com.microsoft.schemas.office.visio.x2012.main.ColorEntryType set(int i, com.microsoft.schemas.office.visio.x2012.main.ColorEntryType o)
{
com.microsoft.schemas.office.visio.x2012.main.ColorEntryType old = ColorsTypeImpl.this.getColorEntryArray(i);
ColorsTypeImpl.this.setColorEntryArray(i, o);
return old;
}
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.ColorEntryType o)
{ ColorsTypeImpl.this.insertNewColorEntry(i).set(o); }
public com.microsoft.schemas.office.visio.x2012.main.ColorEntryType remove(int i)
{
com.microsoft.schemas.office.visio.x2012.main.ColorEntryType old = ColorsTypeImpl.this.getColorEntryArray(i);
ColorsTypeImpl.this.removeColorEntry(i);
return old;
}
public int size()
{ return ColorsTypeImpl.this.sizeOfColorEntryArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new ColorEntryList();
}
}
/**
* Gets array of all "ColorEntry" elements
*/
public com.microsoft.schemas.office.visio.x2012.main.ColorEntryType[] getColorEntryArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(COLORENTRY$0, targetList);
com.microsoft.schemas.office.visio.x2012.main.ColorEntryType[] result = new com.microsoft.schemas.office.visio.x2012.main.ColorEntryType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "ColorEntry" element
*/
public com.microsoft.schemas.office.visio.x2012.main.ColorEntryType getColorEntryArray(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.ColorEntryType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.ColorEntryType)get_store().find_element_user(COLORENTRY$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "ColorEntry" element
*/
public int sizeOfColorEntryArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(COLORENTRY$0);
}
}
/**
* Sets array of all "ColorEntry" element
*/
public void setColorEntryArray(com.microsoft.schemas.office.visio.x2012.main.ColorEntryType[] colorEntryArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(colorEntryArray, COLORENTRY$0);
}
}
/**
* Sets ith "ColorEntry" element
*/
public void setColorEntryArray(int i, com.microsoft.schemas.office.visio.x2012.main.ColorEntryType colorEntry)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.ColorEntryType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.ColorEntryType)get_store().find_element_user(COLORENTRY$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(colorEntry);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "ColorEntry" element
*/
public com.microsoft.schemas.office.visio.x2012.main.ColorEntryType insertNewColorEntry(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.ColorEntryType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.ColorEntryType)get_store().insert_element_user(COLORENTRY$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "ColorEntry" element
*/
public com.microsoft.schemas.office.visio.x2012.main.ColorEntryType addNewColorEntry()
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.ColorEntryType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.ColorEntryType)get_store().add_element_user(COLORENTRY$0);
return target;
}
}
/**
* Removes the ith "ColorEntry" element
*/
public void removeColorEntry(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(COLORENTRY$0, i);
}
}
}