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

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

The newest version!
/*
 * An XML document type.
 * Localname: task
 * Namespace: http://www.example.org/WS-HT
 * Java type: org.example.wsHT.XMLTaskDocument
 *
 * Automatically generated - do not modify.
 */
package org.example.wsHT.impl;
/**
 * A document containing one task(@http://www.example.org/WS-HT) element.
 *
 * This is a complex type.
 */
public class XMLTaskDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.example.wsHT.XMLTaskDocument
{
    private static final long serialVersionUID = 1L;
    
    public XMLTaskDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TASK$0 = 
        new javax.xml.namespace.QName("http://www.example.org/WS-HT", "task");
    
    
    /**
     * Gets the "task" element
     */
    public org.example.wsHT.XMLTTask getTask()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTTask target = null;
            target = (org.example.wsHT.XMLTTask)get_store().find_element_user(TASK$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "task" element
     */
    public void setTask(org.example.wsHT.XMLTTask task)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTTask target = null;
            target = (org.example.wsHT.XMLTTask)get_store().find_element_user(TASK$0, 0);
            if (target == null)
            {
                target = (org.example.wsHT.XMLTTask)get_store().add_element_user(TASK$0);
            }
            target.set(task);
        }
    }
    
    /**
     * Appends and returns a new empty "task" element
     */
    public org.example.wsHT.XMLTTask addNewTask()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.XMLTTask target = null;
            target = (org.example.wsHT.XMLTTask)get_store().add_element_user(TASK$0);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy