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