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

org.example.wsHT.api.xsd.impl.XMLGetInputDocumentImpl Maven / Gradle / Ivy

The newest version!
/*
 * An XML document type.
 * Localname: getInput
 * Namespace: http://www.example.org/WS-HT/api/xsd
 * Java type: org.example.wsHT.api.xsd.XMLGetInputDocument
 *
 * Automatically generated - do not modify.
 */
package org.example.wsHT.api.xsd.impl;
/**
 * A document containing one getInput(@http://www.example.org/WS-HT/api/xsd) element.
 *
 * This is a complex type.
 */
public class XMLGetInputDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.example.wsHT.api.xsd.XMLGetInputDocument
{
    private static final long serialVersionUID = 1L;
    
    public XMLGetInputDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName GETINPUT$0 = 
        new javax.xml.namespace.QName("http://www.example.org/WS-HT/api/xsd", "getInput");
    
    
    /**
     * Gets the "getInput" element
     */
    public org.example.wsHT.api.xsd.XMLGetInputDocument.GetInput getGetInput()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.api.xsd.XMLGetInputDocument.GetInput target = null;
            target = (org.example.wsHT.api.xsd.XMLGetInputDocument.GetInput)get_store().find_element_user(GETINPUT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "getInput" element
     */
    public void setGetInput(org.example.wsHT.api.xsd.XMLGetInputDocument.GetInput getInput)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.api.xsd.XMLGetInputDocument.GetInput target = null;
            target = (org.example.wsHT.api.xsd.XMLGetInputDocument.GetInput)get_store().find_element_user(GETINPUT$0, 0);
            if (target == null)
            {
                target = (org.example.wsHT.api.xsd.XMLGetInputDocument.GetInput)get_store().add_element_user(GETINPUT$0);
            }
            target.set(getInput);
        }
    }
    
    /**
     * Appends and returns a new empty "getInput" element
     */
    public org.example.wsHT.api.xsd.XMLGetInputDocument.GetInput addNewGetInput()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.api.xsd.XMLGetInputDocument.GetInput target = null;
            target = (org.example.wsHT.api.xsd.XMLGetInputDocument.GetInput)get_store().add_element_user(GETINPUT$0);
            return target;
        }
    }
    /**
     * An XML getInput(@http://www.example.org/WS-HT/api/xsd).
     *
     * This is a complex type.
     */
    public static class GetInputImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.example.wsHT.api.xsd.XMLGetInputDocument.GetInput
    {
        private static final long serialVersionUID = 1L;
        
        public GetInputImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName IDENTIFIER$0 = 
            new javax.xml.namespace.QName("http://www.example.org/WS-HT/api/xsd", "identifier");
        private static final javax.xml.namespace.QName PART$2 = 
            new javax.xml.namespace.QName("http://www.example.org/WS-HT/api/xsd", "part");
        
        
        /**
         * Gets the "identifier" element
         */
        public java.lang.String getIdentifier()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "identifier" element
         */
        public org.apache.xmlbeans.XmlAnyURI xgetIdentifier()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlAnyURI target = null;
                target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(IDENTIFIER$0, 0);
                return target;
            }
        }
        
        /**
         * Sets the "identifier" element
         */
        public void setIdentifier(java.lang.String identifier)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(IDENTIFIER$0);
                }
                target.setStringValue(identifier);
            }
        }
        
        /**
         * Sets (as xml) the "identifier" element
         */
        public void xsetIdentifier(org.apache.xmlbeans.XmlAnyURI identifier)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlAnyURI target = null;
                target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_element_user(IDENTIFIER$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_element_user(IDENTIFIER$0);
                }
                target.set(identifier);
            }
        }
        
        /**
         * Gets the "part" element
         */
        public java.lang.String getPart()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PART$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "part" element
         */
        public org.apache.xmlbeans.XmlNCName xgetPart()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlNCName target = null;
                target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(PART$2, 0);
                return target;
            }
        }
        
        /**
         * True if has "part" element
         */
        public boolean isSetPart()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(PART$2) != 0;
            }
        }
        
        /**
         * Sets the "part" element
         */
        public void setPart(java.lang.String part)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PART$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PART$2);
                }
                target.setStringValue(part);
            }
        }
        
        /**
         * Sets (as xml) the "part" element
         */
        public void xsetPart(org.apache.xmlbeans.XmlNCName part)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlNCName target = null;
                target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(PART$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlNCName)get_store().add_element_user(PART$2);
                }
                target.set(part);
            }
        }
        
        /**
         * Unsets the "part" element
         */
        public void unsetPart()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(PART$2, 0);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy