org.openxmlformats.schemas.presentationml.x2006.main.impl.CTSlideRelationshipListImpl 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_SlideRelationshipList
* Namespace: http://schemas.openxmlformats.org/presentationml/2006/main
* Java type: org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipList
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.presentationml.x2006.main.impl;
/**
* An XML CT_SlideRelationshipList(@http://schemas.openxmlformats.org/presentationml/2006/main).
*
* This is a complex type.
*/
public class CTSlideRelationshipListImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipList
{
private static final long serialVersionUID = 1L;
public CTSlideRelationshipListImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName SLD$0 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/presentationml/2006/main", "sld");
/**
* Gets a List of "sld" elements
*/
public java.util.List getSldList()
{
final class SldList extends java.util.AbstractList
{
@Override
public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry get(int i)
{ return CTSlideRelationshipListImpl.this.getSldArray(i); }
@Override
public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry set(int i, org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry o)
{
org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry old = CTSlideRelationshipListImpl.this.getSldArray(i);
CTSlideRelationshipListImpl.this.setSldArray(i, o);
return old;
}
@Override
public void add(int i, org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry o)
{ CTSlideRelationshipListImpl.this.insertNewSld(i).set(o); }
@Override
public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry remove(int i)
{
org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry old = CTSlideRelationshipListImpl.this.getSldArray(i);
CTSlideRelationshipListImpl.this.removeSld(i);
return old;
}
@Override
public int size()
{ return CTSlideRelationshipListImpl.this.sizeOfSldArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new SldList();
}
}
/**
* Gets array of all "sld" elements
* @deprecated
*/
@Deprecated
public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry[] getSldArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(SLD$0, targetList);
org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry[] result = new org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "sld" element
*/
public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry getSldArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry target = null;
target = (org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry)get_store().find_element_user(SLD$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "sld" element
*/
public int sizeOfSldArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(SLD$0);
}
}
/**
* Sets array of all "sld" element WARNING: This method is not atomicaly synchronized.
*/
public void setSldArray(org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry[] sldArray)
{
check_orphaned();
arraySetterHelper(sldArray, SLD$0);
}
/**
* Sets ith "sld" element
*/
public void setSldArray(int i, org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry sld)
{
generatedSetterHelperImpl(sld, SLD$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "sld" element
*/
public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry insertNewSld(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry target = null;
target = (org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry)get_store().insert_element_user(SLD$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "sld" element
*/
public org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry addNewSld()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry target = null;
target = (org.openxmlformats.schemas.presentationml.x2006.main.CTSlideRelationshipListEntry)get_store().add_element_user(SLD$0);
return target;
}
}
/**
* Removes the ith "sld" element
*/
public void removeSld(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(SLD$0, i);
}
}
}