org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTFtnDocPropsImpl 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: CT_FtnDocProps
* Namespace: http://schemas.openxmlformats.org/wordprocessingml/2006/main
* Java type: org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnDocProps
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.wordprocessingml.x2006.main.impl;
/**
* An XML CT_FtnDocProps(@http://schemas.openxmlformats.org/wordprocessingml/2006/main).
*
* This is a complex type.
*/
public class CTFtnDocPropsImpl extends org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTFtnPropsImpl implements org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnDocProps
{
public CTFtnDocPropsImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName FOOTNOTE$0 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "footnote");
/**
* Gets a List of "footnote" elements
*/
public java.util.List getFootnoteList()
{
final class FootnoteList extends java.util.AbstractList
{
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef get(int i)
{ return CTFtnDocPropsImpl.this.getFootnoteArray(i); }
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef set(int i, org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef o)
{
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef old = CTFtnDocPropsImpl.this.getFootnoteArray(i);
CTFtnDocPropsImpl.this.setFootnoteArray(i, o);
return old;
}
public void add(int i, org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef o)
{ CTFtnDocPropsImpl.this.insertNewFootnote(i).set(o); }
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef remove(int i)
{
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef old = CTFtnDocPropsImpl.this.getFootnoteArray(i);
CTFtnDocPropsImpl.this.removeFootnote(i);
return old;
}
public int size()
{ return CTFtnDocPropsImpl.this.sizeOfFootnoteArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new FootnoteList();
}
}
/**
* Gets array of all "footnote" elements
*/
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef[] getFootnoteArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(FOOTNOTE$0, targetList);
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef[] result = new org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "footnote" element
*/
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef getFootnoteArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef target = null;
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef)get_store().find_element_user(FOOTNOTE$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "footnote" element
*/
public int sizeOfFootnoteArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(FOOTNOTE$0);
}
}
/**
* Sets array of all "footnote" element
*/
public void setFootnoteArray(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef[] footnoteArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(footnoteArray, FOOTNOTE$0);
}
}
/**
* Sets ith "footnote" element
*/
public void setFootnoteArray(int i, org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef footnote)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef target = null;
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef)get_store().find_element_user(FOOTNOTE$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(footnote);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "footnote" element
*/
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef insertNewFootnote(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef target = null;
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef)get_store().insert_element_user(FOOTNOTE$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "footnote" element
*/
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef addNewFootnote()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef target = null;
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdnSepRef)get_store().add_element_user(FOOTNOTE$0);
return target;
}
}
/**
* Removes the ith "footnote" element
*/
public void removeFootnote(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(FOOTNOTE$0, i);
}
}
}