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

gov.nist.secauto.metaschema.model.xmlbeans.impl.DeprecatedAttributeImpl Maven / Gradle / Ivy

There is a newer version: 0.12.2
Show newest version
/*
 * An XML attribute type.
 * Localname: deprecated
 * Namespace: http://csrc.nist.gov/ns/oscal/metaschema/1.0
 * Java type: gov.nist.secauto.metaschema.model.xmlbeans.DeprecatedAttribute
 *
 * Automatically generated - do not modify.
 */
package gov.nist.secauto.metaschema.model.xmlbeans.impl;

import javax.xml.namespace.QName;
import org.apache.xmlbeans.QNameSet;
import org.apache.xmlbeans.XmlObject;

/**
 * A document containing one deprecated(@http://csrc.nist.gov/ns/oscal/metaschema/1.0) attribute.
 *
 * This is a complex type.
 */
public class DeprecatedAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.nist.secauto.metaschema.model.xmlbeans.DeprecatedAttribute {
    private static final long serialVersionUID = 1L;

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

    private static final QName[] PROPERTY_QNAME = {
        new QName("http://csrc.nist.gov/ns/oscal/metaschema/1.0", "deprecated"),
    };


    /**
     * Gets the "deprecated" attribute
     */
    @Override
    public java.lang.String getDeprecated() {
        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();
        }
    }

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

    /**
     * Sets the "deprecated" attribute
     */
    @Override
    public void setDeprecated(java.lang.String deprecated) {
        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(deprecated);
        }
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy