com.microsoft.schemas.vml.impl.CTHandlesImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apache-poi-ooxml Show documentation
Show all versions of apache-poi-ooxml Show documentation
The Apache Commons Codec package contains simple encoder and decoders for
various formats such as Base64 and Hexadecimal. In addition to these
widely used encoders and decoders, the codec package also maintains a
collection of phonetic encoding utilities.
/*
* XML Type: CT_Handles
* Namespace: urn:schemas-microsoft-com:vml
* Java type: com.microsoft.schemas.vml.CTHandles
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.vml.impl;
/**
* An XML CT_Handles(@urn:schemas-microsoft-com:vml).
*
* This is a complex type.
*/
public class CTHandlesImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.vml.CTHandles {
private static final long serialVersionUID = 1L;
public CTHandlesImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final javax.xml.namespace.QName H$0 =
new javax.xml.namespace.QName("urn:schemas-microsoft-com:vml", "h");
/**
* Gets a List of "h" elements
*/
public java.util.List getHList() {
final class HList extends java.util.AbstractList {
@Override
public com.microsoft.schemas.vml.CTH get(int i)
{ return CTHandlesImpl.this.getHArray(i); }
@Override
public com.microsoft.schemas.vml.CTH set(int i, com.microsoft.schemas.vml.CTH o) {
com.microsoft.schemas.vml.CTH old = CTHandlesImpl.this.getHArray(i);
CTHandlesImpl.this.setHArray(i, o);
return old;
}
@Override
public void add(int i, com.microsoft.schemas.vml.CTH o)
{ CTHandlesImpl.this.insertNewH(i).set(o); }
@Override
public com.microsoft.schemas.vml.CTH remove(int i) {
com.microsoft.schemas.vml.CTH old = CTHandlesImpl.this.getHArray(i);
CTHandlesImpl.this.removeH(i);
return old;
}
@Override
public int size()
{ return CTHandlesImpl.this.sizeOfHArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new HList();
}
}
/**
* Gets array of all "h" elements
*/
public com.microsoft.schemas.vml.CTH[] getHArray() {
return getXmlObjectArray(H$0, new com.microsoft.schemas.vml.CTH[0]);
}
/**
* Gets ith "h" element
*/
public com.microsoft.schemas.vml.CTH getHArray(int i) {
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.vml.CTH target = null;
target = (com.microsoft.schemas.vml.CTH)get_store().find_element_user(H$0, i);
if (target == null) {
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "h" element
*/
public int sizeOfHArray() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(H$0);
}
}
/**
* Sets array of all "h" element WARNING: This method is not atomicaly synchronized.
*/
public void setHArray(com.microsoft.schemas.vml.CTH[] hArray) {
check_orphaned();
arraySetterHelper(hArray, H$0);
}
/**
* Sets ith "h" element
*/
public void setHArray(int i, com.microsoft.schemas.vml.CTH h) {
generatedSetterHelperImpl(h, H$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "h" element
*/
public com.microsoft.schemas.vml.CTH insertNewH(int i) {
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.vml.CTH target = null;
target = (com.microsoft.schemas.vml.CTH)get_store().insert_element_user(H$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "h" element
*/
public com.microsoft.schemas.vml.CTH addNewH() {
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.vml.CTH target = null;
target = (com.microsoft.schemas.vml.CTH)get_store().add_element_user(H$0);
return target;
}
}
/**
* Removes the ith "h" element
*/
public void removeH(int i) {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(H$0, i);
}
}
}