com.microsoft.schemas.office.visio.x2012.main.impl.FaceNamesTypeImpl Maven / Gradle / Ivy
/*
* XML Type: FaceNames_Type
* Namespace: http://schemas.microsoft.com/office/visio/2012/main
* Java type: com.microsoft.schemas.office.visio.x2012.main.FaceNamesType
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
* An XML FaceNames_Type(@http://schemas.microsoft.com/office/visio/2012/main).
*
* This is a complex type.
*/
public class FaceNamesTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.FaceNamesType
{
public FaceNamesTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName FACENAME$0 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "FaceName");
/**
* Gets a List of "FaceName" elements
*/
public java.util.List getFaceNameList()
{
final class FaceNameList extends java.util.AbstractList
{
public com.microsoft.schemas.office.visio.x2012.main.FaceNameType get(int i)
{ return FaceNamesTypeImpl.this.getFaceNameArray(i); }
public com.microsoft.schemas.office.visio.x2012.main.FaceNameType set(int i, com.microsoft.schemas.office.visio.x2012.main.FaceNameType o)
{
com.microsoft.schemas.office.visio.x2012.main.FaceNameType old = FaceNamesTypeImpl.this.getFaceNameArray(i);
FaceNamesTypeImpl.this.setFaceNameArray(i, o);
return old;
}
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.FaceNameType o)
{ FaceNamesTypeImpl.this.insertNewFaceName(i).set(o); }
public com.microsoft.schemas.office.visio.x2012.main.FaceNameType remove(int i)
{
com.microsoft.schemas.office.visio.x2012.main.FaceNameType old = FaceNamesTypeImpl.this.getFaceNameArray(i);
FaceNamesTypeImpl.this.removeFaceName(i);
return old;
}
public int size()
{ return FaceNamesTypeImpl.this.sizeOfFaceNameArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new FaceNameList();
}
}
/**
* Gets array of all "FaceName" elements
*/
public com.microsoft.schemas.office.visio.x2012.main.FaceNameType[] getFaceNameArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(FACENAME$0, targetList);
com.microsoft.schemas.office.visio.x2012.main.FaceNameType[] result = new com.microsoft.schemas.office.visio.x2012.main.FaceNameType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "FaceName" element
*/
public com.microsoft.schemas.office.visio.x2012.main.FaceNameType getFaceNameArray(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.FaceNameType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.FaceNameType)get_store().find_element_user(FACENAME$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "FaceName" element
*/
public int sizeOfFaceNameArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(FACENAME$0);
}
}
/**
* Sets array of all "FaceName" element
*/
public void setFaceNameArray(com.microsoft.schemas.office.visio.x2012.main.FaceNameType[] faceNameArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(faceNameArray, FACENAME$0);
}
}
/**
* Sets ith "FaceName" element
*/
public void setFaceNameArray(int i, com.microsoft.schemas.office.visio.x2012.main.FaceNameType faceName)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.FaceNameType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.FaceNameType)get_store().find_element_user(FACENAME$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(faceName);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "FaceName" element
*/
public com.microsoft.schemas.office.visio.x2012.main.FaceNameType insertNewFaceName(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.FaceNameType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.FaceNameType)get_store().insert_element_user(FACENAME$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "FaceName" element
*/
public com.microsoft.schemas.office.visio.x2012.main.FaceNameType addNewFaceName()
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.FaceNameType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.FaceNameType)get_store().add_element_user(FACENAME$0);
return target;
}
}
/**
* Removes the ith "FaceName" element
*/
public void removeFaceName(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(FACENAME$0, i);
}
}
}