All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.opengis.swe.x10.impl.QuantityDocumentImpl Maven / Gradle / Ivy

/*
 * An XML document type.
 * Localname: Quantity
 * Namespace: http://www.opengis.net/swe/1.0
 * Java type: net.opengis.swe.x10.QuantityDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.swe.x10.impl;
/**
 * A document containing one Quantity(@http://www.opengis.net/swe/1.0) element.
 *
 * This is a complex type.
 */
public class QuantityDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.swe.x10.QuantityDocument
{
    private static final long serialVersionUID = 1L;
    
    public QuantityDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName QUANTITY$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0", "Quantity");
    
    
    /**
     * Gets the "Quantity" element
     */
    public net.opengis.swe.x10.QuantityDocument.Quantity getQuantity()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x10.QuantityDocument.Quantity target = null;
            target = (net.opengis.swe.x10.QuantityDocument.Quantity)get_store().find_element_user(QUANTITY$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "Quantity" element
     */
    public void setQuantity(net.opengis.swe.x10.QuantityDocument.Quantity quantity)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x10.QuantityDocument.Quantity target = null;
            target = (net.opengis.swe.x10.QuantityDocument.Quantity)get_store().find_element_user(QUANTITY$0, 0);
            if (target == null)
            {
                target = (net.opengis.swe.x10.QuantityDocument.Quantity)get_store().add_element_user(QUANTITY$0);
            }
            target.set(quantity);
        }
    }
    
    /**
     * Appends and returns a new empty "Quantity" element
     */
    public net.opengis.swe.x10.QuantityDocument.Quantity addNewQuantity()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.swe.x10.QuantityDocument.Quantity target = null;
            target = (net.opengis.swe.x10.QuantityDocument.Quantity)get_store().add_element_user(QUANTITY$0);
            return target;
        }
    }
    /**
     * An XML Quantity(@http://www.opengis.net/swe/1.0).
     *
     * This is a complex type.
     */
    public static class QuantityImpl extends net.opengis.swe.x10.impl.AbstractDataComponentTypeImpl implements net.opengis.swe.x10.QuantityDocument.Quantity
    {
        private static final long serialVersionUID = 1L;
        
        public QuantityImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName UOM$0 = 
            new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0", "uom");
        private static final javax.xml.namespace.QName CONSTRAINT$2 = 
            new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0", "constraint");
        private static final javax.xml.namespace.QName QUALITY$4 = 
            new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0", "quality");
        private static final javax.xml.namespace.QName VALUE$6 = 
            new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0", "value");
        private static final javax.xml.namespace.QName REFERENCEFRAME$8 = 
            new javax.xml.namespace.QName("", "referenceFrame");
        private static final javax.xml.namespace.QName AXISID$10 = 
            new javax.xml.namespace.QName("", "axisID");
        
        
        /**
         * Gets the "uom" element
         */
        public net.opengis.swe.x10.UomPropertyType getUom()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.swe.x10.UomPropertyType target = null;
                target = (net.opengis.swe.x10.UomPropertyType)get_store().find_element_user(UOM$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * True if has "uom" element
         */
        public boolean isSetUom()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(UOM$0) != 0;
            }
        }
        
        /**
         * Sets the "uom" element
         */
        public void setUom(net.opengis.swe.x10.UomPropertyType uom)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.swe.x10.UomPropertyType target = null;
                target = (net.opengis.swe.x10.UomPropertyType)get_store().find_element_user(UOM$0, 0);
                if (target == null)
                {
                    target = (net.opengis.swe.x10.UomPropertyType)get_store().add_element_user(UOM$0);
                }
                target.set(uom);
            }
        }
        
        /**
         * Appends and returns a new empty "uom" element
         */
        public net.opengis.swe.x10.UomPropertyType addNewUom()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.swe.x10.UomPropertyType target = null;
                target = (net.opengis.swe.x10.UomPropertyType)get_store().add_element_user(UOM$0);
                return target;
            }
        }
        
        /**
         * Unsets the "uom" element
         */
        public void unsetUom()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(UOM$0, 0);
            }
        }
        
        /**
         * Gets the "constraint" element
         */
        public net.opengis.swe.x10.AllowedValuesPropertyType getConstraint()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.swe.x10.AllowedValuesPropertyType target = null;
                target = (net.opengis.swe.x10.AllowedValuesPropertyType)get_store().find_element_user(CONSTRAINT$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * True if has "constraint" element
         */
        public boolean isSetConstraint()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(CONSTRAINT$2) != 0;
            }
        }
        
        /**
         * Sets the "constraint" element
         */
        public void setConstraint(net.opengis.swe.x10.AllowedValuesPropertyType constraint)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.swe.x10.AllowedValuesPropertyType target = null;
                target = (net.opengis.swe.x10.AllowedValuesPropertyType)get_store().find_element_user(CONSTRAINT$2, 0);
                if (target == null)
                {
                    target = (net.opengis.swe.x10.AllowedValuesPropertyType)get_store().add_element_user(CONSTRAINT$2);
                }
                target.set(constraint);
            }
        }
        
        /**
         * Appends and returns a new empty "constraint" element
         */
        public net.opengis.swe.x10.AllowedValuesPropertyType addNewConstraint()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.swe.x10.AllowedValuesPropertyType target = null;
                target = (net.opengis.swe.x10.AllowedValuesPropertyType)get_store().add_element_user(CONSTRAINT$2);
                return target;
            }
        }
        
        /**
         * Unsets the "constraint" element
         */
        public void unsetConstraint()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(CONSTRAINT$2, 0);
            }
        }
        
        /**
         * Gets array of all "quality" elements
         */
        public net.opengis.swe.x10.QualityPropertyType[] getQualityArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                java.util.List targetList = new java.util.ArrayList();
                get_store().find_all_element_users(QUALITY$4, targetList);
                net.opengis.swe.x10.QualityPropertyType[] result = new net.opengis.swe.x10.QualityPropertyType[targetList.size()];
                targetList.toArray(result);
                return result;
            }
        }
        
        /**
         * Gets ith "quality" element
         */
        public net.opengis.swe.x10.QualityPropertyType getQualityArray(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.swe.x10.QualityPropertyType target = null;
                target = (net.opengis.swe.x10.QualityPropertyType)get_store().find_element_user(QUALITY$4, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }
        
        /**
         * Returns number of "quality" element
         */
        public int sizeOfQualityArray()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(QUALITY$4);
            }
        }
        
        /**
         * Sets array of all "quality" element
         */
        public void setQualityArray(net.opengis.swe.x10.QualityPropertyType[] qualityArray)
        {
            synchronized (monitor())
            {
                check_orphaned();
                arraySetterHelper(qualityArray, QUALITY$4);
            }
        }
        
        /**
         * Sets ith "quality" element
         */
        public void setQualityArray(int i, net.opengis.swe.x10.QualityPropertyType quality)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.swe.x10.QualityPropertyType target = null;
                target = (net.opengis.swe.x10.QualityPropertyType)get_store().find_element_user(QUALITY$4, i);
                if (target == null)
                {
                    throw new IndexOutOfBoundsException();
                }
                target.set(quality);
            }
        }
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "quality" element
         */
        public net.opengis.swe.x10.QualityPropertyType insertNewQuality(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.swe.x10.QualityPropertyType target = null;
                target = (net.opengis.swe.x10.QualityPropertyType)get_store().insert_element_user(QUALITY$4, i);
                return target;
            }
        }
        
        /**
         * Appends and returns a new empty value (as xml) as the last "quality" element
         */
        public net.opengis.swe.x10.QualityPropertyType addNewQuality()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.swe.x10.QualityPropertyType target = null;
                target = (net.opengis.swe.x10.QualityPropertyType)get_store().add_element_user(QUALITY$4);
                return target;
            }
        }
        
        /**
         * Removes the ith "quality" element
         */
        public void removeQuality(int i)
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(QUALITY$4, i);
            }
        }
        
        /**
         * Gets the "value" element
         */
        public double getValue()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$6, 0);
                if (target == null)
                {
                    return 0.0;
                }
                return target.getDoubleValue();
            }
        }
        
        /**
         * Gets (as xml) the "value" element
         */
        public org.apache.xmlbeans.XmlDouble xgetValue()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlDouble target = null;
                target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(VALUE$6, 0);
                return target;
            }
        }
        
        /**
         * True if has "value" element
         */
        public boolean isSetValue()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(VALUE$6) != 0;
            }
        }
        
        /**
         * Sets the "value" element
         */
        public void setValue(double value)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$6, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VALUE$6);
                }
                target.setDoubleValue(value);
            }
        }
        
        /**
         * Sets (as xml) the "value" element
         */
        public void xsetValue(org.apache.xmlbeans.XmlDouble value)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlDouble target = null;
                target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(VALUE$6, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlDouble)get_store().add_element_user(VALUE$6);
                }
                target.set(value);
            }
        }
        
        /**
         * Unsets the "value" element
         */
        public void unsetValue()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(VALUE$6, 0);
            }
        }
        
        /**
         * Gets the "referenceFrame" attribute
         */
        public java.lang.String getReferenceFrame()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REFERENCEFRAME$8);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "referenceFrame" attribute
         */
        public org.apache.xmlbeans.XmlAnyURI xgetReferenceFrame()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlAnyURI target = null;
                target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(REFERENCEFRAME$8);
                return target;
            }
        }
        
        /**
         * True if has "referenceFrame" attribute
         */
        public boolean isSetReferenceFrame()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(REFERENCEFRAME$8) != null;
            }
        }
        
        /**
         * Sets the "referenceFrame" attribute
         */
        public void setReferenceFrame(java.lang.String referenceFrame)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REFERENCEFRAME$8);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(REFERENCEFRAME$8);
                }
                target.setStringValue(referenceFrame);
            }
        }
        
        /**
         * Sets (as xml) the "referenceFrame" attribute
         */
        public void xsetReferenceFrame(org.apache.xmlbeans.XmlAnyURI referenceFrame)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlAnyURI target = null;
                target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(REFERENCEFRAME$8);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_attribute_user(REFERENCEFRAME$8);
                }
                target.set(referenceFrame);
            }
        }
        
        /**
         * Unsets the "referenceFrame" attribute
         */
        public void unsetReferenceFrame()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(REFERENCEFRAME$8);
            }
        }
        
        /**
         * Gets the "axisID" attribute
         */
        public java.lang.String getAxisID()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(AXISID$10);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "axisID" attribute
         */
        public org.apache.xmlbeans.XmlToken xgetAxisID()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlToken target = null;
                target = (org.apache.xmlbeans.XmlToken)get_store().find_attribute_user(AXISID$10);
                return target;
            }
        }
        
        /**
         * True if has "axisID" attribute
         */
        public boolean isSetAxisID()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(AXISID$10) != null;
            }
        }
        
        /**
         * Sets the "axisID" attribute
         */
        public void setAxisID(java.lang.String axisID)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(AXISID$10);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(AXISID$10);
                }
                target.setStringValue(axisID);
            }
        }
        
        /**
         * Sets (as xml) the "axisID" attribute
         */
        public void xsetAxisID(org.apache.xmlbeans.XmlToken axisID)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlToken target = null;
                target = (org.apache.xmlbeans.XmlToken)get_store().find_attribute_user(AXISID$10);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlToken)get_store().add_attribute_user(AXISID$10);
                }
                target.set(axisID);
            }
        }
        
        /**
         * Unsets the "axisID" attribute
         */
        public void unsetAxisID()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(AXISID$10);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy