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

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

/*
 * An XML attribute type.
 * Localname: MT
 * Namespace: http://www.kith.no/xmlstds
 * Java type: no.kith.xmlstds.MTAttribute
 *
 * 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;

/**
 * A document containing one MT(@http://www.kith.no/xmlstds) attribute.
 *
 * This is a complex type.
 */
public class MTAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.kith.xmlstds.MTAttribute {
    private static final long serialVersionUID = 1L;

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

    private static final QName[] PROPERTY_QNAME = {
        new QName("http://www.kith.no/xmlstds", "MT"),
    };


    /**
     * Gets the "MT" attribute
     */
    @Override
    public no.kith.xmlstds.MTAttribute.MT.Enum getMT() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[0]);
            return (target == null) ? null : (no.kith.xmlstds.MTAttribute.MT.Enum)target.getEnumValue();
        }
    }

    /**
     * Gets (as xml) the "MT" attribute
     */
    @Override
    public no.kith.xmlstds.MTAttribute.MT xgetMT() {
        synchronized (monitor()) {
            check_orphaned();
            no.kith.xmlstds.MTAttribute.MT target = null;
            target = (no.kith.xmlstds.MTAttribute.MT)get_store().find_attribute_user(PROPERTY_QNAME[0]);
            return target;
        }
    }

    /**
     * True if has "MT" attribute
     */
    @Override
    public boolean isSetMT() {
        synchronized (monitor()) {
            check_orphaned();
            return get_store().find_attribute_user(PROPERTY_QNAME[0]) != null;
        }
    }

    /**
     * Sets the "MT" attribute
     */
    @Override
    public void setMT(no.kith.xmlstds.MTAttribute.MT.Enum mt) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[0]);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[0]);
            }
            target.setEnumValue(mt);
        }
    }

    /**
     * Sets (as xml) the "MT" attribute
     */
    @Override
    public void xsetMT(no.kith.xmlstds.MTAttribute.MT mt) {
        synchronized (monitor()) {
            check_orphaned();
            no.kith.xmlstds.MTAttribute.MT target = null;
            target = (no.kith.xmlstds.MTAttribute.MT)get_store().find_attribute_user(PROPERTY_QNAME[0]);
            if (target == null) {
                target = (no.kith.xmlstds.MTAttribute.MT)get_store().add_attribute_user(PROPERTY_QNAME[0]);
            }
            target.set(mt);
        }
    }

    /**
     * Unsets the "MT" attribute
     */
    @Override
    public void unsetMT() {
        synchronized (monitor()) {
            check_orphaned();
            get_store().remove_attribute(PROPERTY_QNAME[0]);
        }
    }
    /**
     * An XML MT(@http://www.kith.no/xmlstds).
     *
     * This is an atomic type that is a restriction of no.kith.xmlstds.MTAttribute$MT.
     */
    public static class MTImpl extends org.apache.xmlbeans.impl.values.JavaStringEnumerationHolderEx implements no.kith.xmlstds.MTAttribute.MT {
        private static final long serialVersionUID = 1L;

        public MTImpl(org.apache.xmlbeans.SchemaType sType) {
            super(sType, false);
        }

        protected MTImpl(org.apache.xmlbeans.SchemaType sType, boolean b) {
            super(sType, b);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy