com.microsoft.schemas.office.visio.x2012.main.impl.StyleSheetsTypeImpl 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: 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
{
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
{
public com.microsoft.schemas.office.visio.x2012.main.StyleSheetType get(int i)
{ return StyleSheetsTypeImpl.this.getStyleSheetArray(i); }
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;
}
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.StyleSheetType o)
{ StyleSheetsTypeImpl.this.insertNewStyleSheet(i).set(o); }
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;
}
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()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(STYLESHEET$0, targetList);
com.microsoft.schemas.office.visio.x2012.main.StyleSheetType[] result = new com.microsoft.schemas.office.visio.x2012.main.StyleSheetType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* 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
*/
public void setStyleSheetArray(com.microsoft.schemas.office.visio.x2012.main.StyleSheetType[] styleSheetArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(styleSheetArray, STYLESHEET$0);
}
}
/**
* Sets ith "StyleSheet" element
*/
public void setStyleSheetArray(int i, com.microsoft.schemas.office.visio.x2012.main.StyleSheetType styleSheet)
{
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();
}
target.set(styleSheet);
}
}
/**
* 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);
}
}
}