org.openxmlformats.schemas.presentationml.x2006.main.impl.CTSlideLayoutIdListImpl 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
The newest version!
/*
* XML Type: CT_SlideLayoutIdList
* Namespace: http://schemas.openxmlformats.org/presentationml/2006/main
* Java type: org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdList
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.presentationml.x2006.main.impl;
/**
* An XML CT_SlideLayoutIdList(@http://schemas.openxmlformats.org/presentationml/2006/main).
*
* This is a complex type.
*/
public class CTSlideLayoutIdListImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdList
{
private static final long serialVersionUID = 1L;
public CTSlideLayoutIdListImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName SLDLAYOUTID$0 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/presentationml/2006/main", "sldLayoutId");
/**
* Gets a List of "sldLayoutId" elements
*/
public java.util.List getSldLayoutIdList()
{
final class SldLayoutIdList extends java.util.AbstractList
{
@Override
public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry get(int i)
{ return CTSlideLayoutIdListImpl.this.getSldLayoutIdArray(i); }
@Override
public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry set(int i, org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry o)
{
org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry old = CTSlideLayoutIdListImpl.this.getSldLayoutIdArray(i);
CTSlideLayoutIdListImpl.this.setSldLayoutIdArray(i, o);
return old;
}
@Override
public void add(int i, org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry o)
{ CTSlideLayoutIdListImpl.this.insertNewSldLayoutId(i).set(o); }
@Override
public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry remove(int i)
{
org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry old = CTSlideLayoutIdListImpl.this.getSldLayoutIdArray(i);
CTSlideLayoutIdListImpl.this.removeSldLayoutId(i);
return old;
}
@Override
public int size()
{ return CTSlideLayoutIdListImpl.this.sizeOfSldLayoutIdArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new SldLayoutIdList();
}
}
/**
* Gets array of all "sldLayoutId" elements
* @deprecated
*/
@Deprecated
public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry[] getSldLayoutIdArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(SLDLAYOUTID$0, targetList);
org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry[] result = new org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "sldLayoutId" element
*/
public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry getSldLayoutIdArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry target = null;
target = (org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry)get_store().find_element_user(SLDLAYOUTID$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "sldLayoutId" element
*/
public int sizeOfSldLayoutIdArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(SLDLAYOUTID$0);
}
}
/**
* Sets array of all "sldLayoutId" element WARNING: This method is not atomicaly synchronized.
*/
public void setSldLayoutIdArray(org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry[] sldLayoutIdArray)
{
check_orphaned();
arraySetterHelper(sldLayoutIdArray, SLDLAYOUTID$0);
}
/**
* Sets ith "sldLayoutId" element
*/
public void setSldLayoutIdArray(int i, org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry sldLayoutId)
{
generatedSetterHelperImpl(sldLayoutId, SLDLAYOUTID$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "sldLayoutId" element
*/
public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry insertNewSldLayoutId(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry target = null;
target = (org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry)get_store().insert_element_user(SLDLAYOUTID$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "sldLayoutId" element
*/
public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry addNewSldLayoutId()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry target = null;
target = (org.openxmlformats.schemas.presentationml.x2006.main.CTSlideLayoutIdListEntry)get_store().add_element_user(SLDLAYOUTID$0);
return target;
}
}
/**
* Removes the ith "sldLayoutId" element
*/
public void removeSldLayoutId(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(SLDLAYOUTID$0, i);
}
}
}