com.microsoft.schemas.office.visio.x2012.main.impl.ConnectsTypeImpl 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: Connects_Type
* Namespace: http://schemas.microsoft.com/office/visio/2012/main
* Java type: com.microsoft.schemas.office.visio.x2012.main.ConnectsType
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
* An XML Connects_Type(@http://schemas.microsoft.com/office/visio/2012/main).
*
* This is a complex type.
*/
public class ConnectsTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.ConnectsType
{
public ConnectsTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName CONNECT$0 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "Connect");
/**
* Gets a List of "Connect" elements
*/
public java.util.List getConnectList()
{
final class ConnectList extends java.util.AbstractList
{
public com.microsoft.schemas.office.visio.x2012.main.ConnectType get(int i)
{ return ConnectsTypeImpl.this.getConnectArray(i); }
public com.microsoft.schemas.office.visio.x2012.main.ConnectType set(int i, com.microsoft.schemas.office.visio.x2012.main.ConnectType o)
{
com.microsoft.schemas.office.visio.x2012.main.ConnectType old = ConnectsTypeImpl.this.getConnectArray(i);
ConnectsTypeImpl.this.setConnectArray(i, o);
return old;
}
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.ConnectType o)
{ ConnectsTypeImpl.this.insertNewConnect(i).set(o); }
public com.microsoft.schemas.office.visio.x2012.main.ConnectType remove(int i)
{
com.microsoft.schemas.office.visio.x2012.main.ConnectType old = ConnectsTypeImpl.this.getConnectArray(i);
ConnectsTypeImpl.this.removeConnect(i);
return old;
}
public int size()
{ return ConnectsTypeImpl.this.sizeOfConnectArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new ConnectList();
}
}
/**
* Gets array of all "Connect" elements
*/
public com.microsoft.schemas.office.visio.x2012.main.ConnectType[] getConnectArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(CONNECT$0, targetList);
com.microsoft.schemas.office.visio.x2012.main.ConnectType[] result = new com.microsoft.schemas.office.visio.x2012.main.ConnectType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "Connect" element
*/
public com.microsoft.schemas.office.visio.x2012.main.ConnectType getConnectArray(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.ConnectType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.ConnectType)get_store().find_element_user(CONNECT$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "Connect" element
*/
public int sizeOfConnectArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CONNECT$0);
}
}
/**
* Sets array of all "Connect" element
*/
public void setConnectArray(com.microsoft.schemas.office.visio.x2012.main.ConnectType[] connectArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(connectArray, CONNECT$0);
}
}
/**
* Sets ith "Connect" element
*/
public void setConnectArray(int i, com.microsoft.schemas.office.visio.x2012.main.ConnectType connect)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.ConnectType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.ConnectType)get_store().find_element_user(CONNECT$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(connect);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "Connect" element
*/
public com.microsoft.schemas.office.visio.x2012.main.ConnectType insertNewConnect(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.ConnectType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.ConnectType)get_store().insert_element_user(CONNECT$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "Connect" element
*/
public com.microsoft.schemas.office.visio.x2012.main.ConnectType addNewConnect()
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.ConnectType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.ConnectType)get_store().add_element_user(CONNECT$0);
return target;
}
}
/**
* Removes the ith "Connect" element
*/
public void removeConnect(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CONNECT$0, i);
}
}
}