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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy