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

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

The newest version!
/*
 * XML Type:  tFrom
 * Namespace: http://www.example.org/WS-HT
 * Java type: org.example.wsHT.XMLTFrom
 *
 * Automatically generated - do not modify.
 */
package org.example.wsHT.impl;
/**
 * An XML tFrom(@http://www.example.org/WS-HT).
 *
 * This is a complex type.
 */
public class XMLTFromImpl extends org.example.wsHT.impl.XMLTExtensibleMixedContentElementsImpl implements org.example.wsHT.XMLTFrom
{
    private static final long serialVersionUID = 1L;
    
    public XMLTFromImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ARGUMENT$0 = 
        new javax.xml.namespace.QName("http://www.example.org/WS-HT", "argument");
    private static final javax.xml.namespace.QName LITERAL$2 = 
        new javax.xml.namespace.QName("http://www.example.org/WS-HT", "literal");
    private static final javax.xml.namespace.QName EXPRESSIONLANGUAGE$4 = 
        new javax.xml.namespace.QName("", "expressionLanguage");
    private static final javax.xml.namespace.QName LOGICALPEOPLEGROUP$6 = 
        new javax.xml.namespace.QName("", "logicalPeopleGroup");
    
    
    /**
     * Gets a List of "argument" elements
     */
    public java.util.List getArgumentList()
    {
        final class ArgumentList extends java.util.AbstractList
        {
            public org.example.wsHT.XMLTArgument get(int i)
                { return XMLTFromImpl.this.getArgumentArray(i); }
            
            public org.example.wsHT.XMLTArgument set(int i, org.example.wsHT.XMLTArgument o)
            {
                org.example.wsHT.XMLTArgument old = XMLTFromImpl.this.getArgumentArray(i);
                XMLTFromImpl.this.setArgumentArray(i, o);
                return old;
            }
            
            public void add(int i, org.example.wsHT.XMLTArgument o)
                { XMLTFromImpl.this.insertNewArgument(i).set(o); }
            
            public org.example.wsHT.XMLTArgument remove(int i)
            {
                org.example.wsHT.XMLTArgument old = XMLTFromImpl.this.getArgumentArray(i);
                XMLTFromImpl.this.removeArgument(i);
                return old;
            }
            
            public int size()
                { return XMLTFromImpl.this.sizeOfArgumentArray(); }
            
        }
        
        synchronized (monitor())
        {
            check_orphaned();
            return new ArgumentList();
        }
    }
    
    /**
     * Gets array of all "argument" elements
     * @deprecated
     */
    public org.example.wsHT.XMLTArgument[] getArgumentArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(ARGUMENT$0, targetList);
            org.example.wsHT.XMLTArgument[] result = new org.example.wsHT.XMLTArgument[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "argument" element
     */
    public org.example.wsHT.XMLTArgument getArgumentArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTArgument target = null;
            target = (org.example.wsHT.XMLTArgument)get_store().find_element_user(ARGUMENT$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "argument" element
     */
    public int sizeOfArgumentArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ARGUMENT$0);
        }
    }
    
    /**
     * Sets array of all "argument" element
     */
    public void setArgumentArray(org.example.wsHT.XMLTArgument[] argumentArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(argumentArray, ARGUMENT$0);
        }
    }
    
    /**
     * Sets ith "argument" element
     */
    public void setArgumentArray(int i, org.example.wsHT.XMLTArgument argument)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTArgument target = null;
            target = (org.example.wsHT.XMLTArgument)get_store().find_element_user(ARGUMENT$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(argument);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "argument" element
     */
    public org.example.wsHT.XMLTArgument insertNewArgument(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTArgument target = null;
            target = (org.example.wsHT.XMLTArgument)get_store().insert_element_user(ARGUMENT$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "argument" element
     */
    public org.example.wsHT.XMLTArgument addNewArgument()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTArgument target = null;
            target = (org.example.wsHT.XMLTArgument)get_store().add_element_user(ARGUMENT$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "argument" element
     */
    public void removeArgument(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ARGUMENT$0, i);
        }
    }
    
    /**
     * Gets the "literal" element
     */
    public org.example.wsHT.XMLTLiteral getLiteral()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTLiteral target = null;
            target = (org.example.wsHT.XMLTLiteral)get_store().find_element_user(LITERAL$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "literal" element
     */
    public boolean isSetLiteral()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LITERAL$2) != 0;
        }
    }
    
    /**
     * Sets the "literal" element
     */
    public void setLiteral(org.example.wsHT.XMLTLiteral literal)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTLiteral target = null;
            target = (org.example.wsHT.XMLTLiteral)get_store().find_element_user(LITERAL$2, 0);
            if (target == null)
            {
                target = (org.example.wsHT.XMLTLiteral)get_store().add_element_user(LITERAL$2);
            }
            target.set(literal);
        }
    }
    
    /**
     * Appends and returns a new empty "literal" element
     */
    public org.example.wsHT.XMLTLiteral addNewLiteral()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTLiteral target = null;
            target = (org.example.wsHT.XMLTLiteral)get_store().add_element_user(LITERAL$2);
            return target;
        }
    }
    
    /**
     * Unsets the "literal" element
     */
    public void unsetLiteral()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LITERAL$2, 0);
        }
    }
    
    /**
     * 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$4);
            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$4);
            return target;
        }
    }
    
    /**
     * True if has "expressionLanguage" attribute
     */
    public boolean isSetExpressionLanguage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(EXPRESSIONLANGUAGE$4) != 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$4);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(EXPRESSIONLANGUAGE$4);
            }
            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$4);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_attribute_user(EXPRESSIONLANGUAGE$4);
            }
            target.set(expressionLanguage);
        }
    }
    
    /**
     * Unsets the "expressionLanguage" attribute
     */
    public void unsetExpressionLanguage()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(EXPRESSIONLANGUAGE$4);
        }
    }
    
    /**
     * Gets the "logicalPeopleGroup" attribute
     */
    public javax.xml.namespace.QName getLogicalPeopleGroup()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOGICALPEOPLEGROUP$6);
            if (target == null)
            {
                return null;
            }
            return target.getQNameValue();
        }
    }
    
    /**
     * Gets (as xml) the "logicalPeopleGroup" attribute
     */
    public org.apache.xmlbeans.XmlQName xgetLogicalPeopleGroup()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlQName target = null;
            target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(LOGICALPEOPLEGROUP$6);
            return target;
        }
    }
    
    /**
     * True if has "logicalPeopleGroup" attribute
     */
    public boolean isSetLogicalPeopleGroup()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(LOGICALPEOPLEGROUP$6) != null;
        }
    }
    
    /**
     * Sets the "logicalPeopleGroup" attribute
     */
    public void setLogicalPeopleGroup(javax.xml.namespace.QName logicalPeopleGroup)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOGICALPEOPLEGROUP$6);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LOGICALPEOPLEGROUP$6);
            }
            target.setQNameValue(logicalPeopleGroup);
        }
    }
    
    /**
     * Sets (as xml) the "logicalPeopleGroup" attribute
     */
    public void xsetLogicalPeopleGroup(org.apache.xmlbeans.XmlQName logicalPeopleGroup)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlQName target = null;
            target = (org.apache.xmlbeans.XmlQName)get_store().find_attribute_user(LOGICALPEOPLEGROUP$6);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlQName)get_store().add_attribute_user(LOGICALPEOPLEGROUP$6);
            }
            target.set(logicalPeopleGroup);
        }
    }
    
    /**
     * Unsets the "logicalPeopleGroup" attribute
     */
    public void unsetLogicalPeopleGroup()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(LOGICALPEOPLEGROUP$6);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy