Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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