Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * XML Type:  SamplingSurfaceType
   * Namespace: http://www.opengis.net/sampling/1.0
   * Java type: net.opengis.sampling.x10.SamplingSurfaceType
   *
   * Automatically generated - do not modify.
   */
  package net.opengis.sampling.x10.impl;
An XML SamplingSurfaceType(@http://www.opengis.net/sampling/1.0). This is a complex type.
 
 {
     private static final long serialVersionUID = 1L;
     
     public SamplingSurfaceTypeImpl(org.apache.xmlbeans.SchemaType sType)
     {
         super(sType);
     }
     
     private static final javax.xml.namespace.QName SHAPE$0 = 
         new javax.xml.namespace.QName("http://www.opengis.net/sampling/1.0""shape");
     private static final javax.xml.namespace.QName AREA$2 = 
         new javax.xml.namespace.QName("http://www.opengis.net/sampling/1.0""area");
    
    
    
Gets the "shape" element
 
     {
         synchronized (monitor())
         {
             check_orphaned();
             net.opengis.gml.SurfacePropertyType target = null;
             target = (net.opengis.gml.SurfacePropertyType)get_store().find_element_user(SHAPE$0, 0);
             if (target == null)
             {
                 return null;
             }
             return target;
         }
     }
    
    
Sets the "shape" element
 
     public void setShape(net.opengis.gml.SurfacePropertyType shape)
     {
         synchronized (monitor())
         {
             check_orphaned();
             net.opengis.gml.SurfacePropertyType target = null;
             target = (net.opengis.gml.SurfacePropertyType)get_store().find_element_user(SHAPE$0, 0);
             if (target == null)
             {
                 target = (net.opengis.gml.SurfacePropertyType)get_store().add_element_user(SHAPE$0);
             }
             target.set(shape);
         }
     }
    
    
Appends and returns a new empty "shape" element
 
     {
         synchronized (monitor())
         {
             check_orphaned();
             net.opengis.gml.SurfacePropertyType target = null;
             target = (net.opengis.gml.SurfacePropertyType)get_store().add_element_user(SHAPE$0);
             return target;
         }
     }
    
    
Gets the "area" element
 
     public net.opengis.gml.MeasureType getArea()
     {
         synchronized (monitor())
         {
             check_orphaned();
             net.opengis.gml.MeasureType target = null;
             target = (net.opengis.gml.MeasureType)get_store().find_element_user(AREA$2, 0);
             if (target == null)
             {
                 return null;
             }
             return target;
         }
     }
    
    
True if has "area" element
 
    public boolean isSetArea()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(AREA$2) != 0;
        }
    }
    
    
Sets the "area" element
    public void setArea(net.opengis.gml.MeasureType area)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.gml.MeasureType target = null;
            target = (net.opengis.gml.MeasureType)get_store().find_element_user(AREA$2, 0);
            if (target == null)
            {
                target = (net.opengis.gml.MeasureType)get_store().add_element_user(AREA$2);
            }
            target.set(area);
        }
    }
    
    
Appends and returns a new empty "area" element
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.gml.MeasureType target = null;
            target = (net.opengis.gml.MeasureType)get_store().add_element_user(AREA$2);
            return target;
        }
    }
    
    
Unsets the "area" element
    public void unsetArea()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(AREA$2, 0);
        }
    }
New to GrepCode? Check out our FAQ X