com.microsoft.schemas.office.visio.x2012.main.impl.DataRecordSetsTypeImpl 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: DataRecordSets_Type
* Namespace: http://schemas.microsoft.com/office/visio/2012/main
* Java type: com.microsoft.schemas.office.visio.x2012.main.DataRecordSetsType
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
* An XML DataRecordSets_Type(@http://schemas.microsoft.com/office/visio/2012/main).
*
* This is a complex type.
*/
public class DataRecordSetsTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.DataRecordSetsType
{
private static final long serialVersionUID = 1L;
public DataRecordSetsTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName DATARECORDSET$0 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "DataRecordSet");
private static final javax.xml.namespace.QName NEXTID$2 =
new javax.xml.namespace.QName("", "NextID");
private static final javax.xml.namespace.QName ACTIVERECORDSETID$4 =
new javax.xml.namespace.QName("", "ActiveRecordsetID");
private static final javax.xml.namespace.QName DATAWINDOWORDER$6 =
new javax.xml.namespace.QName("", "DataWindowOrder");
/**
* Gets a List of "DataRecordSet" elements
*/
public java.util.List getDataRecordSetList()
{
final class DataRecordSetList extends java.util.AbstractList
{
@Override
public com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType get(int i)
{ return DataRecordSetsTypeImpl.this.getDataRecordSetArray(i); }
@Override
public com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType set(int i, com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType o)
{
com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType old = DataRecordSetsTypeImpl.this.getDataRecordSetArray(i);
DataRecordSetsTypeImpl.this.setDataRecordSetArray(i, o);
return old;
}
@Override
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType o)
{ DataRecordSetsTypeImpl.this.insertNewDataRecordSet(i).set(o); }
@Override
public com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType remove(int i)
{
com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType old = DataRecordSetsTypeImpl.this.getDataRecordSetArray(i);
DataRecordSetsTypeImpl.this.removeDataRecordSet(i);
return old;
}
@Override
public int size()
{ return DataRecordSetsTypeImpl.this.sizeOfDataRecordSetArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new DataRecordSetList();
}
}
/**
* Gets array of all "DataRecordSet" elements
* @deprecated
*/
@Deprecated
public com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType[] getDataRecordSetArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(DATARECORDSET$0, targetList);
com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType[] result = new com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "DataRecordSet" element
*/
public com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType getDataRecordSetArray(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType)get_store().find_element_user(DATARECORDSET$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "DataRecordSet" element
*/
public int sizeOfDataRecordSetArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(DATARECORDSET$0);
}
}
/**
* Sets array of all "DataRecordSet" element WARNING: This method is not atomicaly synchronized.
*/
public void setDataRecordSetArray(com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType[] dataRecordSetArray)
{
check_orphaned();
arraySetterHelper(dataRecordSetArray, DATARECORDSET$0);
}
/**
* Sets ith "DataRecordSet" element
*/
public void setDataRecordSetArray(int i, com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType dataRecordSet)
{
generatedSetterHelperImpl(dataRecordSet, DATARECORDSET$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "DataRecordSet" element
*/
public com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType insertNewDataRecordSet(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType)get_store().insert_element_user(DATARECORDSET$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "DataRecordSet" element
*/
public com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType addNewDataRecordSet()
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.DataRecordSetType)get_store().add_element_user(DATARECORDSET$0);
return target;
}
}
/**
* Removes the ith "DataRecordSet" element
*/
public void removeDataRecordSet(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(DATARECORDSET$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);
}
}
/**
* Gets the "ActiveRecordsetID" attribute
*/
public long getActiveRecordsetID()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ACTIVERECORDSETID$4);
if (target == null)
{
return 0L;
}
return target.getLongValue();
}
}
/**
* Gets (as xml) the "ActiveRecordsetID" attribute
*/
public org.apache.xmlbeans.XmlUnsignedInt xgetActiveRecordsetID()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(ACTIVERECORDSETID$4);
return target;
}
}
/**
* True if has "ActiveRecordsetID" attribute
*/
public boolean isSetActiveRecordsetID()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(ACTIVERECORDSETID$4) != null;
}
}
/**
* Sets the "ActiveRecordsetID" attribute
*/
public void setActiveRecordsetID(long activeRecordsetID)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ACTIVERECORDSETID$4);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ACTIVERECORDSETID$4);
}
target.setLongValue(activeRecordsetID);
}
}
/**
* Sets (as xml) the "ActiveRecordsetID" attribute
*/
public void xsetActiveRecordsetID(org.apache.xmlbeans.XmlUnsignedInt activeRecordsetID)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(ACTIVERECORDSETID$4);
if (target == null)
{
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().add_attribute_user(ACTIVERECORDSETID$4);
}
target.set(activeRecordsetID);
}
}
/**
* Unsets the "ActiveRecordsetID" attribute
*/
public void unsetActiveRecordsetID()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(ACTIVERECORDSETID$4);
}
}
/**
* Gets the "DataWindowOrder" attribute
*/
public java.lang.String getDataWindowOrder()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DATAWINDOWORDER$6);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "DataWindowOrder" attribute
*/
public org.apache.xmlbeans.XmlString xgetDataWindowOrder()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DATAWINDOWORDER$6);
return target;
}
}
/**
* True if has "DataWindowOrder" attribute
*/
public boolean isSetDataWindowOrder()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(DATAWINDOWORDER$6) != null;
}
}
/**
* Sets the "DataWindowOrder" attribute
*/
public void setDataWindowOrder(java.lang.String dataWindowOrder)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DATAWINDOWORDER$6);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DATAWINDOWORDER$6);
}
target.setStringValue(dataWindowOrder);
}
}
/**
* Sets (as xml) the "DataWindowOrder" attribute
*/
public void xsetDataWindowOrder(org.apache.xmlbeans.XmlString dataWindowOrder)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DATAWINDOWORDER$6);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DATAWINDOWORDER$6);
}
target.set(dataWindowOrder);
}
}
/**
* Unsets the "DataWindowOrder" attribute
*/
public void unsetDataWindowOrder()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(DATAWINDOWORDER$6);
}
}
}