All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.etsi.uri.x01903.v13.impl.OCSPRefsTypeImpl 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

There is a newer version: 5.2.5
Show newest version
/*
 * XML Type:  OCSPRefsType
 * Namespace: http://uri.etsi.org/01903/v1.3.2#
 * Java type: org.etsi.uri.x01903.v13.OCSPRefsType
 *
 * Automatically generated - do not modify.
 */
package org.etsi.uri.x01903.v13.impl;
/**
 * An XML OCSPRefsType(@http://uri.etsi.org/01903/v1.3.2#).
 *
 * This is a complex type.
 */
public class OCSPRefsTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.etsi.uri.x01903.v13.OCSPRefsType {
    private static final long serialVersionUID = 1L;
    
    public OCSPRefsTypeImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName OCSPREF$0 = 
        new javax.xml.namespace.QName("http://uri.etsi.org/01903/v1.3.2#", "OCSPRef");
    
    
    /**
     * Gets a List of "OCSPRef" elements
     */
    public java.util.List getOCSPRefList() {
        final class OCSPRefList extends java.util.AbstractList {
            @Override
            public org.etsi.uri.x01903.v13.OCSPRefType get(int i)
                { return OCSPRefsTypeImpl.this.getOCSPRefArray(i); }
            
            @Override
            public org.etsi.uri.x01903.v13.OCSPRefType set(int i, org.etsi.uri.x01903.v13.OCSPRefType o) {
                org.etsi.uri.x01903.v13.OCSPRefType old = OCSPRefsTypeImpl.this.getOCSPRefArray(i);
                OCSPRefsTypeImpl.this.setOCSPRefArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, org.etsi.uri.x01903.v13.OCSPRefType o)
                { OCSPRefsTypeImpl.this.insertNewOCSPRef(i).set(o); }
            
            @Override
            public org.etsi.uri.x01903.v13.OCSPRefType remove(int i) {
                org.etsi.uri.x01903.v13.OCSPRefType old = OCSPRefsTypeImpl.this.getOCSPRefArray(i);
                OCSPRefsTypeImpl.this.removeOCSPRef(i);
                return old;
            }
            
            @Override
            public int size()
                { return OCSPRefsTypeImpl.this.sizeOfOCSPRefArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new OCSPRefList();
        }
    }
    
    /**
     * Gets array of all "OCSPRef" elements
     */
    public org.etsi.uri.x01903.v13.OCSPRefType[] getOCSPRefArray() {
        return getXmlObjectArray(OCSPREF$0, new org.etsi.uri.x01903.v13.OCSPRefType[0]);
    }
    
    /**
     * Gets ith "OCSPRef" element
     */
    public org.etsi.uri.x01903.v13.OCSPRefType getOCSPRefArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.etsi.uri.x01903.v13.OCSPRefType target = null;
            target = (org.etsi.uri.x01903.v13.OCSPRefType)get_store().find_element_user(OCSPREF$0, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "OCSPRef" element
     */
    public int sizeOfOCSPRefArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(OCSPREF$0);
        }
    }
    
    /**
     * Sets array of all "OCSPRef" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setOCSPRefArray(org.etsi.uri.x01903.v13.OCSPRefType[] ocspRefArray) {
        check_orphaned();
        arraySetterHelper(ocspRefArray, OCSPREF$0);
    }
    
    /**
     * Sets ith "OCSPRef" element
     */
    public void setOCSPRefArray(int i, org.etsi.uri.x01903.v13.OCSPRefType ocspRef) {
        generatedSetterHelperImpl(ocspRef, OCSPREF$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "OCSPRef" element
     */
    public org.etsi.uri.x01903.v13.OCSPRefType insertNewOCSPRef(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.etsi.uri.x01903.v13.OCSPRefType target = null;
            target = (org.etsi.uri.x01903.v13.OCSPRefType)get_store().insert_element_user(OCSPREF$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "OCSPRef" element
     */
    public org.etsi.uri.x01903.v13.OCSPRefType addNewOCSPRef() {
        synchronized (monitor())
        {
            check_orphaned();
            org.etsi.uri.x01903.v13.OCSPRefType target = null;
            target = (org.etsi.uri.x01903.v13.OCSPRefType)get_store().add_element_user(OCSPREF$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "OCSPRef" element
     */
    public void removeOCSPRef(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(OCSPREF$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy