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

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

/*
 * An XML attribute type.
 * Localname: COMPN
 * Namespace: http://www.kith.no/xmlstds
 * Java type: no.kith.xmlstds.COMPNAttribute
 *
 * 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 COMPN(@http://www.kith.no/xmlstds) attribute.
 *
 * This is a complex type.
 */
public class COMPNAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.kith.xmlstds.COMPNAttribute {
    private static final long serialVersionUID = 1L;

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

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


    /**
     * Gets the "COMPN" attribute
     */
    @Override
    public no.kith.xmlstds.COMPNAttribute.COMPN.Enum getCOMPN() {
        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.COMPNAttribute.COMPN.Enum)target.getEnumValue();
        }
    }

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

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

    /**
     * Sets the "COMPN" attribute
     */
    @Override
    public void setCOMPN(no.kith.xmlstds.COMPNAttribute.COMPN.Enum compn) {
        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(compn);
        }
    }

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy