com.microsoft.schemas.office.visio.x2012.main.impl.SheetTypeImpl 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: Sheet_Type
* Namespace: http://schemas.microsoft.com/office/visio/2012/main
* Java type: com.microsoft.schemas.office.visio.x2012.main.SheetType
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
* An XML Sheet_Type(@http://schemas.microsoft.com/office/visio/2012/main).
*
* This is a complex type.
*/
public class SheetTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.SheetType
{
public SheetTypeImpl(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 SECTION$4 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "Section");
private static final javax.xml.namespace.QName LINESTYLE$6 =
new javax.xml.namespace.QName("", "LineStyle");
private static final javax.xml.namespace.QName FILLSTYLE$8 =
new javax.xml.namespace.QName("", "FillStyle");
private static final javax.xml.namespace.QName TEXTSTYLE$10 =
new javax.xml.namespace.QName("", "TextStyle");
/**
* 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 SheetTypeImpl.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 = SheetTypeImpl.this.getCellArray(i);
SheetTypeImpl.this.setCellArray(i, o);
return old;
}
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.CellType o)
{ SheetTypeImpl.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 = SheetTypeImpl.this.getCellArray(i);
SheetTypeImpl.this.removeCell(i);
return old;
}
public int size()
{ return SheetTypeImpl.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 SheetTypeImpl.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 = SheetTypeImpl.this.getTriggerArray(i);
SheetTypeImpl.this.setTriggerArray(i, o);
return old;
}
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.TriggerType o)
{ SheetTypeImpl.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 = SheetTypeImpl.this.getTriggerArray(i);
SheetTypeImpl.this.removeTrigger(i);
return old;
}
public int size()
{ return SheetTypeImpl.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 "Section" elements
*/
public java.util.List getSectionList()
{
final class SectionList extends java.util.AbstractList
{
public com.microsoft.schemas.office.visio.x2012.main.SectionType get(int i)
{ return SheetTypeImpl.this.getSectionArray(i); }
public com.microsoft.schemas.office.visio.x2012.main.SectionType set(int i, com.microsoft.schemas.office.visio.x2012.main.SectionType o)
{
com.microsoft.schemas.office.visio.x2012.main.SectionType old = SheetTypeImpl.this.getSectionArray(i);
SheetTypeImpl.this.setSectionArray(i, o);
return old;
}
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.SectionType o)
{ SheetTypeImpl.this.insertNewSection(i).set(o); }
public com.microsoft.schemas.office.visio.x2012.main.SectionType remove(int i)
{
com.microsoft.schemas.office.visio.x2012.main.SectionType old = SheetTypeImpl.this.getSectionArray(i);
SheetTypeImpl.this.removeSection(i);
return old;
}
public int size()
{ return SheetTypeImpl.this.sizeOfSectionArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new SectionList();
}
}
/**
* Gets array of all "Section" elements
*/
public com.microsoft.schemas.office.visio.x2012.main.SectionType[] getSectionArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(SECTION$4, targetList);
com.microsoft.schemas.office.visio.x2012.main.SectionType[] result = new com.microsoft.schemas.office.visio.x2012.main.SectionType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "Section" element
*/
public com.microsoft.schemas.office.visio.x2012.main.SectionType getSectionArray(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.SectionType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.SectionType)get_store().find_element_user(SECTION$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "Section" element
*/
public int sizeOfSectionArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(SECTION$4);
}
}
/**
* Sets array of all "Section" element
*/
public void setSectionArray(com.microsoft.schemas.office.visio.x2012.main.SectionType[] sectionArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(sectionArray, SECTION$4);
}
}
/**
* Sets ith "Section" element
*/
public void setSectionArray(int i, com.microsoft.schemas.office.visio.x2012.main.SectionType section)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.SectionType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.SectionType)get_store().find_element_user(SECTION$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(section);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "Section" element
*/
public com.microsoft.schemas.office.visio.x2012.main.SectionType insertNewSection(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.SectionType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.SectionType)get_store().insert_element_user(SECTION$4, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "Section" element
*/
public com.microsoft.schemas.office.visio.x2012.main.SectionType addNewSection()
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.SectionType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.SectionType)get_store().add_element_user(SECTION$4);
return target;
}
}
/**
* Removes the ith "Section" element
*/
public void removeSection(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(SECTION$4, i);
}
}
/**
* Gets the "LineStyle" attribute
*/
public long getLineStyle()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LINESTYLE$6);
if (target == null)
{
return 0L;
}
return target.getLongValue();
}
}
/**
* Gets (as xml) the "LineStyle" attribute
*/
public org.apache.xmlbeans.XmlUnsignedInt xgetLineStyle()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(LINESTYLE$6);
return target;
}
}
/**
* True if has "LineStyle" attribute
*/
public boolean isSetLineStyle()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(LINESTYLE$6) != null;
}
}
/**
* Sets the "LineStyle" attribute
*/
public void setLineStyle(long lineStyle)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LINESTYLE$6);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LINESTYLE$6);
}
target.setLongValue(lineStyle);
}
}
/**
* Sets (as xml) the "LineStyle" attribute
*/
public void xsetLineStyle(org.apache.xmlbeans.XmlUnsignedInt lineStyle)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(LINESTYLE$6);
if (target == null)
{
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().add_attribute_user(LINESTYLE$6);
}
target.set(lineStyle);
}
}
/**
* Unsets the "LineStyle" attribute
*/
public void unsetLineStyle()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(LINESTYLE$6);
}
}
/**
* Gets the "FillStyle" attribute
*/
public long getFillStyle()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FILLSTYLE$8);
if (target == null)
{
return 0L;
}
return target.getLongValue();
}
}
/**
* Gets (as xml) the "FillStyle" attribute
*/
public org.apache.xmlbeans.XmlUnsignedInt xgetFillStyle()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(FILLSTYLE$8);
return target;
}
}
/**
* True if has "FillStyle" attribute
*/
public boolean isSetFillStyle()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(FILLSTYLE$8) != null;
}
}
/**
* Sets the "FillStyle" attribute
*/
public void setFillStyle(long fillStyle)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(FILLSTYLE$8);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(FILLSTYLE$8);
}
target.setLongValue(fillStyle);
}
}
/**
* Sets (as xml) the "FillStyle" attribute
*/
public void xsetFillStyle(org.apache.xmlbeans.XmlUnsignedInt fillStyle)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(FILLSTYLE$8);
if (target == null)
{
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().add_attribute_user(FILLSTYLE$8);
}
target.set(fillStyle);
}
}
/**
* Unsets the "FillStyle" attribute
*/
public void unsetFillStyle()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(FILLSTYLE$8);
}
}
/**
* Gets the "TextStyle" attribute
*/
public long getTextStyle()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TEXTSTYLE$10);
if (target == null)
{
return 0L;
}
return target.getLongValue();
}
}
/**
* Gets (as xml) the "TextStyle" attribute
*/
public org.apache.xmlbeans.XmlUnsignedInt xgetTextStyle()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(TEXTSTYLE$10);
return target;
}
}
/**
* True if has "TextStyle" attribute
*/
public boolean isSetTextStyle()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(TEXTSTYLE$10) != null;
}
}
/**
* Sets the "TextStyle" attribute
*/
public void setTextStyle(long textStyle)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TEXTSTYLE$10);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TEXTSTYLE$10);
}
target.setLongValue(textStyle);
}
}
/**
* Sets (as xml) the "TextStyle" attribute
*/
public void xsetTextStyle(org.apache.xmlbeans.XmlUnsignedInt textStyle)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlUnsignedInt target = null;
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().find_attribute_user(TEXTSTYLE$10);
if (target == null)
{
target = (org.apache.xmlbeans.XmlUnsignedInt)get_store().add_attribute_user(TEXTSTYLE$10);
}
target.set(textStyle);
}
}
/**
* Unsets the "TextStyle" attribute
*/
public void unsetTextStyle()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(TEXTSTYLE$10);
}
}
}