com.microsoft.schemas.office.visio.x2012.main.impl.DataColumnsTypeImpl 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: DataColumns_Type
* Namespace: http://schemas.microsoft.com/office/visio/2012/main
* Java type: com.microsoft.schemas.office.visio.x2012.main.DataColumnsType
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
* An XML DataColumns_Type(@http://schemas.microsoft.com/office/visio/2012/main).
*
* This is a complex type.
*/
public class DataColumnsTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.DataColumnsType
{
private static final long serialVersionUID = 1L;
public DataColumnsTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName DATACOLUMN$0 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "DataColumn");
private static final javax.xml.namespace.QName SORTCOLUMN$2 =
new javax.xml.namespace.QName("", "SortColumn");
private static final javax.xml.namespace.QName SORTASC$4 =
new javax.xml.namespace.QName("", "SortAsc");
/**
* Gets a List of "DataColumn" elements
*/
public java.util.List getDataColumnList()
{
final class DataColumnList extends java.util.AbstractList
{
@Override
public com.microsoft.schemas.office.visio.x2012.main.DataColumnType get(int i)
{ return DataColumnsTypeImpl.this.getDataColumnArray(i); }
@Override
public com.microsoft.schemas.office.visio.x2012.main.DataColumnType set(int i, com.microsoft.schemas.office.visio.x2012.main.DataColumnType o)
{
com.microsoft.schemas.office.visio.x2012.main.DataColumnType old = DataColumnsTypeImpl.this.getDataColumnArray(i);
DataColumnsTypeImpl.this.setDataColumnArray(i, o);
return old;
}
@Override
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.DataColumnType o)
{ DataColumnsTypeImpl.this.insertNewDataColumn(i).set(o); }
@Override
public com.microsoft.schemas.office.visio.x2012.main.DataColumnType remove(int i)
{
com.microsoft.schemas.office.visio.x2012.main.DataColumnType old = DataColumnsTypeImpl.this.getDataColumnArray(i);
DataColumnsTypeImpl.this.removeDataColumn(i);
return old;
}
@Override
public int size()
{ return DataColumnsTypeImpl.this.sizeOfDataColumnArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new DataColumnList();
}
}
/**
* Gets array of all "DataColumn" elements
* @deprecated
*/
@Deprecated
public com.microsoft.schemas.office.visio.x2012.main.DataColumnType[] getDataColumnArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(DATACOLUMN$0, targetList);
com.microsoft.schemas.office.visio.x2012.main.DataColumnType[] result = new com.microsoft.schemas.office.visio.x2012.main.DataColumnType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "DataColumn" element
*/
public com.microsoft.schemas.office.visio.x2012.main.DataColumnType getDataColumnArray(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.DataColumnType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.DataColumnType)get_store().find_element_user(DATACOLUMN$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "DataColumn" element
*/
public int sizeOfDataColumnArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(DATACOLUMN$0);
}
}
/**
* Sets array of all "DataColumn" element WARNING: This method is not atomicaly synchronized.
*/
public void setDataColumnArray(com.microsoft.schemas.office.visio.x2012.main.DataColumnType[] dataColumnArray)
{
check_orphaned();
arraySetterHelper(dataColumnArray, DATACOLUMN$0);
}
/**
* Sets ith "DataColumn" element
*/
public void setDataColumnArray(int i, com.microsoft.schemas.office.visio.x2012.main.DataColumnType dataColumn)
{
generatedSetterHelperImpl(dataColumn, DATACOLUMN$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "DataColumn" element
*/
public com.microsoft.schemas.office.visio.x2012.main.DataColumnType insertNewDataColumn(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.DataColumnType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.DataColumnType)get_store().insert_element_user(DATACOLUMN$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "DataColumn" element
*/
public com.microsoft.schemas.office.visio.x2012.main.DataColumnType addNewDataColumn()
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.DataColumnType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.DataColumnType)get_store().add_element_user(DATACOLUMN$0);
return target;
}
}
/**
* Removes the ith "DataColumn" element
*/
public void removeDataColumn(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(DATACOLUMN$0, i);
}
}
/**
* Gets the "SortColumn" attribute
*/
public java.lang.String getSortColumn()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SORTCOLUMN$2);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "SortColumn" attribute
*/
public org.apache.xmlbeans.XmlString xgetSortColumn()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(SORTCOLUMN$2);
return target;
}
}
/**
* True if has "SortColumn" attribute
*/
public boolean isSetSortColumn()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(SORTCOLUMN$2) != null;
}
}
/**
* Sets the "SortColumn" attribute
*/
public void setSortColumn(java.lang.String sortColumn)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SORTCOLUMN$2);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SORTCOLUMN$2);
}
target.setStringValue(sortColumn);
}
}
/**
* Sets (as xml) the "SortColumn" attribute
*/
public void xsetSortColumn(org.apache.xmlbeans.XmlString sortColumn)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(SORTCOLUMN$2);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(SORTCOLUMN$2);
}
target.set(sortColumn);
}
}
/**
* Unsets the "SortColumn" attribute
*/
public void unsetSortColumn()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(SORTCOLUMN$2);
}
}
/**
* Gets the "SortAsc" attribute
*/
public boolean getSortAsc()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SORTASC$4);
if (target == null)
{
return false;
}
return target.getBooleanValue();
}
}
/**
* Gets (as xml) the "SortAsc" attribute
*/
public org.apache.xmlbeans.XmlBoolean xgetSortAsc()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SORTASC$4);
return target;
}
}
/**
* True if has "SortAsc" attribute
*/
public boolean isSetSortAsc()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(SORTASC$4) != null;
}
}
/**
* Sets the "SortAsc" attribute
*/
public void setSortAsc(boolean sortAsc)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SORTASC$4);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SORTASC$4);
}
target.setBooleanValue(sortAsc);
}
}
/**
* Sets (as xml) the "SortAsc" attribute
*/
public void xsetSortAsc(org.apache.xmlbeans.XmlBoolean sortAsc)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(SORTASC$4);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(SORTASC$4);
}
target.set(sortAsc);
}
}
/**
* Unsets the "SortAsc" attribute
*/
public void unsetSortAsc()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(SORTASC$4);
}
}
}