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

net.opengis.samplingSpecimen.x20.impl.SFSpecimenDocumentImpl Maven / Gradle / Ivy

The newest version!
/*
 * An XML document type.
 * Localname: SF_Specimen
 * Namespace: http://www.opengis.net/samplingSpecimen/2.0
 * Java type: net.opengis.samplingSpecimen.x20.SFSpecimenDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.samplingSpecimen.x20.impl;
/**
 * A document containing one SF_Specimen(@http://www.opengis.net/samplingSpecimen/2.0) element.
 *
 * This is a complex type.
 */
public class SFSpecimenDocumentImpl extends net.opengis.sampling.x20.impl.SFSamplingFeatureDocumentImpl implements net.opengis.samplingSpecimen.x20.SFSpecimenDocument
{
    private static final long serialVersionUID = 1L;
    
    public SFSpecimenDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SFSPECIMEN$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/samplingSpecimen/2.0", "SF_Specimen");
    
    
    /**
     * Gets the "SF_Specimen" element
     */
    public net.opengis.samplingSpecimen.x20.SFSpecimenType getSFSpecimen()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.samplingSpecimen.x20.SFSpecimenType target = null;
            target = (net.opengis.samplingSpecimen.x20.SFSpecimenType)get_store().find_element_user(SFSPECIMEN$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "SF_Specimen" element
     */
    public void setSFSpecimen(net.opengis.samplingSpecimen.x20.SFSpecimenType sfSpecimen)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.samplingSpecimen.x20.SFSpecimenType target = null;
            target = (net.opengis.samplingSpecimen.x20.SFSpecimenType)get_store().find_element_user(SFSPECIMEN$0, 0);
            if (target == null)
            {
                target = (net.opengis.samplingSpecimen.x20.SFSpecimenType)get_store().add_element_user(SFSPECIMEN$0);
            }
            target.set(sfSpecimen);
        }
    }
    
    /**
     * Appends and returns a new empty "SF_Specimen" element
     */
    public net.opengis.samplingSpecimen.x20.SFSpecimenType addNewSFSpecimen()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.samplingSpecimen.x20.SFSpecimenType target = null;
            target = (net.opengis.samplingSpecimen.x20.SFSpecimenType)get_store().add_element_user(SFSPECIMEN$0);
            return target;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy