com.microsoft.schemas.office.visio.x2012.main.impl.AuthorListTypeImpl 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: AuthorList_Type
* Namespace: http://schemas.microsoft.com/office/visio/2012/main
* Java type: com.microsoft.schemas.office.visio.x2012.main.AuthorListType
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
* An XML AuthorList_Type(@http://schemas.microsoft.com/office/visio/2012/main).
*
* This is a complex type.
*/
public class AuthorListTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.AuthorListType
{
private static final long serialVersionUID = 1L;
public AuthorListTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName AUTHORENTRY$0 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "AuthorEntry");
/**
* Gets a List of "AuthorEntry" elements
*/
public java.util.List getAuthorEntryList()
{
final class AuthorEntryList extends java.util.AbstractList
{
@Override
public com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType get(int i)
{ return AuthorListTypeImpl.this.getAuthorEntryArray(i); }
@Override
public com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType set(int i, com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType o)
{
com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType old = AuthorListTypeImpl.this.getAuthorEntryArray(i);
AuthorListTypeImpl.this.setAuthorEntryArray(i, o);
return old;
}
@Override
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType o)
{ AuthorListTypeImpl.this.insertNewAuthorEntry(i).set(o); }
@Override
public com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType remove(int i)
{
com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType old = AuthorListTypeImpl.this.getAuthorEntryArray(i);
AuthorListTypeImpl.this.removeAuthorEntry(i);
return old;
}
@Override
public int size()
{ return AuthorListTypeImpl.this.sizeOfAuthorEntryArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new AuthorEntryList();
}
}
/**
* Gets array of all "AuthorEntry" elements
* @deprecated
*/
@Deprecated
public com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType[] getAuthorEntryArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(AUTHORENTRY$0, targetList);
com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType[] result = new com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "AuthorEntry" element
*/
public com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType getAuthorEntryArray(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType)get_store().find_element_user(AUTHORENTRY$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "AuthorEntry" element
*/
public int sizeOfAuthorEntryArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(AUTHORENTRY$0);
}
}
/**
* Sets array of all "AuthorEntry" element WARNING: This method is not atomicaly synchronized.
*/
public void setAuthorEntryArray(com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType[] authorEntryArray)
{
check_orphaned();
arraySetterHelper(authorEntryArray, AUTHORENTRY$0);
}
/**
* Sets ith "AuthorEntry" element
*/
public void setAuthorEntryArray(int i, com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType authorEntry)
{
generatedSetterHelperImpl(authorEntry, AUTHORENTRY$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "AuthorEntry" element
*/
public com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType insertNewAuthorEntry(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType)get_store().insert_element_user(AUTHORENTRY$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "AuthorEntry" element
*/
public com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType addNewAuthorEntry()
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.AuthorEntryType)get_store().add_element_user(AUTHORENTRY$0);
return target;
}
}
/**
* Removes the ith "AuthorEntry" element
*/
public void removeAuthorEntry(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(AUTHORENTRY$0, i);
}
}
}