com.microsoft.schemas.office.visio.x2012.main.impl.DataConnectionsTypeImpl Maven / Gradle / Ivy
Go to download
XmlBeans generated from the Ecma supplied xsds (since POI 5.0.0, the 5th edition is used):
https://www.ecma-international.org/publications/standards/Ecma-376.htm
/*
* XML Type: DataConnections_Type
* Namespace: http://schemas.microsoft.com/office/visio/2012/main
* Java type: com.microsoft.schemas.office.visio.x2012.main.DataConnectionsType
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
* An XML DataConnections_Type(@http://schemas.microsoft.com/office/visio/2012/main).
*
* This is a complex type.
*/
public class DataConnectionsTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.DataConnectionsType {
private static final long serialVersionUID = 1L;
public DataConnectionsTypeImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final javax.xml.namespace.QName DATACONNECTION$0 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "DataConnection");
private static final javax.xml.namespace.QName NEXTID$2 =
new javax.xml.namespace.QName("", "NextID");
/**
* Gets a List of "DataConnection" elements
*/
public java.util.List getDataConnectionList() {
final class DataConnectionList extends java.util.AbstractList {
@Override
public com.microsoft.schemas.office.visio.x2012.main.DataConnectionType get(int i)
{ return DataConnectionsTypeImpl.this.getDataConnectionArray(i); }
@Override
public com.microsoft.schemas.office.visio.x2012.main.DataConnectionType set(int i, com.microsoft.schemas.office.visio.x2012.main.DataConnectionType o) {
com.microsoft.schemas.office.visio.x2012.main.DataConnectionType old = DataConnectionsTypeImpl.this.getDataConnectionArray(i);
DataConnectionsTypeImpl.this.setDataConnectionArray(i, o);
return old;
}
@Override
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.DataConnectionType o)
{ DataConnectionsTypeImpl.this.insertNewDataConnection(i).set(o); }
@Override
public com.microsoft.schemas.office.visio.x2012.main.DataConnectionType remove(int i) {
com.microsoft.schemas.office.visio.x2012.main.DataConnectionType old = DataConnectionsTypeImpl.this.getDataConnectionArray(i);
DataConnectionsTypeImpl.this.removeDataConnection(i);
return old;
}
@Override
public int size()
{ return DataConnectionsTypeImpl.this.sizeOfDataConnectionArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new DataConnectionList();
}
}
/**
* Gets array of all "DataConnection" elements
*/
public com.microsoft.schemas.office.visio.x2012.main.DataConnectionType[] getDataConnectionArray() {
return getXmlObjectArray(DATACONNECTION$0, new com.microsoft.schemas.office.visio.x2012.main.DataConnectionType[0]);
}
/**
* Gets ith "DataConnection" element
*/
public com.microsoft.schemas.office.visio.x2012.main.DataConnectionType getDataConnectionArray(int i) {
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.DataConnectionType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.DataConnectionType)get_store().find_element_user(DATACONNECTION$0, i);
if (target == null) {
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "DataConnection" element
*/
public int sizeOfDataConnectionArray() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(DATACONNECTION$0);
}
}
/**
* Sets array of all "DataConnection" element WARNING: This method is not atomicaly synchronized.
*/
public void setDataConnectionArray(com.microsoft.schemas.office.visio.x2012.main.DataConnectionType[] dataConnectionArray) {
check_orphaned();
arraySetterHelper(dataConnectionArray, DATACONNECTION$0);
}
/**
* Sets ith "DataConnection" element
*/
public void setDataConnectionArray(int i, com.microsoft.schemas.office.visio.x2012.main.DataConnectionType dataConnection) {
generatedSetterHelperImpl(dataConnection, DATACONNECTION$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "DataConnection" element
*/
public com.microsoft.schemas.office.visio.x2012.main.DataConnectionType insertNewDataConnection(int i) {
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.DataConnectionType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.DataConnectionType)get_store().insert_element_user(DATACONNECTION$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "DataConnection" element
*/
public com.microsoft.schemas.office.visio.x2012.main.DataConnectionType addNewDataConnection() {
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.DataConnectionType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.DataConnectionType)get_store().add_element_user(DATACONNECTION$0);
return target;
}
}
/**
* Removes the ith "DataConnection" element
*/
public void removeDataConnection(int i) {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(DATACONNECTION$0, i);
}
}
/**
* Gets the "NextID" attribute
*/
public long getNextID() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NEXTID$2);
if (target == null) {
return 0L;
}
return target.getLongValue();
}
}
/**
* Gets (as xml) the "NextID" attribute
*/
public org.apache.xmlbeans.XmlUnsignedInt xgetNextID() {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(NEXTID$2);
return target;
}
}
/**
* Sets the "NextID" attribute
*/
public void setNextID(long nextID) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NEXTID$2);
if (target == null) {
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NEXTID$2);
}
target.setLongValue(nextID);
}
}
/**
* Sets (as xml) the "NextID" attribute
*/
public void xsetNextID(org.apache.xmlbeans.XmlUnsignedInt nextID) {
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(NEXTID$2);
if (target == null) {
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().add_attribute_user(NEXTID$2);
}
target.set(nextID);
}
}
}