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

org.example.wsHT.impl.XMLTExtensibleMixedContentElementsImpl Maven / Gradle / Ivy

The newest version!
/*
 * XML Type:  tExtensibleMixedContentElements
 * Namespace: http://www.example.org/WS-HT
 * Java type: org.example.wsHT.XMLTExtensibleMixedContentElements
 *
 * Automatically generated - do not modify.
 */
package org.example.wsHT.impl;
/**
 * An XML tExtensibleMixedContentElements(@http://www.example.org/WS-HT).
 *
 * This is a complex type.
 */
public class XMLTExtensibleMixedContentElementsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.example.wsHT.XMLTExtensibleMixedContentElements
{
    private static final long serialVersionUID = 1L;
    
    public XMLTExtensibleMixedContentElementsImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName DOCUMENTATION$0 = 
        new javax.xml.namespace.QName("http://www.example.org/WS-HT", "documentation");
    
    
    /**
     * Gets a List of "documentation" elements
     */
    public java.util.List getDocumentationList()
    {
        final class DocumentationList extends java.util.AbstractList
        {
            public org.example.wsHT.XMLTDocumentation get(int i)
                { return XMLTExtensibleMixedContentElementsImpl.this.getDocumentationArray(i); }
            
            public org.example.wsHT.XMLTDocumentation set(int i, org.example.wsHT.XMLTDocumentation o)
            {
                org.example.wsHT.XMLTDocumentation old = XMLTExtensibleMixedContentElementsImpl.this.getDocumentationArray(i);
                XMLTExtensibleMixedContentElementsImpl.this.setDocumentationArray(i, o);
                return old;
            }
            
            public void add(int i, org.example.wsHT.XMLTDocumentation o)
                { XMLTExtensibleMixedContentElementsImpl.this.insertNewDocumentation(i).set(o); }
            
            public org.example.wsHT.XMLTDocumentation remove(int i)
            {
                org.example.wsHT.XMLTDocumentation old = XMLTExtensibleMixedContentElementsImpl.this.getDocumentationArray(i);
                XMLTExtensibleMixedContentElementsImpl.this.removeDocumentation(i);
                return old;
            }
            
            public int size()
                { return XMLTExtensibleMixedContentElementsImpl.this.sizeOfDocumentationArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new DocumentationList();
        }
    }
    
    /**
     * Gets array of all "documentation" elements
     * @deprecated
     */
    public org.example.wsHT.XMLTDocumentation[] getDocumentationArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(DOCUMENTATION$0, targetList);
            org.example.wsHT.XMLTDocumentation[] result = new org.example.wsHT.XMLTDocumentation[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "documentation" element
     */
    public org.example.wsHT.XMLTDocumentation getDocumentationArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTDocumentation target = null;
            target = (org.example.wsHT.XMLTDocumentation)get_store().find_element_user(DOCUMENTATION$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "documentation" element
     */
    public int sizeOfDocumentationArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DOCUMENTATION$0);
        }
    }
    
    /**
     * Sets array of all "documentation" element
     */
    public void setDocumentationArray(org.example.wsHT.XMLTDocumentation[] documentationArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(documentationArray, DOCUMENTATION$0);
        }
    }
    
    /**
     * Sets ith "documentation" element
     */
    public void setDocumentationArray(int i, org.example.wsHT.XMLTDocumentation documentation)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTDocumentation target = null;
            target = (org.example.wsHT.XMLTDocumentation)get_store().find_element_user(DOCUMENTATION$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(documentation);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "documentation" element
     */
    public org.example.wsHT.XMLTDocumentation insertNewDocumentation(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTDocumentation target = null;
            target = (org.example.wsHT.XMLTDocumentation)get_store().insert_element_user(DOCUMENTATION$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "documentation" element
     */
    public org.example.wsHT.XMLTDocumentation addNewDocumentation()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTDocumentation target = null;
            target = (org.example.wsHT.XMLTDocumentation)get_store().add_element_user(DOCUMENTATION$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "documentation" element
     */
    public void removeDocumentation(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DOCUMENTATION$0, i);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy