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

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

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

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

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


    /**
     * Gets the "V" attribute
     */
    @Override
    public java.lang.String 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) ? null : target.getStringValue();
        }
    }

    /**
     * Gets (as xml) the "V" attribute
     */
    @Override
    public org.apache.xmlbeans.XmlToken xgetV() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlToken target = null;
            target = (org.apache.xmlbeans.XmlToken)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(java.lang.String 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.setStringValue(v);
        }
    }

    /**
     * Sets (as xml) the "V" attribute
     */
    @Override
    public void xsetV(org.apache.xmlbeans.XmlToken v) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlToken target = null;
            target = (org.apache.xmlbeans.XmlToken)get_store().find_attribute_user(PROPERTY_QNAME[0]);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlToken)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]);
        }
    }

    /**
     * Gets the "S" attribute
     */
    @Override
    public java.lang.String getS() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[1]);
            return (target == null) ? null : target.getStringValue();
        }
    }

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

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

    /**
     * Sets the "S" attribute
     */
    @Override
    public void setS(java.lang.String s) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[1]);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[1]);
            }
            target.setStringValue(s);
        }
    }

    /**
     * Sets (as xml) the "S" attribute
     */
    @Override
    public void xsetS(no.kith.xmlstds.Oid s) {
        synchronized (monitor()) {
            check_orphaned();
            no.kith.xmlstds.Oid target = null;
            target = (no.kith.xmlstds.Oid)get_store().find_attribute_user(PROPERTY_QNAME[1]);
            if (target == null) {
                target = (no.kith.xmlstds.Oid)get_store().add_attribute_user(PROPERTY_QNAME[1]);
            }
            target.set(s);
        }
    }

    /**
     * Unsets the "S" attribute
     */
    @Override
    public void unsetS() {
        synchronized (monitor()) {
            check_orphaned();
            get_store().remove_attribute(PROPERTY_QNAME[1]);
        }
    }

    /**
     * Gets the "DN" attribute
     */
    @Override
    public java.lang.String getDN() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[2]);
            return (target == null) ? null : target.getStringValue();
        }
    }

    /**
     * Gets (as xml) the "DN" attribute
     */
    @Override
    public org.apache.xmlbeans.XmlString xgetDN() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROPERTY_QNAME[2]);
            return target;
        }
    }

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

    /**
     * Sets the "DN" attribute
     */
    @Override
    public void setDN(java.lang.String dn) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[2]);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[2]);
            }
            target.setStringValue(dn);
        }
    }

    /**
     * Sets (as xml) the "DN" attribute
     */
    @Override
    public void xsetDN(org.apache.xmlbeans.XmlString dn) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROPERTY_QNAME[2]);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(PROPERTY_QNAME[2]);
            }
            target.set(dn);
        }
    }

    /**
     * Unsets the "DN" attribute
     */
    @Override
    public void unsetDN() {
        synchronized (monitor()) {
            check_orphaned();
            get_store().remove_attribute(PROPERTY_QNAME[2]);
        }
    }

    /**
     * Gets the "OT" attribute
     */
    @Override
    public java.lang.String getOT() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[3]);
            return (target == null) ? null : target.getStringValue();
        }
    }

    /**
     * Gets (as xml) the "OT" attribute
     */
    @Override
    public org.apache.xmlbeans.XmlString xgetOT() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROPERTY_QNAME[3]);
            return target;
        }
    }

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

    /**
     * Sets the "OT" attribute
     */
    @Override
    public void setOT(java.lang.String ot) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[3]);
            if (target == null) {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[3]);
            }
            target.setStringValue(ot);
        }
    }

    /**
     * Sets (as xml) the "OT" attribute
     */
    @Override
    public void xsetOT(org.apache.xmlbeans.XmlString ot) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PROPERTY_QNAME[3]);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(PROPERTY_QNAME[3]);
            }
            target.set(ot);
        }
    }

    /**
     * Unsets the "OT" attribute
     */
    @Override
    public void unsetOT() {
        synchronized (monitor()) {
            check_orphaned();
            get_store().remove_attribute(PROPERTY_QNAME[3]);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy