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

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

There is a newer version: 4.2.0
Show newest version
/*
 * XML Type:  BL
 * Namespace: http://www.kith.no/xmlstds
 * Java type: no.kith.xmlstds.BL
 *
 * 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 BL(@http://www.kith.no/xmlstds).
 *
 * This is a complex type.
 */
public class BLImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.kith.xmlstds.BL {
    private static final long serialVersionUID = 1L;

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

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


    /**
     * Gets the "V" attribute
     */
    @Override
    public boolean getV() {
        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) ? false : target.getBooleanValue();
        }
    }

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

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

    /**
     * Sets the "V" attribute
     */
    @Override
    public void setV(boolean v) {
        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.setBooleanValue(v);
        }
    }

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy