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

net.opengis.ows.x11.impl.AccessConstraintsDocumentImpl Maven / Gradle / Ivy

The newest version!
/*
 * An XML document type.
 * Localname: AccessConstraints
 * Namespace: http://www.opengis.net/ows/1.1
 * Java type: net.opengis.ows.x11.AccessConstraintsDocument
 *
 * Automatically generated - do not modify.
 */
package net.opengis.ows.x11.impl;

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

/**
 * A document containing one AccessConstraints(@http://www.opengis.net/ows/1.1) element.
 *
 * This is a complex type.
 */
public class AccessConstraintsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.ows.x11.AccessConstraintsDocument {
    private static final long serialVersionUID = 1L;

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

    private static final QName[] PROPERTY_QNAME = {
        new QName("http://www.opengis.net/ows/1.1", "AccessConstraints"),
    };


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

    /**
     * Gets (as xml) the "AccessConstraints" element
     */
    @Override
    public org.apache.xmlbeans.XmlString xgetAccessConstraints() {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[0], 0);
            return target;
        }
    }

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

    /**
     * Sets (as xml) the "AccessConstraints" element
     */
    @Override
    public void xsetAccessConstraints(org.apache.xmlbeans.XmlString accessConstraints) {
        synchronized (monitor()) {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PROPERTY_QNAME[0], 0);
            if (target == null) {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PROPERTY_QNAME[0]);
            }
            target.set(accessConstraints);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy