org.etsi.uri.x01903.v13.impl.CRLRefsTypeImpl 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: CRLRefsType
* Namespace: http://uri.etsi.org/01903/v1.3.2#
* Java type: org.etsi.uri.x01903.v13.CRLRefsType
*
* Automatically generated - do not modify.
*/
package org.etsi.uri.x01903.v13.impl;
/**
* An XML CRLRefsType(@http://uri.etsi.org/01903/v1.3.2#).
*
* This is a complex type.
*/
public class CRLRefsTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.etsi.uri.x01903.v13.CRLRefsType {
private static final long serialVersionUID = 1L;
public CRLRefsTypeImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final javax.xml.namespace.QName CRLREF$0 =
new javax.xml.namespace.QName("http://uri.etsi.org/01903/v1.3.2#", "CRLRef");
/**
* Gets a List of "CRLRef" elements
*/
public java.util.List getCRLRefList() {
final class CRLRefList extends java.util.AbstractList {
@Override
public org.etsi.uri.x01903.v13.CRLRefType get(int i)
{ return CRLRefsTypeImpl.this.getCRLRefArray(i); }
@Override
public org.etsi.uri.x01903.v13.CRLRefType set(int i, org.etsi.uri.x01903.v13.CRLRefType o) {
org.etsi.uri.x01903.v13.CRLRefType old = CRLRefsTypeImpl.this.getCRLRefArray(i);
CRLRefsTypeImpl.this.setCRLRefArray(i, o);
return old;
}
@Override
public void add(int i, org.etsi.uri.x01903.v13.CRLRefType o)
{ CRLRefsTypeImpl.this.insertNewCRLRef(i).set(o); }
@Override
public org.etsi.uri.x01903.v13.CRLRefType remove(int i) {
org.etsi.uri.x01903.v13.CRLRefType old = CRLRefsTypeImpl.this.getCRLRefArray(i);
CRLRefsTypeImpl.this.removeCRLRef(i);
return old;
}
@Override
public int size()
{ return CRLRefsTypeImpl.this.sizeOfCRLRefArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new CRLRefList();
}
}
/**
* Gets array of all "CRLRef" elements
*/
public org.etsi.uri.x01903.v13.CRLRefType[] getCRLRefArray() {
return getXmlObjectArray(CRLREF$0, new org.etsi.uri.x01903.v13.CRLRefType[0]);
}
/**
* Gets ith "CRLRef" element
*/
public org.etsi.uri.x01903.v13.CRLRefType getCRLRefArray(int i) {
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.CRLRefType target = null;
target = (org.etsi.uri.x01903.v13.CRLRefType)get_store().find_element_user(CRLREF$0, i);
if (target == null) {
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "CRLRef" element
*/
public int sizeOfCRLRefArray() {
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CRLREF$0);
}
}
/**
* Sets array of all "CRLRef" element WARNING: This method is not atomicaly synchronized.
*/
public void setCRLRefArray(org.etsi.uri.x01903.v13.CRLRefType[] crlRefArray) {
check_orphaned();
arraySetterHelper(crlRefArray, CRLREF$0);
}
/**
* Sets ith "CRLRef" element
*/
public void setCRLRefArray(int i, org.etsi.uri.x01903.v13.CRLRefType crlRef) {
generatedSetterHelperImpl(crlRef, CRLREF$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "CRLRef" element
*/
public org.etsi.uri.x01903.v13.CRLRefType insertNewCRLRef(int i) {
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.CRLRefType target = null;
target = (org.etsi.uri.x01903.v13.CRLRefType)get_store().insert_element_user(CRLREF$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "CRLRef" element
*/
public org.etsi.uri.x01903.v13.CRLRefType addNewCRLRef() {
synchronized (monitor())
{
check_orphaned();
org.etsi.uri.x01903.v13.CRLRefType target = null;
target = (org.etsi.uri.x01903.v13.CRLRefType)get_store().add_element_user(CRLREF$0);
return target;
}
}
/**
* Removes the ith "CRLRef" element
*/
public void removeCRLRef(int i) {
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CRLREF$0, i);
}
}
}