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

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

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

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

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


    /**
     * Gets the "V" attribute
     */
    @Override
    public java.util.Calendar 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.getCalendarValue();
        }
    }

    /**
     * Gets (as xml) the "V" attribute
     */
    @Override
    public no.kith.xmlstds.TS.V xgetV() {
        synchronized (monitor()) {
            check_orphaned();
            no.kith.xmlstds.TS.V target = null;
            target = (no.kith.xmlstds.TS.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(java.util.Calendar 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.setCalendarValue(v);
        }
    }

    /**
     * Sets (as xml) the "V" attribute
     */
    @Override
    public void xsetV(no.kith.xmlstds.TS.V v) {
        synchronized (monitor()) {
            check_orphaned();
            no.kith.xmlstds.TS.V target = null;
            target = (no.kith.xmlstds.TS.V)get_store().find_attribute_user(PROPERTY_QNAME[0]);
            if (target == null) {
                target = (no.kith.xmlstds.TS.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 a union type. Instances are of one of the following types:
     *     org.apache.xmlbeans.XmlDateTime
     *     org.apache.xmlbeans.XmlDate
     *     org.apache.xmlbeans.XmlGYear
     *     org.apache.xmlbeans.XmlGYearMonth
     *     org.apache.xmlbeans.XmlTime
     */
    public static class VImpl extends org.apache.xmlbeans.impl.values.XmlUnionImpl implements no.kith.xmlstds.TS.V, org.apache.xmlbeans.XmlDateTime, org.apache.xmlbeans.XmlDate, org.apache.xmlbeans.XmlGYear, org.apache.xmlbeans.XmlGYearMonth, org.apache.xmlbeans.XmlTime {
        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