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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy