com.microsoft.schemas.office.visio.x2012.main.impl.SnapAnglesTypeImpl 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: SnapAngles_Type
* Namespace: http://schemas.microsoft.com/office/visio/2012/main
* Java type: com.microsoft.schemas.office.visio.x2012.main.SnapAnglesType
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.office.visio.x2012.main.impl;
/**
* An XML SnapAngles_Type(@http://schemas.microsoft.com/office/visio/2012/main).
*
* This is a complex type.
*/
public class SnapAnglesTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.microsoft.schemas.office.visio.x2012.main.SnapAnglesType
{
public SnapAnglesTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName SNAPANGLE$0 =
new javax.xml.namespace.QName("http://schemas.microsoft.com/office/visio/2012/main", "SnapAngle");
/**
* Gets a List of "SnapAngle" elements
*/
public java.util.List getSnapAngleList()
{
final class SnapAngleList extends java.util.AbstractList
{
public com.microsoft.schemas.office.visio.x2012.main.SnapAngleType get(int i)
{ return SnapAnglesTypeImpl.this.getSnapAngleArray(i); }
public com.microsoft.schemas.office.visio.x2012.main.SnapAngleType set(int i, com.microsoft.schemas.office.visio.x2012.main.SnapAngleType o)
{
com.microsoft.schemas.office.visio.x2012.main.SnapAngleType old = SnapAnglesTypeImpl.this.getSnapAngleArray(i);
SnapAnglesTypeImpl.this.setSnapAngleArray(i, o);
return old;
}
public void add(int i, com.microsoft.schemas.office.visio.x2012.main.SnapAngleType o)
{ SnapAnglesTypeImpl.this.insertNewSnapAngle(i).set(o); }
public com.microsoft.schemas.office.visio.x2012.main.SnapAngleType remove(int i)
{
com.microsoft.schemas.office.visio.x2012.main.SnapAngleType old = SnapAnglesTypeImpl.this.getSnapAngleArray(i);
SnapAnglesTypeImpl.this.removeSnapAngle(i);
return old;
}
public int size()
{ return SnapAnglesTypeImpl.this.sizeOfSnapAngleArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new SnapAngleList();
}
}
/**
* Gets array of all "SnapAngle" elements
*/
public com.microsoft.schemas.office.visio.x2012.main.SnapAngleType[] getSnapAngleArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(SNAPANGLE$0, targetList);
com.microsoft.schemas.office.visio.x2012.main.SnapAngleType[] result = new com.microsoft.schemas.office.visio.x2012.main.SnapAngleType[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "SnapAngle" element
*/
public com.microsoft.schemas.office.visio.x2012.main.SnapAngleType getSnapAngleArray(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.SnapAngleType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.SnapAngleType)get_store().find_element_user(SNAPANGLE$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "SnapAngle" element
*/
public int sizeOfSnapAngleArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(SNAPANGLE$0);
}
}
/**
* Sets array of all "SnapAngle" element
*/
public void setSnapAngleArray(com.microsoft.schemas.office.visio.x2012.main.SnapAngleType[] snapAngleArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(snapAngleArray, SNAPANGLE$0);
}
}
/**
* Sets ith "SnapAngle" element
*/
public void setSnapAngleArray(int i, com.microsoft.schemas.office.visio.x2012.main.SnapAngleType snapAngle)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.SnapAngleType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.SnapAngleType)get_store().find_element_user(SNAPANGLE$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(snapAngle);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "SnapAngle" element
*/
public com.microsoft.schemas.office.visio.x2012.main.SnapAngleType insertNewSnapAngle(int i)
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.SnapAngleType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.SnapAngleType)get_store().insert_element_user(SNAPANGLE$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "SnapAngle" element
*/
public com.microsoft.schemas.office.visio.x2012.main.SnapAngleType addNewSnapAngle()
{
synchronized (monitor())
{
check_orphaned();
com.microsoft.schemas.office.visio.x2012.main.SnapAngleType target = null;
target = (com.microsoft.schemas.office.visio.x2012.main.SnapAngleType)get_store().add_element_user(SNAPANGLE$0);
return target;
}
}
/**
* Removes the ith "SnapAngle" element
*/
public void removeSnapAngle(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(SNAPANGLE$0, i);
}
}
}