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

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

The newest version!
/*
 * XML Type:  tPresentationParameters
 * Namespace: http://www.example.org/WS-HT
 * Java type: org.example.wsHT.XMLTPresentationParameters
 *
 * Automatically generated - do not modify.
 */
package org.example.wsHT.impl;
/**
 * An XML tPresentationParameters(@http://www.example.org/WS-HT).
 *
 * This is a complex type.
 */
public class XMLTPresentationParametersImpl extends org.example.wsHT.impl.XMLTExtensibleElementsImpl implements org.example.wsHT.XMLTPresentationParameters
{
    private static final long serialVersionUID = 1L;
    
    public XMLTPresentationParametersImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PRESENTATIONPARAMETER$0 = 
        new javax.xml.namespace.QName("http://www.example.org/WS-HT", "presentationParameter");
    private static final javax.xml.namespace.QName EXPRESSIONLANGUAGE$2 = 
        new javax.xml.namespace.QName("", "expressionLanguage");
    
    
    /**
     * Gets a List of "presentationParameter" elements
     */
    public java.util.List getPresentationParameterList()
    {
        final class PresentationParameterList extends java.util.AbstractList
        {
            public org.example.wsHT.XMLTPresentationParameter get(int i)
                { return XMLTPresentationParametersImpl.this.getPresentationParameterArray(i); }
            
            public org.example.wsHT.XMLTPresentationParameter set(int i, org.example.wsHT.XMLTPresentationParameter o)
            {
                org.example.wsHT.XMLTPresentationParameter old = XMLTPresentationParametersImpl.this.getPresentationParameterArray(i);
                XMLTPresentationParametersImpl.this.setPresentationParameterArray(i, o);
                return old;
            }
            
            public void add(int i, org.example.wsHT.XMLTPresentationParameter o)
                { XMLTPresentationParametersImpl.this.insertNewPresentationParameter(i).set(o); }
            
            public org.example.wsHT.XMLTPresentationParameter remove(int i)
            {
                org.example.wsHT.XMLTPresentationParameter old = XMLTPresentationParametersImpl.this.getPresentationParameterArray(i);
                XMLTPresentationParametersImpl.this.removePresentationParameter(i);
                return old;
            }
            
            public int size()
                { return XMLTPresentationParametersImpl.this.sizeOfPresentationParameterArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new PresentationParameterList();
        }
    }
    
    /**
     * Gets array of all "presentationParameter" elements
     * @deprecated
     */
    public org.example.wsHT.XMLTPresentationParameter[] getPresentationParameterArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(PRESENTATIONPARAMETER$0, targetList);
            org.example.wsHT.XMLTPresentationParameter[] result = new org.example.wsHT.XMLTPresentationParameter[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "presentationParameter" element
     */
    public org.example.wsHT.XMLTPresentationParameter getPresentationParameterArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTPresentationParameter target = null;
            target = (org.example.wsHT.XMLTPresentationParameter)get_store().find_element_user(PRESENTATIONPARAMETER$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "presentationParameter" element
     */
    public int sizeOfPresentationParameterArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PRESENTATIONPARAMETER$0);
        }
    }
    
    /**
     * Sets array of all "presentationParameter" element
     */
    public void setPresentationParameterArray(org.example.wsHT.XMLTPresentationParameter[] presentationParameterArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(presentationParameterArray, PRESENTATIONPARAMETER$0);
        }
    }
    
    /**
     * Sets ith "presentationParameter" element
     */
    public void setPresentationParameterArray(int i, org.example.wsHT.XMLTPresentationParameter presentationParameter)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTPresentationParameter target = null;
            target = (org.example.wsHT.XMLTPresentationParameter)get_store().find_element_user(PRESENTATIONPARAMETER$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(presentationParameter);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "presentationParameter" element
     */
    public org.example.wsHT.XMLTPresentationParameter insertNewPresentationParameter(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTPresentationParameter target = null;
            target = (org.example.wsHT.XMLTPresentationParameter)get_store().insert_element_user(PRESENTATIONPARAMETER$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "presentationParameter" element
     */
    public org.example.wsHT.XMLTPresentationParameter addNewPresentationParameter()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTPresentationParameter target = null;
            target = (org.example.wsHT.XMLTPresentationParameter)get_store().add_element_user(PRESENTATIONPARAMETER$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "presentationParameter" element
     */
    public void removePresentationParameter(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PRESENTATIONPARAMETER$0, i);
        }
    }
    
    /**
     * Gets the "expressionLanguage" attribute
     */
    public java.lang.String getExpressionLanguage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EXPRESSIONLANGUAGE$2);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "expressionLanguage" attribute
     */
    public org.apache.xmlbeans.XmlAnyURI xgetExpressionLanguage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(EXPRESSIONLANGUAGE$2);
            return target;
        }
    }
    
    /**
     * True if has "expressionLanguage" attribute
     */
    public boolean isSetExpressionLanguage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(EXPRESSIONLANGUAGE$2) != null;
        }
    }
    
    /**
     * Sets the "expressionLanguage" attribute
     */
    public void setExpressionLanguage(java.lang.String expressionLanguage)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EXPRESSIONLANGUAGE$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(EXPRESSIONLANGUAGE$2);
            }
            target.setStringValue(expressionLanguage);
        }
    }
    
    /**
     * Sets (as xml) the "expressionLanguage" attribute
     */
    public void xsetExpressionLanguage(org.apache.xmlbeans.XmlAnyURI expressionLanguage)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(EXPRESSIONLANGUAGE$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_attribute_user(EXPRESSIONLANGUAGE$2);
            }
            target.set(expressionLanguage);
        }
    }
    
    /**
     * Unsets the "expressionLanguage" attribute
     */
    public void unsetExpressionLanguage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(EXPRESSIONLANGUAGE$2);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy