com.microsoft.schemas.office.visio.x2012.main.impl.StyleSheetsTypeImpl 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: StyleSheets_Type
* Namespace: http://schemas.microsoft.com/office/visio/2012/main
* Java type: com.microsoft.schemas.office.visio.x2012.main.StyleSheetsType
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
* An XML StyleSheets_Type(@http://schemas.microsoft.com/office/visio/2012/main).
*
* This is a complex type.
*/
public class StyleSheetsTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.StyleSheetsType {
private static final long serialVersionUID = 1L;
public StyleSheetsTypeImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final javax.xml.namespace.QName STYLESHEET$0 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "StyleSheet");
/**
* Gets a List of "StyleSheet" elements
*/
public java.util.List getStyleSheetList() {
final class StyleSheetList extends java.util.AbstractList {
@Override
public com.microsoft.schemas.office.visio.x2012.main.StyleSheetType get(int i)
{ return StyleSheetsTypeImpl.this.getStyleSheetArray(i); }
@Override
public com.microsoft.schemas.office.visio.x2012.main.StyleSheetType set(int i, com.microsoft.schemas.office.visio.x2012.main.StyleSheetType o) {
com.microsoft.schemas.office.visio.x2012.main.StyleSheetType old = StyleSheetsTypeImpl.this.getStyleSheetArray(i);
StyleSheetsTypeImpl.this.setStyleSheetArray(i, o);
return old;
}
@Override
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.StyleSheetType o)
{ StyleSheetsTypeImpl.this.insertNewStyleSheet(i).set(o); }
@Override
public com.microsoft.schemas.office.visio.x2012.main.StyleSheetType remove(int i) {
com.microsoft.schemas.office.visio.x2012.main.StyleSheetType old = StyleSheetsTypeImpl.this.getStyleSheetArray(i);
StyleSheetsTypeImpl.this.removeStyleSheet(i);
return old;
}
@Override
public int size()
{ return StyleSheetsTypeImpl.this.sizeOfStyleSheetArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new StyleSheetList();
}
}
/**
* Gets array of all "StyleSheet" elements
*/
public com.microsoft.schemas.office.visio.x2012.main.StyleSheetType[] getStyleSheetArray() {
return getXmlObjectArray(STYLESHEET$0, new com.microsoft.schemas.office.visio.x2012.main.StyleSheetType[0]);
}
/**
* Gets ith "StyleSheet" element
*/
public com.microsoft.schemas.office.visio.x2012.main.StyleSheetType getStyleSheetArray(int i) {
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.StyleSheetType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.StyleSheetType)get_store().find_element_user(STYLESHEET$0, i);
if (target == null) {
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "StyleSheet" element
*/
public int sizeOfStyleSheetArray() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(STYLESHEET$0);
}
}
/**
* Sets array of all "StyleSheet" element WARNING: This method is not atomicaly synchronized.
*/
public void setStyleSheetArray(com.microsoft.schemas.office.visio.x2012.main.StyleSheetType[] styleSheetArray) {
check_orphaned();
arraySetterHelper(styleSheetArray, STYLESHEET$0);
}
/**
* Sets ith "StyleSheet" element
*/
public void setStyleSheetArray(int i, com.microsoft.schemas.office.visio.x2012.main.StyleSheetType styleSheet) {
generatedSetterHelperImpl(styleSheet, STYLESHEET$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "StyleSheet" element
*/
public com.microsoft.schemas.office.visio.x2012.main.StyleSheetType insertNewStyleSheet(int i) {
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.StyleSheetType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.StyleSheetType)get_store().insert_element_user(STYLESHEET$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "StyleSheet" element
*/
public com.microsoft.schemas.office.visio.x2012.main.StyleSheetType addNewStyleSheet() {
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.StyleSheetType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.StyleSheetType)get_store().add_element_user(STYLESHEET$0);
return target;
}
}
/**
* Removes the ith "StyleSheet" element
*/
public void removeStyleSheet(int i) {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(STYLESHEET$0, i);
}
}
}