com.microsoft.schemas.office.visio.x2012.main.impl.SectionTypeImpl 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: Section_Type
* Namespace: http://schemas.microsoft.com/office/visio/2012/main
* Java type: com.microsoft.schemas.office.visio.x2012.main.SectionType
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
* An XML Section_Type(@http://schemas.microsoft.com/office/visio/2012/main).
*
* This is a complex type.
*/
public class SectionTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.SectionType
{
public SectionTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName CELL$0 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "Cell");
private static final javax.xml.namespace.QName TRIGGER$2 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "Trigger");
private static final javax.xml.namespace.QName ROW$4 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "Row");
private static final javax.xml.namespace.QName N$6 =
new javax.xml.namespace.QName("", "N");
private static final javax.xml.namespace.QName DEL$8 =
new javax.xml.namespace.QName("", "Del");
private static final javax.xml.namespace.QName IX$10 =
new javax.xml.namespace.QName("", "IX");
/**
* Gets a List of "Cell" elements
*/
public java.util.List getCellList()
{
final class CellList extends java.util.AbstractList
{
public com.microsoft.schemas.office.visio.x2012.main.CellType get(int i)
{ return SectionTypeImpl.this.getCellArray(i); }
public com.microsoft.schemas.office.visio.x2012.main.CellType set(int i, com.microsoft.schemas.office.visio.x2012.main.CellType o)
{
com.microsoft.schemas.office.visio.x2012.main.CellType old = SectionTypeImpl.this.getCellArray(i);
SectionTypeImpl.this.setCellArray(i, o);
return old;
}
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.CellType o)
{ SectionTypeImpl.this.insertNewCell(i).set(o); }
public com.microsoft.schemas.office.visio.x2012.main.CellType remove(int i)
{
com.microsoft.schemas.office.visio.x2012.main.CellType old = SectionTypeImpl.this.getCellArray(i);
SectionTypeImpl.this.removeCell(i);
return old;
}
public int size()
{ return SectionTypeImpl.this.sizeOfCellArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new CellList();
}
}
/**
* Gets array of all "Cell" elements
*/
public com.microsoft.schemas.office.visio.x2012.main.CellType[] getCellArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(CELL$0, targetList);
com.microsoft.schemas.office.visio.x2012.main.CellType[] result = new com.microsoft.schemas.office.visio.x2012.main.CellType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "Cell" element
*/
public com.microsoft.schemas.office.visio.x2012.main.CellType getCellArray(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.CellType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.CellType)get_store().find_element_user(CELL$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "Cell" element
*/
public int sizeOfCellArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CELL$0);
}
}
/**
* Sets array of all "Cell" element
*/
public void setCellArray(com.microsoft.schemas.office.visio.x2012.main.CellType[] cellArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(cellArray, CELL$0);
}
}
/**
* Sets ith "Cell" element
*/
public void setCellArray(int i, com.microsoft.schemas.office.visio.x2012.main.CellType cell)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.CellType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.CellType)get_store().find_element_user(CELL$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(cell);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "Cell" element
*/
public com.microsoft.schemas.office.visio.x2012.main.CellType insertNewCell(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.CellType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.CellType)get_store().insert_element_user(CELL$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "Cell" element
*/
public com.microsoft.schemas.office.visio.x2012.main.CellType addNewCell()
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.CellType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.CellType)get_store().add_element_user(CELL$0);
return target;
}
}
/**
* Removes the ith "Cell" element
*/
public void removeCell(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CELL$0, i);
}
}
/**
* Gets a List of "Trigger" elements
*/
public java.util.List getTriggerList()
{
final class TriggerList extends java.util.AbstractList
{
public com.microsoft.schemas.office.visio.x2012.main.TriggerType get(int i)
{ return SectionTypeImpl.this.getTriggerArray(i); }
public com.microsoft.schemas.office.visio.x2012.main.TriggerType set(int i, com.microsoft.schemas.office.visio.x2012.main.TriggerType o)
{
com.microsoft.schemas.office.visio.x2012.main.TriggerType old = SectionTypeImpl.this.getTriggerArray(i);
SectionTypeImpl.this.setTriggerArray(i, o);
return old;
}
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.TriggerType o)
{ SectionTypeImpl.this.insertNewTrigger(i).set(o); }
public com.microsoft.schemas.office.visio.x2012.main.TriggerType remove(int i)
{
com.microsoft.schemas.office.visio.x2012.main.TriggerType old = SectionTypeImpl.this.getTriggerArray(i);
SectionTypeImpl.this.removeTrigger(i);
return old;
}
public int size()
{ return SectionTypeImpl.this.sizeOfTriggerArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new TriggerList();
}
}
/**
* Gets array of all "Trigger" elements
*/
public com.microsoft.schemas.office.visio.x2012.main.TriggerType[] getTriggerArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(TRIGGER$2, targetList);
com.microsoft.schemas.office.visio.x2012.main.TriggerType[] result = new com.microsoft.schemas.office.visio.x2012.main.TriggerType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "Trigger" element
*/
public com.microsoft.schemas.office.visio.x2012.main.TriggerType getTriggerArray(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.TriggerType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.TriggerType)get_store().find_element_user(TRIGGER$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "Trigger" element
*/
public int sizeOfTriggerArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(TRIGGER$2);
}
}
/**
* Sets array of all "Trigger" element
*/
public void setTriggerArray(com.microsoft.schemas.office.visio.x2012.main.TriggerType[] triggerArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(triggerArray, TRIGGER$2);
}
}
/**
* Sets ith "Trigger" element
*/
public void setTriggerArray(int i, com.microsoft.schemas.office.visio.x2012.main.TriggerType trigger)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.TriggerType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.TriggerType)get_store().find_element_user(TRIGGER$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(trigger);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "Trigger" element
*/
public com.microsoft.schemas.office.visio.x2012.main.TriggerType insertNewTrigger(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.TriggerType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.TriggerType)get_store().insert_element_user(TRIGGER$2, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "Trigger" element
*/
public com.microsoft.schemas.office.visio.x2012.main.TriggerType addNewTrigger()
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.TriggerType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.TriggerType)get_store().add_element_user(TRIGGER$2);
return target;
}
}
/**
* Removes the ith "Trigger" element
*/
public void removeTrigger(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(TRIGGER$2, i);
}
}
/**
* Gets a List of "Row" elements
*/
public java.util.List getRowList()
{
final class RowList extends java.util.AbstractList
{
public com.microsoft.schemas.office.visio.x2012.main.RowType get(int i)
{ return SectionTypeImpl.this.getRowArray(i); }
public com.microsoft.schemas.office.visio.x2012.main.RowType set(int i, com.microsoft.schemas.office.visio.x2012.main.RowType o)
{
com.microsoft.schemas.office.visio.x2012.main.RowType old = SectionTypeImpl.this.getRowArray(i);
SectionTypeImpl.this.setRowArray(i, o);
return old;
}
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.RowType o)
{ SectionTypeImpl.this.insertNewRow(i).set(o); }
public com.microsoft.schemas.office.visio.x2012.main.RowType remove(int i)
{
com.microsoft.schemas.office.visio.x2012.main.RowType old = SectionTypeImpl.this.getRowArray(i);
SectionTypeImpl.this.removeRow(i);
return old;
}
public int size()
{ return SectionTypeImpl.this.sizeOfRowArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new RowList();
}
}
/**
* Gets array of all "Row" elements
*/
public com.microsoft.schemas.office.visio.x2012.main.RowType[] getRowArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ROW$4, targetList);
com.microsoft.schemas.office.visio.x2012.main.RowType[] result = new com.microsoft.schemas.office.visio.x2012.main.RowType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "Row" element
*/
public com.microsoft.schemas.office.visio.x2012.main.RowType getRowArray(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.RowType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.RowType)get_store().find_element_user(ROW$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "Row" element
*/
public int sizeOfRowArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ROW$4);
}
}
/**
* Sets array of all "Row" element
*/
public void setRowArray(com.microsoft.schemas.office.visio.x2012.main.RowType[] rowArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(rowArray, ROW$4);
}
}
/**
* Sets ith "Row" element
*/
public void setRowArray(int i, com.microsoft.schemas.office.visio.x2012.main.RowType row)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.RowType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.RowType)get_store().find_element_user(ROW$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(row);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "Row" element
*/
public com.microsoft.schemas.office.visio.x2012.main.RowType insertNewRow(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.RowType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.RowType)get_store().insert_element_user(ROW$4, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "Row" element
*/
public com.microsoft.schemas.office.visio.x2012.main.RowType addNewRow()
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.RowType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.RowType)get_store().add_element_user(ROW$4);
return target;
}
}
/**
* Removes the ith "Row" element
*/
public void removeRow(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ROW$4, i);
}
}
/**
* Gets the "N" attribute
*/
public java.lang.String getN()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(N$6);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "N" attribute
*/
public org.apache.xmlbeans.XmlString xgetN()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(N$6);
return target;
}
}
/**
* Sets the "N" attribute
*/
public void setN(java.lang.String n)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(N$6);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(N$6);
}
target.setStringValue(n);
}
}
/**
* Sets (as xml) the "N" attribute
*/
public void xsetN(org.apache.xmlbeans.XmlString n)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(N$6);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(N$6);
}
target.set(n);
}
}
/**
* Gets the "Del" attribute
*/
public boolean getDel()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DEL$8);
if (target == null)
{
return false;
}
return target.getBooleanValue();
}
}
/**
* Gets (as xml) the "Del" attribute
*/
public org.apache.xmlbeans.XmlBoolean xgetDel()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(DEL$8);
return target;
}
}
/**
* True if has "Del" attribute
*/
public boolean isSetDel()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(DEL$8) != null;
}
}
/**
* Sets the "Del" attribute
*/
public void setDel(boolean del)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DEL$8);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DEL$8);
}
target.setBooleanValue(del);
}
}
/**
* Sets (as xml) the "Del" attribute
*/
public void xsetDel(org.apache.xmlbeans.XmlBoolean del)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(DEL$8);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(DEL$8);
}
target.set(del);
}
}
/**
* Unsets the "Del" attribute
*/
public void unsetDel()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(DEL$8);
}
}
/**
* Gets the "IX" attribute
*/
public long getIX()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(IX$10);
if (target == null)
{
return 0L;
}
return target.getLongValue();
}
}
/**
* Gets (as xml) the "IX" attribute
*/
public org.apache.xmlbeans.XmlUnsignedInt xgetIX()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(IX$10);
return target;
}
}
/**
* True if has "IX" attribute
*/
public boolean isSetIX()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(IX$10) != null;
}
}
/**
* Sets the "IX" attribute
*/
public void setIX(long ix)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(IX$10);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(IX$10);
}
target.setLongValue(ix);
}
}
/**
* Sets (as xml) the "IX" attribute
*/
public void xsetIX(org.apache.xmlbeans.XmlUnsignedInt ix)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(IX$10);
if (target == null)
{
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().add_attribute_user(IX$10);
}
target.set(ix);
}
}
/**
* Unsets the "IX" attribute
*/
public void unsetIX()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(IX$10);
}
}
}