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

org.etsi.uri.x01903.v13.impl.CertificateValuesTypeImpl 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:  CertificateValuesType
 * Namespace: http://uri.etsi.org/01903/v1.3.2#
 * Java type: org.etsi.uri.x01903.v13.CertificateValuesType
 *
 * Automatically generated - do not modify.
 */
package org.etsi.uri.x01903.v13.impl;
/**
 * An XML CertificateValuesType(@http://uri.etsi.org/01903/v1.3.2#).
 *
 * This is a complex type.
 */
public class CertificateValuesTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.etsi.uri.x01903.v13.CertificateValuesType {
    private static final long serialVersionUID = 1L;
    
    public CertificateValuesTypeImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ENCAPSULATEDX509CERTIFICATE$0 = 
        new javax.xml.namespace.QName("http://uri.etsi.org/01903/v1.3.2#", "EncapsulatedX509Certificate");
    private static final javax.xml.namespace.QName OTHERCERTIFICATE$2 = 
        new javax.xml.namespace.QName("http://uri.etsi.org/01903/v1.3.2#", "OtherCertificate");
    private static final javax.xml.namespace.QName ID$4 = 
        new javax.xml.namespace.QName("", "Id");
    
    
    /**
     * Gets a List of "EncapsulatedX509Certificate" elements
     */
    public java.util.List getEncapsulatedX509CertificateList() {
        final class EncapsulatedX509CertificateList extends java.util.AbstractList {
            @Override
            public org.etsi.uri.x01903.v13.EncapsulatedPKIDataType get(int i)
                { return CertificateValuesTypeImpl.this.getEncapsulatedX509CertificateArray(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 = CertificateValuesTypeImpl.this.getEncapsulatedX509CertificateArray(i);
                CertificateValuesTypeImpl.this.setEncapsulatedX509CertificateArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, org.etsi.uri.x01903.v13.EncapsulatedPKIDataType o)
                { CertificateValuesTypeImpl.this.insertNewEncapsulatedX509Certificate(i).set(o); }
            
            @Override
            public org.etsi.uri.x01903.v13.EncapsulatedPKIDataType remove(int i) {
                org.etsi.uri.x01903.v13.EncapsulatedPKIDataType old = CertificateValuesTypeImpl.this.getEncapsulatedX509CertificateArray(i);
                CertificateValuesTypeImpl.this.removeEncapsulatedX509Certificate(i);
                return old;
            }
            
            @Override
            public int size()
                { return CertificateValuesTypeImpl.this.sizeOfEncapsulatedX509CertificateArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new EncapsulatedX509CertificateList();
        }
    }
    
    /**
     * Gets array of all "EncapsulatedX509Certificate" elements
     */
    public org.etsi.uri.x01903.v13.EncapsulatedPKIDataType[] getEncapsulatedX509CertificateArray() {
        return getXmlObjectArray(ENCAPSULATEDX509CERTIFICATE$0, new org.etsi.uri.x01903.v13.EncapsulatedPKIDataType[0]);
    }
    
    /**
     * Gets ith "EncapsulatedX509Certificate" element
     */
    public org.etsi.uri.x01903.v13.EncapsulatedPKIDataType getEncapsulatedX509CertificateArray(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(ENCAPSULATEDX509CERTIFICATE$0, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "EncapsulatedX509Certificate" element
     */
    public int sizeOfEncapsulatedX509CertificateArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ENCAPSULATEDX509CERTIFICATE$0);
        }
    }
    
    /**
     * Sets array of all "EncapsulatedX509Certificate" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setEncapsulatedX509CertificateArray(org.etsi.uri.x01903.v13.EncapsulatedPKIDataType[] encapsulatedX509CertificateArray) {
        check_orphaned();
        arraySetterHelper(encapsulatedX509CertificateArray, ENCAPSULATEDX509CERTIFICATE$0);
    }
    
    /**
     * Sets ith "EncapsulatedX509Certificate" element
     */
    public void setEncapsulatedX509CertificateArray(int i, org.etsi.uri.x01903.v13.EncapsulatedPKIDataType encapsulatedX509Certificate) {
        generatedSetterHelperImpl(encapsulatedX509Certificate, ENCAPSULATEDX509CERTIFICATE$0, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "EncapsulatedX509Certificate" element
     */
    public org.etsi.uri.x01903.v13.EncapsulatedPKIDataType insertNewEncapsulatedX509Certificate(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(ENCAPSULATEDX509CERTIFICATE$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "EncapsulatedX509Certificate" element
     */
    public org.etsi.uri.x01903.v13.EncapsulatedPKIDataType addNewEncapsulatedX509Certificate() {
        synchronized (monitor())
        {
            check_orphaned();
            org.etsi.uri.x01903.v13.EncapsulatedPKIDataType target = null;
            target = (org.etsi.uri.x01903.v13.EncapsulatedPKIDataType)get_store().add_element_user(ENCAPSULATEDX509CERTIFICATE$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "EncapsulatedX509Certificate" element
     */
    public void removeEncapsulatedX509Certificate(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ENCAPSULATEDX509CERTIFICATE$0, i);
        }
    }
    
    /**
     * Gets a List of "OtherCertificate" elements
     */
    public java.util.List getOtherCertificateList() {
        final class OtherCertificateList extends java.util.AbstractList {
            @Override
            public org.etsi.uri.x01903.v13.AnyType get(int i)
                { return CertificateValuesTypeImpl.this.getOtherCertificateArray(i); }
            
            @Override
            public org.etsi.uri.x01903.v13.AnyType set(int i, org.etsi.uri.x01903.v13.AnyType o) {
                org.etsi.uri.x01903.v13.AnyType old = CertificateValuesTypeImpl.this.getOtherCertificateArray(i);
                CertificateValuesTypeImpl.this.setOtherCertificateArray(i, o);
                return old;
            }
            
            @Override
            public void add(int i, org.etsi.uri.x01903.v13.AnyType o)
                { CertificateValuesTypeImpl.this.insertNewOtherCertificate(i).set(o); }
            
            @Override
            public org.etsi.uri.x01903.v13.AnyType remove(int i) {
                org.etsi.uri.x01903.v13.AnyType old = CertificateValuesTypeImpl.this.getOtherCertificateArray(i);
                CertificateValuesTypeImpl.this.removeOtherCertificate(i);
                return old;
            }
            
            @Override
            public int size()
                { return CertificateValuesTypeImpl.this.sizeOfOtherCertificateArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new OtherCertificateList();
        }
    }
    
    /**
     * Gets array of all "OtherCertificate" elements
     */
    public org.etsi.uri.x01903.v13.AnyType[] getOtherCertificateArray() {
        return getXmlObjectArray(OTHERCERTIFICATE$2, new org.etsi.uri.x01903.v13.AnyType[0]);
    }
    
    /**
     * Gets ith "OtherCertificate" element
     */
    public org.etsi.uri.x01903.v13.AnyType getOtherCertificateArray(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.etsi.uri.x01903.v13.AnyType target = null;
            target = (org.etsi.uri.x01903.v13.AnyType)get_store().find_element_user(OTHERCERTIFICATE$2, i);
            if (target == null) {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "OtherCertificate" element
     */
    public int sizeOfOtherCertificateArray() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(OTHERCERTIFICATE$2);
        }
    }
    
    /**
     * Sets array of all "OtherCertificate" element  WARNING: This method is not atomicaly synchronized.
     */
    public void setOtherCertificateArray(org.etsi.uri.x01903.v13.AnyType[] otherCertificateArray) {
        check_orphaned();
        arraySetterHelper(otherCertificateArray, OTHERCERTIFICATE$2);
    }
    
    /**
     * Sets ith "OtherCertificate" element
     */
    public void setOtherCertificateArray(int i, org.etsi.uri.x01903.v13.AnyType otherCertificate) {
        generatedSetterHelperImpl(otherCertificate, OTHERCERTIFICATE$2, i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "OtherCertificate" element
     */
    public org.etsi.uri.x01903.v13.AnyType insertNewOtherCertificate(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            org.etsi.uri.x01903.v13.AnyType target = null;
            target = (org.etsi.uri.x01903.v13.AnyType)get_store().insert_element_user(OTHERCERTIFICATE$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "OtherCertificate" element
     */
    public org.etsi.uri.x01903.v13.AnyType addNewOtherCertificate() {
        synchronized (monitor())
        {
            check_orphaned();
            org.etsi.uri.x01903.v13.AnyType target = null;
            target = (org.etsi.uri.x01903.v13.AnyType)get_store().add_element_user(OTHERCERTIFICATE$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "OtherCertificate" element
     */
    public void removeOtherCertificate(int i) {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(OTHERCERTIFICATE$2, i);
        }
    }
    
    /**
     * Gets the "Id" attribute
     */
    public java.lang.String getId() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$4);
            if (target == null) {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "Id" attribute
     */
    public org.apache.xmlbeans.XmlID xgetId() {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlID target = null;
            target = (org.apache.xmlbeans.XmlID)get_store().find_attribute_user(ID$4);
            return target;
        }
    }
    
    /**
     * True if has "Id" attribute
     */
    public boolean isSetId() {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(ID$4) != null;
        }
    }
    
    /**
     * Sets the "Id" attribute
     */
    public void setId(java.lang.String id) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$4);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ID$4);
            }
            target.setStringValue(id);
        }
    }
    
    /**
     * Sets (as xml) the "Id" attribute
     */
    public void xsetId(org.apache.xmlbeans.XmlID id) {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlID target = null;
            target = (org.apache.xmlbeans.XmlID)get_store().find_attribute_user(ID$4);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlID)get_store().add_attribute_user(ID$4);
            }
            target.set(id);
        }
    }
    
    /**
     * Unsets the "Id" attribute
     */
    public void unsetId() {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(ID$4);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy