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

net.opengis.swe.x20.impl.NilValueImpl Maven / Gradle / Ivy

/*
 * XML Type:  NilValue
 * Namespace: http://www.opengis.net/swe/2.0
 * Java type: net.opengis.swe.x20.NilValue
 *
 * Automatically generated - do not modify.
 */
package net.opengis.swe.x20.impl;
/**
 * An XML NilValue(@http://www.opengis.net/swe/2.0).
 *
 * This is an atomic type that is a restriction of net.opengis.swe.x20.NilValue.
 */
public class NilValueImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements net.opengis.swe.x20.NilValue
{
    private static final long serialVersionUID = 1L;
    
    public NilValueImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType, true);
    }
    
    protected NilValueImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
    {
        super(sType, b);
    }
    
    private static final javax.xml.namespace.QName REASON$0 = 
        new javax.xml.namespace.QName("", "reason");
    
    
    /**
     * Gets the "reason" attribute
     */
    public java.lang.String getReason()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REASON$0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "reason" attribute
     */
    public org.apache.xmlbeans.XmlAnyURI xgetReason()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(REASON$0);
            return target;
        }
    }
    
    /**
     * Sets the "reason" attribute
     */
    public void setReason(java.lang.String reason)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REASON$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(REASON$0);
            }
            target.setStringValue(reason);
        }
    }
    
    /**
     * Sets (as xml) the "reason" attribute
     */
    public void xsetReason(org.apache.xmlbeans.XmlAnyURI reason)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(REASON$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_attribute_user(REASON$0);
            }
            target.set(reason);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy