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

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

/*
 * An XML document type.
 * Localname: METASCHEMA
 * Namespace: http://csrc.nist.gov/ns/oscal/metaschema/1.0
 * Java type: gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument
 *
 * 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 METASCHEMA(@http://csrc.nist.gov/ns/oscal/metaschema/1.0) element.
 *
 * This is a complex type.
 */
public class METASCHEMADocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument {
    private static final long serialVersionUID = 1L;

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

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


    /**
     * Gets the "METASCHEMA" element
     */
    @Override
    public gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA getMETASCHEMA() {
        synchronized (monitor()) {
            check_orphaned();
            gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA target = null;
            target = (gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA)get_store().find_element_user(PROPERTY_QNAME[0], 0);
            return (target == null) ? null : target;
        }
    }

    /**
     * Sets the "METASCHEMA" element
     */
    @Override
    public void setMETASCHEMA(gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA metaschema) {
        generatedSetterHelperImpl(metaschema, PROPERTY_QNAME[0], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
    }

    /**
     * Appends and returns a new empty "METASCHEMA" element
     */
    @Override
    public gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA addNewMETASCHEMA() {
        synchronized (monitor()) {
            check_orphaned();
            gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA target = null;
            target = (gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA)get_store().add_element_user(PROPERTY_QNAME[0]);
            return target;
        }
    }
    /**
     * An XML METASCHEMA(@http://csrc.nist.gov/ns/oscal/metaschema/1.0).
     *
     * This is a complex type.
     */
    public static class METASCHEMAImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA {
        private static final long serialVersionUID = 1L;

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

        private static final QName[] PROPERTY_QNAME = {
            new QName("http://csrc.nist.gov/ns/oscal/metaschema/1.0", "schema-name"),
            new QName("http://csrc.nist.gov/ns/oscal/metaschema/1.0", "schema-version"),
            new QName("http://csrc.nist.gov/ns/oscal/metaschema/1.0", "short-name"),
            new QName("http://csrc.nist.gov/ns/oscal/metaschema/1.0", "namespace"),
            new QName("http://csrc.nist.gov/ns/oscal/metaschema/1.0", "json-base-uri"),
            new QName("http://csrc.nist.gov/ns/oscal/metaschema/1.0", "remarks"),
            new QName("http://csrc.nist.gov/ns/oscal/metaschema/1.0", "import"),
            new QName("http://csrc.nist.gov/ns/oscal/metaschema/1.0", "define-assembly"),
            new QName("http://csrc.nist.gov/ns/oscal/metaschema/1.0", "define-field"),
            new QName("http://csrc.nist.gov/ns/oscal/metaschema/1.0", "define-flag"),
            new QName("", "abstract"),
        };


        /**
         * Gets the "schema-name" element
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.MarkupLineDatatype getSchemaName() {
            synchronized (monitor()) {
                check_orphaned();
                gov.nist.secauto.metaschema.model.xmlbeans.MarkupLineDatatype target = null;
                target = (gov.nist.secauto.metaschema.model.xmlbeans.MarkupLineDatatype)get_store().find_element_user(PROPERTY_QNAME[0], 0);
                return (target == null) ? null : target;
            }
        }

        /**
         * Sets the "schema-name" element
         */
        @Override
        public void setSchemaName(gov.nist.secauto.metaschema.model.xmlbeans.MarkupLineDatatype schemaName) {
            generatedSetterHelperImpl(schemaName, PROPERTY_QNAME[0], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
        }

        /**
         * Appends and returns a new empty "schema-name" element
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.MarkupLineDatatype addNewSchemaName() {
            synchronized (monitor()) {
                check_orphaned();
                gov.nist.secauto.metaschema.model.xmlbeans.MarkupLineDatatype target = null;
                target = (gov.nist.secauto.metaschema.model.xmlbeans.MarkupLineDatatype)get_store().add_element_user(PROPERTY_QNAME[0]);
                return target;
            }
        }

        /**
         * Gets the "schema-version" element
         */
        @Override
        public java.lang.String getSchemaVersion() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[1], 0);
                return (target == null) ? null : target.getStringValue();
            }
        }

        /**
         * Sets the "schema-version" element
         */
        @Override
        public void setSchemaVersion(java.lang.String schemaVersion) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[1], 0);
                if (target == null) {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[1]);
                }
                target.setStringValue(schemaVersion);
            }
        }

        /**
         * Gets the "short-name" element
         */
        @Override
        public java.lang.String getShortName() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[2], 0);
                return (target == null) ? null : target.getStringValue();
            }
        }

        /**
         * Sets the "short-name" element
         */
        @Override
        public void setShortName(java.lang.String shortName) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[2], 0);
                if (target == null) {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[2]);
                }
                target.setStringValue(shortName);
            }
        }

        /**
         * Gets the "namespace" element
         */
        @Override
        public java.lang.String getNamespace() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[3], 0);
                return (target == null) ? null : target.getStringValue();
            }
        }

        /**
         * Sets the "namespace" element
         */
        @Override
        public void setNamespace(java.lang.String namespace) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[3], 0);
                if (target == null) {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[3]);
                }
                target.setStringValue(namespace);
            }
        }

        /**
         * Gets the "json-base-uri" element
         */
        @Override
        public java.lang.String getJsonBaseUri() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[4], 0);
                return (target == null) ? null : target.getStringValue();
            }
        }

        /**
         * Sets the "json-base-uri" element
         */
        @Override
        public void setJsonBaseUri(java.lang.String jsonBaseUri) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PROPERTY_QNAME[4], 0);
                if (target == null) {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PROPERTY_QNAME[4]);
                }
                target.setStringValue(jsonBaseUri);
            }
        }

        /**
         * Gets the "remarks" element
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.RemarksType getRemarks() {
            synchronized (monitor()) {
                check_orphaned();
                gov.nist.secauto.metaschema.model.xmlbeans.RemarksType target = null;
                target = (gov.nist.secauto.metaschema.model.xmlbeans.RemarksType)get_store().find_element_user(PROPERTY_QNAME[5], 0);
                return (target == null) ? null : target;
            }
        }

        /**
         * True if has "remarks" element
         */
        @Override
        public boolean isSetRemarks() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().count_elements(PROPERTY_QNAME[5]) != 0;
            }
        }

        /**
         * Sets the "remarks" element
         */
        @Override
        public void setRemarks(gov.nist.secauto.metaschema.model.xmlbeans.RemarksType remarks) {
            generatedSetterHelperImpl(remarks, PROPERTY_QNAME[5], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
        }

        /**
         * Appends and returns a new empty "remarks" element
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.RemarksType addNewRemarks() {
            synchronized (monitor()) {
                check_orphaned();
                gov.nist.secauto.metaschema.model.xmlbeans.RemarksType target = null;
                target = (gov.nist.secauto.metaschema.model.xmlbeans.RemarksType)get_store().add_element_user(PROPERTY_QNAME[5]);
                return target;
            }
        }

        /**
         * Unsets the "remarks" element
         */
        @Override
        public void unsetRemarks() {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_element(PROPERTY_QNAME[5], 0);
            }
        }

        /**
         * Gets a List of "import" elements
         */
        @Override
        public java.util.List getImportList() {
            synchronized (monitor()) {
                check_orphaned();
                return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
                    this::getImportArray,
                    this::setImportArray,
                    this::insertNewImport,
                    this::removeImport,
                    this::sizeOfImportArray
                );
            }
        }

        /**
         * Gets array of all "import" elements
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Import[] getImportArray() {
            return getXmlObjectArray(PROPERTY_QNAME[6], new gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Import[0]);
        }

        /**
         * Gets ith "import" element
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Import getImportArray(int i) {
            synchronized (monitor()) {
                check_orphaned();
                gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Import target = null;
                target = (gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Import)get_store().find_element_user(PROPERTY_QNAME[6], i);
                if (target == null) {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }

        /**
         * Returns number of "import" element
         */
        @Override
        public int sizeOfImportArray() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().count_elements(PROPERTY_QNAME[6]);
            }
        }

        /**
         * Sets array of all "import" element  WARNING: This method is not atomicaly synchronized.
         */
        @Override
        public void setImportArray(gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Import[] ximportArray) {
            check_orphaned();
            arraySetterHelper(ximportArray, PROPERTY_QNAME[6]);
        }

        /**
         * Sets ith "import" element
         */
        @Override
        public void setImportArray(int i, gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Import ximport) {
            generatedSetterHelperImpl(ximport, PROPERTY_QNAME[6], i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
        }

        /**
         * Inserts and returns a new empty value (as xml) as the ith "import" element
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Import insertNewImport(int i) {
            synchronized (monitor()) {
                check_orphaned();
                gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Import target = null;
                target = (gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Import)get_store().insert_element_user(PROPERTY_QNAME[6], i);
                return target;
            }
        }

        /**
         * Appends and returns a new empty value (as xml) as the last "import" element
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Import addNewImport() {
            synchronized (monitor()) {
                check_orphaned();
                gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Import target = null;
                target = (gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Import)get_store().add_element_user(PROPERTY_QNAME[6]);
                return target;
            }
        }

        /**
         * Removes the ith "import" element
         */
        @Override
        public void removeImport(int i) {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_element(PROPERTY_QNAME[6], i);
            }
        }

        /**
         * Gets a List of "define-assembly" elements
         */
        @Override
        public java.util.List getDefineAssemblyList() {
            synchronized (monitor()) {
                check_orphaned();
                return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
                    this::getDefineAssemblyArray,
                    this::setDefineAssemblyArray,
                    this::insertNewDefineAssembly,
                    this::removeDefineAssembly,
                    this::sizeOfDefineAssemblyArray
                );
            }
        }

        /**
         * Gets array of all "define-assembly" elements
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.GlobalAssemblyDefinitionType[] getDefineAssemblyArray() {
            return getXmlObjectArray(PROPERTY_QNAME[7], new gov.nist.secauto.metaschema.model.xmlbeans.GlobalAssemblyDefinitionType[0]);
        }

        /**
         * Gets ith "define-assembly" element
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.GlobalAssemblyDefinitionType getDefineAssemblyArray(int i) {
            synchronized (monitor()) {
                check_orphaned();
                gov.nist.secauto.metaschema.model.xmlbeans.GlobalAssemblyDefinitionType target = null;
                target = (gov.nist.secauto.metaschema.model.xmlbeans.GlobalAssemblyDefinitionType)get_store().find_element_user(PROPERTY_QNAME[7], i);
                if (target == null) {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }

        /**
         * Returns number of "define-assembly" element
         */
        @Override
        public int sizeOfDefineAssemblyArray() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().count_elements(PROPERTY_QNAME[7]);
            }
        }

        /**
         * Sets array of all "define-assembly" element  WARNING: This method is not atomicaly synchronized.
         */
        @Override
        public void setDefineAssemblyArray(gov.nist.secauto.metaschema.model.xmlbeans.GlobalAssemblyDefinitionType[] defineAssemblyArray) {
            check_orphaned();
            arraySetterHelper(defineAssemblyArray, PROPERTY_QNAME[7]);
        }

        /**
         * Sets ith "define-assembly" element
         */
        @Override
        public void setDefineAssemblyArray(int i, gov.nist.secauto.metaschema.model.xmlbeans.GlobalAssemblyDefinitionType defineAssembly) {
            generatedSetterHelperImpl(defineAssembly, PROPERTY_QNAME[7], i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
        }

        /**
         * Inserts and returns a new empty value (as xml) as the ith "define-assembly" element
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.GlobalAssemblyDefinitionType insertNewDefineAssembly(int i) {
            synchronized (monitor()) {
                check_orphaned();
                gov.nist.secauto.metaschema.model.xmlbeans.GlobalAssemblyDefinitionType target = null;
                target = (gov.nist.secauto.metaschema.model.xmlbeans.GlobalAssemblyDefinitionType)get_store().insert_element_user(PROPERTY_QNAME[7], i);
                return target;
            }
        }

        /**
         * Appends and returns a new empty value (as xml) as the last "define-assembly" element
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.GlobalAssemblyDefinitionType addNewDefineAssembly() {
            synchronized (monitor()) {
                check_orphaned();
                gov.nist.secauto.metaschema.model.xmlbeans.GlobalAssemblyDefinitionType target = null;
                target = (gov.nist.secauto.metaschema.model.xmlbeans.GlobalAssemblyDefinitionType)get_store().add_element_user(PROPERTY_QNAME[7]);
                return target;
            }
        }

        /**
         * Removes the ith "define-assembly" element
         */
        @Override
        public void removeDefineAssembly(int i) {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_element(PROPERTY_QNAME[7], i);
            }
        }

        /**
         * Gets a List of "define-field" elements
         */
        @Override
        public java.util.List getDefineFieldList() {
            synchronized (monitor()) {
                check_orphaned();
                return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
                    this::getDefineFieldArray,
                    this::setDefineFieldArray,
                    this::insertNewDefineField,
                    this::removeDefineField,
                    this::sizeOfDefineFieldArray
                );
            }
        }

        /**
         * Gets array of all "define-field" elements
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.GlobalFieldDefinitionType[] getDefineFieldArray() {
            return getXmlObjectArray(PROPERTY_QNAME[8], new gov.nist.secauto.metaschema.model.xmlbeans.GlobalFieldDefinitionType[0]);
        }

        /**
         * Gets ith "define-field" element
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.GlobalFieldDefinitionType getDefineFieldArray(int i) {
            synchronized (monitor()) {
                check_orphaned();
                gov.nist.secauto.metaschema.model.xmlbeans.GlobalFieldDefinitionType target = null;
                target = (gov.nist.secauto.metaschema.model.xmlbeans.GlobalFieldDefinitionType)get_store().find_element_user(PROPERTY_QNAME[8], i);
                if (target == null) {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }

        /**
         * Returns number of "define-field" element
         */
        @Override
        public int sizeOfDefineFieldArray() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().count_elements(PROPERTY_QNAME[8]);
            }
        }

        /**
         * Sets array of all "define-field" element  WARNING: This method is not atomicaly synchronized.
         */
        @Override
        public void setDefineFieldArray(gov.nist.secauto.metaschema.model.xmlbeans.GlobalFieldDefinitionType[] defineFieldArray) {
            check_orphaned();
            arraySetterHelper(defineFieldArray, PROPERTY_QNAME[8]);
        }

        /**
         * Sets ith "define-field" element
         */
        @Override
        public void setDefineFieldArray(int i, gov.nist.secauto.metaschema.model.xmlbeans.GlobalFieldDefinitionType defineField) {
            generatedSetterHelperImpl(defineField, PROPERTY_QNAME[8], i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
        }

        /**
         * Inserts and returns a new empty value (as xml) as the ith "define-field" element
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.GlobalFieldDefinitionType insertNewDefineField(int i) {
            synchronized (monitor()) {
                check_orphaned();
                gov.nist.secauto.metaschema.model.xmlbeans.GlobalFieldDefinitionType target = null;
                target = (gov.nist.secauto.metaschema.model.xmlbeans.GlobalFieldDefinitionType)get_store().insert_element_user(PROPERTY_QNAME[8], i);
                return target;
            }
        }

        /**
         * Appends and returns a new empty value (as xml) as the last "define-field" element
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.GlobalFieldDefinitionType addNewDefineField() {
            synchronized (monitor()) {
                check_orphaned();
                gov.nist.secauto.metaschema.model.xmlbeans.GlobalFieldDefinitionType target = null;
                target = (gov.nist.secauto.metaschema.model.xmlbeans.GlobalFieldDefinitionType)get_store().add_element_user(PROPERTY_QNAME[8]);
                return target;
            }
        }

        /**
         * Removes the ith "define-field" element
         */
        @Override
        public void removeDefineField(int i) {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_element(PROPERTY_QNAME[8], i);
            }
        }

        /**
         * Gets a List of "define-flag" elements
         */
        @Override
        public java.util.List getDefineFlagList() {
            synchronized (monitor()) {
                check_orphaned();
                return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
                    this::getDefineFlagArray,
                    this::setDefineFlagArray,
                    this::insertNewDefineFlag,
                    this::removeDefineFlag,
                    this::sizeOfDefineFlagArray
                );
            }
        }

        /**
         * Gets array of all "define-flag" elements
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.GlobalFlagDefinitionType[] getDefineFlagArray() {
            return getXmlObjectArray(PROPERTY_QNAME[9], new gov.nist.secauto.metaschema.model.xmlbeans.GlobalFlagDefinitionType[0]);
        }

        /**
         * Gets ith "define-flag" element
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.GlobalFlagDefinitionType getDefineFlagArray(int i) {
            synchronized (monitor()) {
                check_orphaned();
                gov.nist.secauto.metaschema.model.xmlbeans.GlobalFlagDefinitionType target = null;
                target = (gov.nist.secauto.metaschema.model.xmlbeans.GlobalFlagDefinitionType)get_store().find_element_user(PROPERTY_QNAME[9], i);
                if (target == null) {
                    throw new IndexOutOfBoundsException();
                }
                return target;
            }
        }

        /**
         * Returns number of "define-flag" element
         */
        @Override
        public int sizeOfDefineFlagArray() {
            synchronized (monitor()) {
                check_orphaned();
                return get_store().count_elements(PROPERTY_QNAME[9]);
            }
        }

        /**
         * Sets array of all "define-flag" element  WARNING: This method is not atomicaly synchronized.
         */
        @Override
        public void setDefineFlagArray(gov.nist.secauto.metaschema.model.xmlbeans.GlobalFlagDefinitionType[] defineFlagArray) {
            check_orphaned();
            arraySetterHelper(defineFlagArray, PROPERTY_QNAME[9]);
        }

        /**
         * Sets ith "define-flag" element
         */
        @Override
        public void setDefineFlagArray(int i, gov.nist.secauto.metaschema.model.xmlbeans.GlobalFlagDefinitionType defineFlag) {
            generatedSetterHelperImpl(defineFlag, PROPERTY_QNAME[9], i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
        }

        /**
         * Inserts and returns a new empty value (as xml) as the ith "define-flag" element
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.GlobalFlagDefinitionType insertNewDefineFlag(int i) {
            synchronized (monitor()) {
                check_orphaned();
                gov.nist.secauto.metaschema.model.xmlbeans.GlobalFlagDefinitionType target = null;
                target = (gov.nist.secauto.metaschema.model.xmlbeans.GlobalFlagDefinitionType)get_store().insert_element_user(PROPERTY_QNAME[9], i);
                return target;
            }
        }

        /**
         * Appends and returns a new empty value (as xml) as the last "define-flag" element
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.GlobalFlagDefinitionType addNewDefineFlag() {
            synchronized (monitor()) {
                check_orphaned();
                gov.nist.secauto.metaschema.model.xmlbeans.GlobalFlagDefinitionType target = null;
                target = (gov.nist.secauto.metaschema.model.xmlbeans.GlobalFlagDefinitionType)get_store().add_element_user(PROPERTY_QNAME[9]);
                return target;
            }
        }

        /**
         * Removes the ith "define-flag" element
         */
        @Override
        public void removeDefineFlag(int i) {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_element(PROPERTY_QNAME[9], i);
            }
        }

        /**
         * Gets the "abstract" attribute
         */
        @Override
        public gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Abstract.Enum getAbstract() {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[10]);
                return (target == null) ? null : (gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Abstract.Enum)target.getEnumValue();
            }
        }

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

        /**
         * Sets the "abstract" attribute
         */
        @Override
        public void setAbstract(gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Abstract.Enum xabstract) {
            synchronized (monitor()) {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PROPERTY_QNAME[10]);
                if (target == null) {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PROPERTY_QNAME[10]);
                }
                target.setEnumValue(xabstract);
            }
        }

        /**
         * Unsets the "abstract" attribute
         */
        @Override
        public void unsetAbstract() {
            synchronized (monitor()) {
                check_orphaned();
                get_store().remove_attribute(PROPERTY_QNAME[10]);
            }
        }
        /**
         * An XML import(@http://csrc.nist.gov/ns/oscal/metaschema/1.0).
         *
         * This is a complex type.
         */
        public static class ImportImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Import {
            private static final long serialVersionUID = 1L;

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

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


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

            /**
             * Sets the "href" attribute
             */
            @Override
            public void setHref(java.lang.String href) {
                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(href);
                }
            }
        }
        /**
         * An XML abstract(@).
         *
         * This is an atomic type that is a restriction of gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument$METASCHEMA$Abstract.
         */
        public static class AbstractImpl extends org.apache.xmlbeans.impl.values.JavaStringEnumerationHolderEx implements gov.nist.secauto.metaschema.model.xmlbeans.METASCHEMADocument.METASCHEMA.Abstract {
            private static final long serialVersionUID = 1L;

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy