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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy