com.microsoft.schemas.office.visio.x2012.main.impl.RowDefTypeImpl 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: RowDef_Type
* Namespace: http://schemas.microsoft.com/office/visio/2012/main
* Java type: com.microsoft.schemas.office.visio.x2012.main.RowDefType
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
* An XML RowDef_Type(@http://schemas.microsoft.com/office/visio/2012/main).
*
* This is a complex type.
*/
public class RowDefTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.RowDefType
{
public RowDefTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName CELLDEF$0 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "CellDef");
/**
* Gets a List of "CellDef" elements
*/
public java.util.List getCellDefList()
{
final class CellDefList extends java.util.AbstractList
{
public com.microsoft.schemas.office.visio.x2012.main.CellDefType get(int i)
{ return RowDefTypeImpl.this.getCellDefArray(i); }
public com.microsoft.schemas.office.visio.x2012.main.CellDefType set(int i, com.microsoft.schemas.office.visio.x2012.main.CellDefType o)
{
com.microsoft.schemas.office.visio.x2012.main.CellDefType old = RowDefTypeImpl.this.getCellDefArray(i);
RowDefTypeImpl.this.setCellDefArray(i, o);
return old;
}
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.CellDefType o)
{ RowDefTypeImpl.this.insertNewCellDef(i).set(o); }
public com.microsoft.schemas.office.visio.x2012.main.CellDefType remove(int i)
{
com.microsoft.schemas.office.visio.x2012.main.CellDefType old = RowDefTypeImpl.this.getCellDefArray(i);
RowDefTypeImpl.this.removeCellDef(i);
return old;
}
public int size()
{ return RowDefTypeImpl.this.sizeOfCellDefArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new CellDefList();
}
}
/**
* Gets array of all "CellDef" elements
*/
public com.microsoft.schemas.office.visio.x2012.main.CellDefType[] getCellDefArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(CELLDEF$0, targetList);
com.microsoft.schemas.office.visio.x2012.main.CellDefType[] result = new com.microsoft.schemas.office.visio.x2012.main.CellDefType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "CellDef" element
*/
public com.microsoft.schemas.office.visio.x2012.main.CellDefType getCellDefArray(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.CellDefType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.CellDefType)get_store().find_element_user(CELLDEF$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "CellDef" element
*/
public int sizeOfCellDefArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CELLDEF$0);
}
}
/**
* Sets array of all "CellDef" element
*/
public void setCellDefArray(com.microsoft.schemas.office.visio.x2012.main.CellDefType[] cellDefArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(cellDefArray, CELLDEF$0);
}
}
/**
* Sets ith "CellDef" element
*/
public void setCellDefArray(int i, com.microsoft.schemas.office.visio.x2012.main.CellDefType cellDef)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.CellDefType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.CellDefType)get_store().find_element_user(CELLDEF$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(cellDef);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "CellDef" element
*/
public com.microsoft.schemas.office.visio.x2012.main.CellDefType insertNewCellDef(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.CellDefType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.CellDefType)get_store().insert_element_user(CELLDEF$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "CellDef" element
*/
public com.microsoft.schemas.office.visio.x2012.main.CellDefType addNewCellDef()
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.CellDefType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.CellDefType)get_store().add_element_user(CELLDEF$0);
return target;
}
}
/**
* Removes the ith "CellDef" element
*/
public void removeCellDef(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CELLDEF$0, i);
}
}
}