Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * An XML document type.
  * Localname: Specimen
  * Namespace: http://www.opengis.net/sampling/1.0
  * Java type: net.opengis.sampling.x10.SpecimenDocument
  *
  * Automatically generated - do not modify.
  */
 package net.opengis.sampling.x10.impl;
A document containing one Specimen(@http://www.opengis.net/sampling/1.0) element. This is a complex type.
    private static final long serialVersionUID = 1L;
    
    public SpecimenDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SPECIMEN$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sampling/1.0""Specimen");
    private static final org.apache.xmlbeans.QNameSet SPECIMEN$1 = org.apache.xmlbeans.QNameSet.forArray( new javax.xml.namespace.QName[] { 
        new javax.xml.namespace.QName("http://www.opengis.net/sampling/1.0""Specimen"),
        new javax.xml.namespace.QName("http://www.opengis.net/sampling/1.0""LocatedSpecimen"),
    });
    
    
    
Gets the "Specimen" element
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sampling.x10.SpecimenType target = null;
            target = (net.opengis.sampling.x10.SpecimenType)get_store().find_element_user(SPECIMEN$1, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    
Sets the "Specimen" element
    public void setSpecimen(net.opengis.sampling.x10.SpecimenType specimen)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sampling.x10.SpecimenType target = null;
            target = (net.opengis.sampling.x10.SpecimenType)get_store().find_element_user(SPECIMEN$1, 0);
            if (target == null)
            {
                target = (net.opengis.sampling.x10.SpecimenType)get_store().add_element_user(SPECIMEN$0);
            }
            target.set(specimen);
        }
    }
    
    
Appends and returns a new empty "Specimen" element
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sampling.x10.SpecimenType target = null;
            target = (net.opengis.sampling.x10.SpecimenType)get_store().add_element_user(SPECIMEN$0);
            return target;
        }
    }
New to GrepCode? Check out our FAQ X