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

org.etsi.uri.x01903.v13.impl.CertIDListTypeImpl Maven / Gradle / Ivy

/*
 * XML Type:  CertIDListType
 * Namespace: http://uri.etsi.org/01903/v1.3.2#
 * Java type: org.etsi.uri.x01903.v13.CertIDListType
 *
 * Automatically generated - do not modify.
 */
package org.etsi.uri.x01903.v13.impl;
/**
 * An XML CertIDListType(@http://uri.etsi.org/01903/v1.3.2#).
 *
 * This is a complex type.
 */
public class CertIDListTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.etsi.uri.x01903.v13.CertIDListType {
    private static final long serialVersionUID = 1L;
    
    public CertIDListTypeImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CERT$0 = 
        new javax.xml.namespace.QName("http://uri.etsi.org/01903/v1.3.2#", "Cert");
    
    
    /**
     * Gets a List of "Cert" elements
     */
    public java.util.List getCertList() {
        final class CertList extends java.util.AbstractList {
            @Override
            public org.etsi.uri.x01903.v13.CertIDType get(int i)
                { return CertIDListTypeImpl.this.getCertArray(i); }
            
            @Override
            public org.etsi.uri.x01903.v13.CertIDType set(int i, org.etsi.uri.x01903.v13.CertIDType o) {
                org.etsi.uri.x01903.v13.CertIDType old = CertIDListTypeImpl.this.getCertArray(i);
                CertIDListTypeImpl.this.setCertArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, org.etsi.uri.x01903.v13.CertIDType o)
                { CertIDListTypeImpl.this.insertNewCert(i).set(o); }
            
            @Override
            public org.etsi.uri.x01903.v13.CertIDType remove(int i) {
                org.etsi.uri.x01903.v13.CertIDType old = CertIDListTypeImpl.this.getCertArray(i);
                CertIDListTypeImpl.this.removeCert(i);
                return old;
            }
            
            @Override
            public int size()
                { return CertIDListTypeImpl.this.sizeOfCertArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new CertList();
        }
    }
    
    /**
     * Gets array of all "Cert" elements
     */
    public org.etsi.uri.x01903.v13.CertIDType[] getCertArray() {
        return getXmlObjectArray(CERT$0, new org.etsi.uri.x01903.v13.CertIDType[0]);
    }
    
    /**
     * Gets ith "Cert" element
     */
    public org.etsi.uri.x01903.v13.CertIDType getCertArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.etsi.uri.x01903.v13.CertIDType target = null;
            target = (org.etsi.uri.x01903.v13.CertIDType)get_store().find_element_user(CERT$0, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "Cert" element
     */
    public int sizeOfCertArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CERT$0);
        }
    }
    
    /**
     * Sets array of all "Cert" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setCertArray(org.etsi.uri.x01903.v13.CertIDType[] certArray) {
        check_orphaned();
        arraySetterHelper(certArray, CERT$0);
    }
    
    /**
     * Sets ith "Cert" element
     */
    public void setCertArray(int i, org.etsi.uri.x01903.v13.CertIDType cert) {
        generatedSetterHelperImpl(cert, CERT$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "Cert" element
     */
    public org.etsi.uri.x01903.v13.CertIDType insertNewCert(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.etsi.uri.x01903.v13.CertIDType target = null;
            target = (org.etsi.uri.x01903.v13.CertIDType)get_store().insert_element_user(CERT$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "Cert" element
     */
    public org.etsi.uri.x01903.v13.CertIDType addNewCert() {
        synchronized (monitor())
        {
            check_orphaned();
            org.etsi.uri.x01903.v13.CertIDType target = null;
            target = (org.etsi.uri.x01903.v13.CertIDType)get_store().add_element_user(CERT$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "Cert" element
     */
    public void removeCert(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CERT$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy