Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * XML Type:  SamplingFeatureRelationType
   * Namespace: http://www.opengis.net/sampling/1.0
   * Java type: net.opengis.sampling.x10.SamplingFeatureRelationType
   *
   * Automatically generated - do not modify.
   */
  package net.opengis.sampling.x10.impl;
An XML SamplingFeatureRelationType(@http://www.opengis.net/sampling/1.0). This is a complex type.
 
 public class SamplingFeatureRelationTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sampling.x10.SamplingFeatureRelationType
 {
     private static final long serialVersionUID = 1L;
     
     public SamplingFeatureRelationTypeImpl(org.apache.xmlbeans.SchemaType sType)
     {
         super(sType);
     }
     
     private static final javax.xml.namespace.QName ROLE$0 = 
         new javax.xml.namespace.QName("http://www.opengis.net/sampling/1.0""role");
     private static final javax.xml.namespace.QName TARGET$2 = 
         new javax.xml.namespace.QName("http://www.opengis.net/sampling/1.0""target");
    
    
    
Gets the "role" element
 
     public net.opengis.gml.CodeType getRole()
     {
         synchronized (monitor())
         {
             check_orphaned();
             net.opengis.gml.CodeType target = null;
             target = (net.opengis.gml.CodeType)get_store().find_element_user(ROLE$0, 0);
             if (target == null)
             {
                 return null;
             }
             return target;
         }
     }
    
    
Sets the "role" element
 
     public void setRole(net.opengis.gml.CodeType role)
     {
         synchronized (monitor())
         {
             check_orphaned();
             net.opengis.gml.CodeType target = null;
             target = (net.opengis.gml.CodeType)get_store().find_element_user(ROLE$0, 0);
             if (target == null)
             {
                 target = (net.opengis.gml.CodeType)get_store().add_element_user(ROLE$0);
             }
             target.set(role);
         }
     }
    
    
Appends and returns a new empty "role" element
 
     public net.opengis.gml.CodeType addNewRole()
     {
         synchronized (monitor())
         {
             check_orphaned();
             net.opengis.gml.CodeType target = null;
             target = (net.opengis.gml.CodeType)get_store().add_element_user(ROLE$0);
             return target;
         }
     }
    
    
Gets the "target" element
 
     {
         synchronized (monitor())
         {
             check_orphaned();
             net.opengis.sampling.x10.SamplingFeaturePropertyType target = null;
             target = (net.opengis.sampling.x10.SamplingFeaturePropertyType)get_store().find_element_user(TARGET$2, 0);
             if (target == null)
             {
                 return null;
             }
             return target;
         }
     }
    
    
Sets the "target" element
 
    public void setTarget(net.opengis.sampling.x10.SamplingFeaturePropertyType targetValue)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sampling.x10.SamplingFeaturePropertyType target = null;
            target = (net.opengis.sampling.x10.SamplingFeaturePropertyType)get_store().find_element_user(TARGET$2, 0);
            if (target == null)
            {
                target = (net.opengis.sampling.x10.SamplingFeaturePropertyType)get_store().add_element_user(TARGET$2);
            }
            target.set(targetValue);
        }
    }
    
    
Appends and returns a new empty "target" element
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sampling.x10.SamplingFeaturePropertyType target = null;
            target = (net.opengis.sampling.x10.SamplingFeaturePropertyType)get_store().add_element_user(TARGET$2);
            return target;
        }
    }
New to GrepCode? Check out our FAQ X