Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * XML Type:  SamplingSolidType
   * Namespace: http://www.opengis.net/sampling/1.0
   * Java type: net.opengis.sampling.x10.SamplingSolidType
   *
   * Automatically generated - do not modify.
   */
  package net.opengis.sampling.x10.impl;
An XML SamplingSolidType(@http://www.opengis.net/sampling/1.0). This is a complex type.
 
 {
     private static final long serialVersionUID = 1L;
     
     public SamplingSolidTypeImpl(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 VOLUME$2 = 
         new javax.xml.namespace.QName("http://www.opengis.net/sampling/1.0""volume");
    
    
    
Gets the "shape" element
 
     {
         synchronized (monitor())
         {
             check_orphaned();
             net.opengis.gml.SolidPropertyType target = null;
             target = (net.opengis.gml.SolidPropertyType)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.SolidPropertyType shape)
     {
         synchronized (monitor())
         {
             check_orphaned();
             net.opengis.gml.SolidPropertyType target = null;
             target = (net.opengis.gml.SolidPropertyType)get_store().find_element_user(SHAPE$0, 0);
             if (target == null)
             {
                 target = (net.opengis.gml.SolidPropertyType)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.SolidPropertyType target = null;
             target = (net.opengis.gml.SolidPropertyType)get_store().add_element_user(SHAPE$0);
             return target;
         }
     }
    
    
Gets the "volume" element
 
     public net.opengis.gml.MeasureType getVolume()
     {
         synchronized (monitor())
         {
             check_orphaned();
             net.opengis.gml.MeasureType target = null;
             target = (net.opengis.gml.MeasureType)get_store().find_element_user(VOLUME$2, 0);
             if (target == null)
             {
                 return null;
             }
             return target;
         }
     }
    
    
True if has "volume" element
 
    public boolean isSetVolume()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(VOLUME$2) != 0;
        }
    }
    
    
Sets the "volume" element
    public void setVolume(net.opengis.gml.MeasureType volume)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.gml.MeasureType target = null;
            target = (net.opengis.gml.MeasureType)get_store().find_element_user(VOLUME$2, 0);
            if (target == null)
            {
                target = (net.opengis.gml.MeasureType)get_store().add_element_user(VOLUME$2);
            }
            target.set(volume);
        }
    }
    
    
Appends and returns a new empty "volume" element
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.gml.MeasureType target = null;
            target = (net.opengis.gml.MeasureType)get_store().add_element_user(VOLUME$2);
            return target;
        }
    }
    
    
Unsets the "volume" element
    public void unsetVolume()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(VOLUME$2, 0);
        }
    }
New to GrepCode? Check out our FAQ X