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

net.opengis.swe.x20.impl.TextDocumentImpl Maven / Gradle / Ivy

The newest version!
/*
 * An XML document type.
 * Localname: Text
 * Namespace: http://www.opengis.net/swe/2.0
 * Java type: net.opengis.swe.x20.TextDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.swe.x20.impl;
/**
 * A document containing one Text(@http://www.opengis.net/swe/2.0) element.
 *
 * This is a complex type.
 */
public class TextDocumentImpl extends net.opengis.swe.x20.impl.AbstractSimpleComponentDocumentImpl implements net.opengis.swe.x20.TextDocument
{
    private static final long serialVersionUID = 1L;
    
    public TextDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TEXT$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/swe/2.0", "Text");
    
    
    /**
     * Gets the "Text" element
     */
    public net.opengis.swe.x20.TextType getText()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x20.TextType target = null;
            target = (net.opengis.swe.x20.TextType)get_store().find_element_user(TEXT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "Text" element
     */
    public void setText(net.opengis.swe.x20.TextType text)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x20.TextType target = null;
            target = (net.opengis.swe.x20.TextType)get_store().find_element_user(TEXT$0, 0);
            if (target == null)
            {
                target = (net.opengis.swe.x20.TextType)get_store().add_element_user(TEXT$0);
            }
            target.set(text);
        }
    }
    
    /**
     * Appends and returns a new empty "Text" element
     */
    public net.opengis.swe.x20.TextType addNewText()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x20.TextType target = null;
            target = (net.opengis.swe.x20.TextType)get_store().add_element_user(TEXT$0);
            return target;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy