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 various supplied xsds for encryption and signing: http://msdn.microsoft.com/en-us/library/dd925810(v=office.12).aspx http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%201st%20edition%20Part%202%20(PDF).zip http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd http://uri.etsi.org/01903/v1.3.2/XAdES.xsd http://uri.etsi.org/01903/v1.4.1/XAdESv141.xsd http://dublincore.org/schemas/xmls/qdc/2003/04/02/dc.xsd http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcterms.xsd http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcmitype.xsd

The 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
{
    
    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
        {
            public org.etsi.uri.x01903.v13.EncapsulatedPKIDataType get(int i)
                { return CertificateValuesTypeImpl.this.getEncapsulatedX509CertificateArray(i); }
            
            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;
            }
            
            public void add(int i, org.etsi.uri.x01903.v13.EncapsulatedPKIDataType o)
                { CertificateValuesTypeImpl.this.insertNewEncapsulatedX509Certificate(i).set(o); }
            
            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;
            }
            
            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()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(ENCAPSULATEDX509CERTIFICATE$0, targetList);
            org.etsi.uri.x01903.v13.EncapsulatedPKIDataType[] result = new org.etsi.uri.x01903.v13.EncapsulatedPKIDataType[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * 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
     */
    public void setEncapsulatedX509CertificateArray(org.etsi.uri.x01903.v13.EncapsulatedPKIDataType[] encapsulatedX509CertificateArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(encapsulatedX509CertificateArray, ENCAPSULATEDX509CERTIFICATE$0);
        }
    }
    
    /**
     * Sets ith "EncapsulatedX509Certificate" element
     */
    public void setEncapsulatedX509CertificateArray(int i, org.etsi.uri.x01903.v13.EncapsulatedPKIDataType encapsulatedX509Certificate)
    {
        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();
            }
            target.set(encapsulatedX509Certificate);
        }
    }
    
    /**
     * 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
        {
            public org.etsi.uri.x01903.v13.AnyType get(int i)
                { return CertificateValuesTypeImpl.this.getOtherCertificateArray(i); }
            
            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;
            }
            
            public void add(int i, org.etsi.uri.x01903.v13.AnyType o)
                { CertificateValuesTypeImpl.this.insertNewOtherCertificate(i).set(o); }
            
            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;
            }
            
            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()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(OTHERCERTIFICATE$2, targetList);
            org.etsi.uri.x01903.v13.AnyType[] result = new org.etsi.uri.x01903.v13.AnyType[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * 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
     */
    public void setOtherCertificateArray(org.etsi.uri.x01903.v13.AnyType[] otherCertificateArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(otherCertificateArray, OTHERCERTIFICATE$2);
        }
    }
    
    /**
     * Sets ith "OtherCertificate" element
     */
    public void setOtherCertificateArray(int i, org.etsi.uri.x01903.v13.AnyType otherCertificate)
    {
        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();
            }
            target.set(otherCertificate);
        }
    }
    
    /**
     * 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