org.openxmlformats.schemas.wordprocessingml.x2006.main.impl.CTCustomXmlPrImpl 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_CustomXmlPr
* Namespace: http://schemas.openxmlformats.org/wordprocessingml/2006/main
* Java type: org.openxmlformats.schemas.wordprocessingml.x2006.main.CTCustomXmlPr
*
* Automatically generated - do not modify.
*/
package org.openxmlformats.schemas.wordprocessingml.x2006.main.impl;
/**
* An XML CT_CustomXmlPr(@http://schemas.openxmlformats.org/wordprocessingml/2006/main).
*
* This is a complex type.
*/
public class CTCustomXmlPrImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openxmlformats.schemas.wordprocessingml.x2006.main.CTCustomXmlPr
{
public CTCustomXmlPrImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName PLACEHOLDER$0 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "placeholder");
private static final javax.xml.namespace.QName ATTR$2 =
new javax.xml.namespace.QName("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "attr");
/**
* Gets the "placeholder" element
*/
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTString getPlaceholder()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTString target = null;
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTString)get_store().find_element_user(PLACEHOLDER$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "placeholder" element
*/
public boolean isSetPlaceholder()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(PLACEHOLDER$0) != 0;
}
}
/**
* Sets the "placeholder" element
*/
public void setPlaceholder(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTString placeholder)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTString target = null;
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTString)get_store().find_element_user(PLACEHOLDER$0, 0);
if (target == null)
{
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTString)get_store().add_element_user(PLACEHOLDER$0);
}
target.set(placeholder);
}
}
/**
* Appends and returns a new empty "placeholder" element
*/
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTString addNewPlaceholder()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTString target = null;
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTString)get_store().add_element_user(PLACEHOLDER$0);
return target;
}
}
/**
* Unsets the "placeholder" element
*/
public void unsetPlaceholder()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(PLACEHOLDER$0, 0);
}
}
/**
* Gets a List of "attr" elements
*/
public java.util.List getAttrList()
{
final class AttrList extends java.util.AbstractList
{
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr get(int i)
{ return CTCustomXmlPrImpl.this.getAttrArray(i); }
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr set(int i, org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr o)
{
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr old = CTCustomXmlPrImpl.this.getAttrArray(i);
CTCustomXmlPrImpl.this.setAttrArray(i, o);
return old;
}
public void add(int i, org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr o)
{ CTCustomXmlPrImpl.this.insertNewAttr(i).set(o); }
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr remove(int i)
{
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr old = CTCustomXmlPrImpl.this.getAttrArray(i);
CTCustomXmlPrImpl.this.removeAttr(i);
return old;
}
public int size()
{ return CTCustomXmlPrImpl.this.sizeOfAttrArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new AttrList();
}
}
/**
* Gets array of all "attr" elements
*/
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr[] getAttrArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ATTR$2, targetList);
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr[] result = new org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "attr" element
*/
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr getAttrArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr target = null;
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr)get_store().find_element_user(ATTR$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "attr" element
*/
public int sizeOfAttrArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ATTR$2);
}
}
/**
* Sets array of all "attr" element
*/
public void setAttrArray(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr[] attrArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(attrArray, ATTR$2);
}
}
/**
* Sets ith "attr" element
*/
public void setAttrArray(int i, org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr attr)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr target = null;
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr)get_store().find_element_user(ATTR$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(attr);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "attr" element
*/
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr insertNewAttr(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr target = null;
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr)get_store().insert_element_user(ATTR$2, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "attr" element
*/
public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr addNewAttr()
{
synchronized (monitor())
{
check_orphaned();
org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr target = null;
target = (org.openxmlformats.schemas.wordprocessingml.x2006.main.CTAttr)get_store().add_element_user(ATTR$2);
return target;
}
}
/**
* Removes the ith "attr" element
*/
public void removeAttr(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ATTR$2, i);
}
}
}