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

net.opengis.sensorML.x10.impl.TermDocumentImpl Maven / Gradle / Ivy

The newest version!
/*
 * An XML document type.
 * Localname: Term
 * Namespace: http://www.opengis.net/sensorML/1.0
 * Java type: net.opengis.sensorML.x10.TermDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.sensorML.x10.impl;
/**
 * A document containing one Term(@http://www.opengis.net/sensorML/1.0) element.
 *
 * This is a complex type.
 */
public class TermDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sensorML.x10.TermDocument
{
    private static final long serialVersionUID = 1L;
    
    public TermDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TERM$0 = 
        new javax.xml.namespace.QName("http://www.opengis.net/sensorML/1.0", "Term");
    
    
    /**
     * Gets the "Term" element
     */
    public net.opengis.sensorML.x10.TermDocument.Term getTerm()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorML.x10.TermDocument.Term target = null;
            target = (net.opengis.sensorML.x10.TermDocument.Term)get_store().find_element_user(TERM$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "Term" element
     */
    public void setTerm(net.opengis.sensorML.x10.TermDocument.Term term)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorML.x10.TermDocument.Term target = null;
            target = (net.opengis.sensorML.x10.TermDocument.Term)get_store().find_element_user(TERM$0, 0);
            if (target == null)
            {
                target = (net.opengis.sensorML.x10.TermDocument.Term)get_store().add_element_user(TERM$0);
            }
            target.set(term);
        }
    }
    
    /**
     * Appends and returns a new empty "Term" element
     */
    public net.opengis.sensorML.x10.TermDocument.Term addNewTerm()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.opengis.sensorML.x10.TermDocument.Term target = null;
            target = (net.opengis.sensorML.x10.TermDocument.Term)get_store().add_element_user(TERM$0);
            return target;
        }
    }
    /**
     * An XML Term(@http://www.opengis.net/sensorML/1.0).
     *
     * This is a complex type.
     */
    public static class TermImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sensorML.x10.TermDocument.Term
    {
        private static final long serialVersionUID = 1L;
        
        public TermImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName CODESPACE$0 = 
            new javax.xml.namespace.QName("http://www.opengis.net/sensorML/1.0", "codeSpace");
        private static final javax.xml.namespace.QName VALUE$2 = 
            new javax.xml.namespace.QName("http://www.opengis.net/sensorML/1.0", "value");
        private static final javax.xml.namespace.QName DEFINITION$4 = 
            new javax.xml.namespace.QName("", "definition");
        
        
        /**
         * Gets the "codeSpace" element
         */
        public net.opengis.swe.x10.CodeSpacePropertyType getCodeSpace()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.swe.x10.CodeSpacePropertyType target = null;
                target = (net.opengis.swe.x10.CodeSpacePropertyType)get_store().find_element_user(CODESPACE$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target;
            }
        }
        
        /**
         * True if has "codeSpace" element
         */
        public boolean isSetCodeSpace()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(CODESPACE$0) != 0;
            }
        }
        
        /**
         * Sets the "codeSpace" element
         */
        public void setCodeSpace(net.opengis.swe.x10.CodeSpacePropertyType codeSpace)
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.swe.x10.CodeSpacePropertyType target = null;
                target = (net.opengis.swe.x10.CodeSpacePropertyType)get_store().find_element_user(CODESPACE$0, 0);
                if (target == null)
                {
                    target = (net.opengis.swe.x10.CodeSpacePropertyType)get_store().add_element_user(CODESPACE$0);
                }
                target.set(codeSpace);
            }
        }
        
        /**
         * Appends and returns a new empty "codeSpace" element
         */
        public net.opengis.swe.x10.CodeSpacePropertyType addNewCodeSpace()
        {
            synchronized (monitor())
            {
                check_orphaned();
                net.opengis.swe.x10.CodeSpacePropertyType target = null;
                target = (net.opengis.swe.x10.CodeSpacePropertyType)get_store().add_element_user(CODESPACE$0);
                return target;
            }
        }
        
        /**
         * Unsets the "codeSpace" element
         */
        public void unsetCodeSpace()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(CODESPACE$0, 0);
            }
        }
        
        /**
         * Gets the "value" element
         */
        public java.lang.String getValue()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "value" element
         */
        public org.apache.xmlbeans.XmlToken xgetValue()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlToken target = null;
                target = (org.apache.xmlbeans.XmlToken)get_store().find_element_user(VALUE$2, 0);
                return target;
            }
        }
        
        /**
         * Sets the "value" element
         */
        public void setValue(java.lang.String value)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VALUE$2);
                }
                target.setStringValue(value);
            }
        }
        
        /**
         * Sets (as xml) the "value" element
         */
        public void xsetValue(org.apache.xmlbeans.XmlToken value)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlToken target = null;
                target = (org.apache.xmlbeans.XmlToken)get_store().find_element_user(VALUE$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlToken)get_store().add_element_user(VALUE$2);
                }
                target.set(value);
            }
        }
        
        /**
         * Gets the "definition" attribute
         */
        public java.lang.String getDefinition()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DEFINITION$4);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "definition" attribute
         */
        public org.apache.xmlbeans.XmlAnyURI xgetDefinition()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlAnyURI target = null;
                target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(DEFINITION$4);
                return target;
            }
        }
        
        /**
         * True if has "definition" attribute
         */
        public boolean isSetDefinition()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().find_attribute_user(DEFINITION$4) != null;
            }
        }
        
        /**
         * Sets the "definition" attribute
         */
        public void setDefinition(java.lang.String definition)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DEFINITION$4);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DEFINITION$4);
                }
                target.setStringValue(definition);
            }
        }
        
        /**
         * Sets (as xml) the "definition" attribute
         */
        public void xsetDefinition(org.apache.xmlbeans.XmlAnyURI definition)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlAnyURI target = null;
                target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(DEFINITION$4);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_attribute_user(DEFINITION$4);
                }
                target.set(definition);
            }
        }
        
        /**
         * Unsets the "definition" attribute
         */
        public void unsetDefinition()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_attribute(DEFINITION$4);
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy