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

no.kith.xmlstds.impl.RTOImpl Maven / Gradle / Ivy

/*
 * XML Type:  RTO
 * Namespace: http://www.kith.no/xmlstds
 * Java type: no.kith.xmlstds.RTO
 *
 * Automatically generated - do not modify.
 */
package no.kith.xmlstds.impl;

import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
import org.apache.xmlbeans.XmlObject;

/**
 * An XML RTO(@http://www.kith.no/xmlstds).
 *
 * This is a complex type.
 */
public class RTOImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.kith.xmlstds.RTO {
    private static final long serialVersionUID = 1L;

    public RTOImpl(org.apache.xmlbeans.SchemaType sType) {
        super(sType);
    }

    private static final QName[] PROPERTY_QNAME = {
        new QName("", "NUM"),
        new QName("", "DENOM"),
    };


    /**
     * Gets the "NUM" element
     */
    @Override
    public java.math.BigInteger getNUM() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[0], 0);
            return (target == null) ? null : target.getBigIntegerValue();
        }
    }

    /**
     * Gets (as xml) the "NUM" element
     */
    @Override
    public org.apache.xmlbeans.XmlInteger xgetNUM() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlInteger target = null;
            target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(PROPERTY_QNAME[0], 0);
            return target;
        }
    }

    /**
     * True if has "NUM" element
     */
    @Override
    public boolean isSetNUM() {
        synchronized (monitor()) {
            check_orphaned();
            return get_store().count_elements(PROPERTY_QNAME[0]) != 0;
        }
    }

    /**
     * Sets the "NUM" element
     */
    @Override
    public void setNUM(java.math.BigInteger num) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[0], 0);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[0]);
            }
            target.setBigIntegerValue(num);
        }
    }

    /**
     * Sets (as xml) the "NUM" element
     */
    @Override
    public void xsetNUM(org.apache.xmlbeans.XmlInteger num) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlInteger target = null;
            target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(PROPERTY_QNAME[0], 0);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlInteger)get_store().add_element_user(PROPERTY_QNAME[0]);
            }
            target.set(num);
        }
    }

    /**
     * Unsets the "NUM" element
     */
    @Override
    public void unsetNUM() {
        synchronized (monitor()) {
            check_orphaned();
            get_store().remove_element(PROPERTY_QNAME[0], 0);
        }
    }

    /**
     * Gets the "DENOM" element
     */
    @Override
    public java.math.BigInteger getDENOM() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[1], 0);
            return (target == null) ? null : target.getBigIntegerValue();
        }
    }

    /**
     * Gets (as xml) the "DENOM" element
     */
    @Override
    public org.apache.xmlbeans.XmlInteger xgetDENOM() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlInteger target = null;
            target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(PROPERTY_QNAME[1], 0);
            return target;
        }
    }

    /**
     * True if has "DENOM" element
     */
    @Override
    public boolean isSetDENOM() {
        synchronized (monitor()) {
            check_orphaned();
            return get_store().count_elements(PROPERTY_QNAME[1]) != 0;
        }
    }

    /**
     * Sets the "DENOM" element
     */
    @Override
    public void setDENOM(java.math.BigInteger denom) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[1], 0);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[1]);
            }
            target.setBigIntegerValue(denom);
        }
    }

    /**
     * Sets (as xml) the "DENOM" element
     */
    @Override
    public void xsetDENOM(org.apache.xmlbeans.XmlInteger denom) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlInteger target = null;
            target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(PROPERTY_QNAME[1], 0);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlInteger)get_store().add_element_user(PROPERTY_QNAME[1]);
            }
            target.set(denom);
        }
    }

    /**
     * Unsets the "DENOM" element
     */
    @Override
    public void unsetDENOM() {
        synchronized (monitor()) {
            check_orphaned();
            get_store().remove_element(PROPERTY_QNAME[1], 0);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy