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

org.example.wsHT.api.impl.XMLTAttachmentImpl Maven / Gradle / Ivy

The newest version!
/*
 * XML Type:  tAttachment
 * Namespace: http://www.example.org/WS-HT/api
 * Java type: org.example.wsHT.api.XMLTAttachment
 *
 * Automatically generated - do not modify.
 */
package org.example.wsHT.api.impl;
/**
 * An XML tAttachment(@http://www.example.org/WS-HT/api).
 *
 * This is a complex type.
 */
public class XMLTAttachmentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.example.wsHT.api.XMLTAttachment
{
    private static final long serialVersionUID = 1L;
    
    public XMLTAttachmentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ATTACHMENTINFO$0 = 
        new javax.xml.namespace.QName("http://www.example.org/WS-HT/api", "attachmentInfo");
    private static final javax.xml.namespace.QName VALUE$2 = 
        new javax.xml.namespace.QName("http://www.example.org/WS-HT/api", "value");
    
    
    /**
     * Gets the "attachmentInfo" element
     */
    public org.example.wsHT.api.XMLTAttachmentInfo getAttachmentInfo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.api.XMLTAttachmentInfo target = null;
            target = (org.example.wsHT.api.XMLTAttachmentInfo)get_store().find_element_user(ATTACHMENTINFO$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "attachmentInfo" element
     */
    public void setAttachmentInfo(org.example.wsHT.api.XMLTAttachmentInfo attachmentInfo)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.api.XMLTAttachmentInfo target = null;
            target = (org.example.wsHT.api.XMLTAttachmentInfo)get_store().find_element_user(ATTACHMENTINFO$0, 0);
            if (target == null)
            {
                target = (org.example.wsHT.api.XMLTAttachmentInfo)get_store().add_element_user(ATTACHMENTINFO$0);
            }
            target.set(attachmentInfo);
        }
    }
    
    /**
     * Appends and returns a new empty "attachmentInfo" element
     */
    public org.example.wsHT.api.XMLTAttachmentInfo addNewAttachmentInfo()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.example.wsHT.api.XMLTAttachmentInfo target = null;
            target = (org.example.wsHT.api.XMLTAttachmentInfo)get_store().add_element_user(ATTACHMENTINFO$0);
            return target;
        }
    }
    
    /**
     * Gets the "value" element
     */
    public org.apache.xmlbeans.XmlObject getValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlObject target = null;
            target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(VALUE$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "value" element
     */
    public void setValue(org.apache.xmlbeans.XmlObject value)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlObject target = null;
            target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(VALUE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(VALUE$2);
            }
            target.set(value);
        }
    }
    
    /**
     * Appends and returns a new empty "value" element
     */
    public org.apache.xmlbeans.XmlObject addNewValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlObject target = null;
            target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(VALUE$2);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy