Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * XML Type:  LocatedSpecimenType
  * Namespace: http://www.opengis.net/sampling/1.0
  * Java type: net.opengis.sampling.x10.LocatedSpecimenType
  *
  * Automatically generated - do not modify.
  */
 package net.opengis.sampling.x10.impl;
An XML LocatedSpecimenType(@http://www.opengis.net/sampling/1.0). This is a complex type.
    private static final long serialVersionUID = 1L;
    
    public LocatedSpecimenTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SAMPLINGLOCATION$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sampling/1.0""samplingLocation");
    
    
    
Gets the "samplingLocation" element
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.gml.GeometryPropertyType target = null;
            target = (net.opengis.gml.GeometryPropertyType)get_store().find_element_user(SAMPLINGLOCATION$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    
Sets the "samplingLocation" element
    public void setSamplingLocation(net.opengis.gml.GeometryPropertyType samplingLocation)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.gml.GeometryPropertyType target = null;
            target = (net.opengis.gml.GeometryPropertyType)get_store().find_element_user(SAMPLINGLOCATION$0, 0);
            if (target == null)
            {
                target = (net.opengis.gml.GeometryPropertyType)get_store().add_element_user(SAMPLINGLOCATION$0);
            }
            target.set(samplingLocation);
        }
    }
    
    
Appends and returns a new empty "samplingLocation" element
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.gml.GeometryPropertyType target = null;
            target = (net.opengis.gml.GeometryPropertyType)get_store().add_element_user(SAMPLINGLOCATION$0);
            return target;
        }
    }
New to GrepCode? Check out our FAQ X