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

org.w3.x2000.x09.xmldsig.impl.TransformsTypeImpl 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:  TransformsType
 * Namespace: http://www.w3.org/2000/09/xmldsig#
 * Java type: org.w3.x2000.x09.xmldsig.TransformsType
 *
 * Automatically generated - do not modify.
 */
package org.w3.x2000.x09.xmldsig.impl;
/**
 * An XML TransformsType(@http://www.w3.org/2000/09/xmldsig#).
 *
 * This is a complex type.
 */
public class TransformsTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.w3.x2000.x09.xmldsig.TransformsType
{
    
    public TransformsTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TRANSFORM$0 = 
        new javax.xml.namespace.QName("http://www.w3.org/2000/09/xmldsig#", "Transform");
    
    
    /**
     * Gets a List of "Transform" elements
     */
    public java.util.List getTransformList()
    {
        final class TransformList extends java.util.AbstractList
        {
            public org.w3.x2000.x09.xmldsig.TransformType get(int i)
                { return TransformsTypeImpl.this.getTransformArray(i); }
            
            public org.w3.x2000.x09.xmldsig.TransformType set(int i, org.w3.x2000.x09.xmldsig.TransformType o)
            {
                org.w3.x2000.x09.xmldsig.TransformType old = TransformsTypeImpl.this.getTransformArray(i);
                TransformsTypeImpl.this.setTransformArray(i, o);
                return old;
            }
            
            public void add(int i, org.w3.x2000.x09.xmldsig.TransformType o)
                { TransformsTypeImpl.this.insertNewTransform(i).set(o); }
            
            public org.w3.x2000.x09.xmldsig.TransformType remove(int i)
            {
                org.w3.x2000.x09.xmldsig.TransformType old = TransformsTypeImpl.this.getTransformArray(i);
                TransformsTypeImpl.this.removeTransform(i);
                return old;
            }
            
            public int size()
                { return TransformsTypeImpl.this.sizeOfTransformArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new TransformList();
        }
    }
    
    /**
     * Gets array of all "Transform" elements
     */
    public org.w3.x2000.x09.xmldsig.TransformType[] getTransformArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(TRANSFORM$0, targetList);
            org.w3.x2000.x09.xmldsig.TransformType[] result = new org.w3.x2000.x09.xmldsig.TransformType[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "Transform" element
     */
    public org.w3.x2000.x09.xmldsig.TransformType getTransformArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.w3.x2000.x09.xmldsig.TransformType target = null;
            target = (org.w3.x2000.x09.xmldsig.TransformType)get_store().find_element_user(TRANSFORM$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "Transform" element
     */
    public int sizeOfTransformArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TRANSFORM$0);
        }
    }
    
    /**
     * Sets array of all "Transform" element
     */
    public void setTransformArray(org.w3.x2000.x09.xmldsig.TransformType[] transformArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(transformArray, TRANSFORM$0);
        }
    }
    
    /**
     * Sets ith "Transform" element
     */
    public void setTransformArray(int i, org.w3.x2000.x09.xmldsig.TransformType transform)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.w3.x2000.x09.xmldsig.TransformType target = null;
            target = (org.w3.x2000.x09.xmldsig.TransformType)get_store().find_element_user(TRANSFORM$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(transform);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "Transform" element
     */
    public org.w3.x2000.x09.xmldsig.TransformType insertNewTransform(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.w3.x2000.x09.xmldsig.TransformType target = null;
            target = (org.w3.x2000.x09.xmldsig.TransformType)get_store().insert_element_user(TRANSFORM$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "Transform" element
     */
    public org.w3.x2000.x09.xmldsig.TransformType addNewTransform()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.w3.x2000.x09.xmldsig.TransformType target = null;
            target = (org.w3.x2000.x09.xmldsig.TransformType)get_store().add_element_user(TRANSFORM$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "Transform" element
     */
    public void removeTransform(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TRANSFORM$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy