net.opengis.ows.x11.impl.ExceptionReportDocumentImpl Maven / Gradle / Ivy
The newest version!
/*
* An XML document type.
* Localname: ExceptionReport
* Namespace: http://www.opengis.net/ows/1.1
* Java type: net.opengis.ows.x11.ExceptionReportDocument
*
* 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 ExceptionReport(@http://www.opengis.net/ows/1.1) element.
*
* This is a complex type.
*/
public class ExceptionReportDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.ows.x11.ExceptionReportDocument {
private static final long serialVersionUID = 1L;
public ExceptionReportDocumentImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://www.opengis.net/ows/1.1", "ExceptionReport"),
};
/**
* Gets the "ExceptionReport" element
*/
@Override
public net.opengis.ows.x11.ExceptionReportDocument.ExceptionReport getExceptionReport() {
synchronized (monitor()) {
check_orphaned();
net.opengis.ows.x11.ExceptionReportDocument.ExceptionReport target = null;
target = (net.opengis.ows.x11.ExceptionReportDocument.ExceptionReport)get_store().find_element_user(PROPERTY_QNAME[0], 0);
return (target == null) ? null : target;
}
}
/**
* Sets the "ExceptionReport" element
*/
@Override
public void setExceptionReport(net.opengis.ows.x11.ExceptionReportDocument.ExceptionReport exceptionReport) {
generatedSetterHelperImpl(exceptionReport, PROPERTY_QNAME[0], 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);
}
/**
* Appends and returns a new empty "ExceptionReport" element
*/
@Override
public net.opengis.ows.x11.ExceptionReportDocument.ExceptionReport addNewExceptionReport() {
synchronized (monitor()) {
check_orphaned();
net.opengis.ows.x11.ExceptionReportDocument.ExceptionReport target = null;
target = (net.opengis.ows.x11.ExceptionReportDocument.ExceptionReport)get_store().add_element_user(PROPERTY_QNAME[0]);
return target;
}
}
/**
* An XML ExceptionReport(@http://www.opengis.net/ows/1.1).
*
* This is a complex type.
*/
public static class ExceptionReportImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.ows.x11.ExceptionReportDocument.ExceptionReport {
private static final long serialVersionUID = 1L;
public ExceptionReportImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://www.opengis.net/ows/1.1", "Exception"),
new QName("", "version"),
new QName("http://www.w3.org/XML/1998/namespace", "lang"),
};
/**
* Gets a List of "Exception" elements
*/
@Override
public java.util.List getExceptionList() {
synchronized (monitor()) {
check_orphaned();
return new org.apache.xmlbeans.impl.values.JavaListXmlObject<>(
this::getExceptionArray,
this::setExceptionArray,
this::insertNewException,
this::removeException,
this::sizeOfExceptionArray
);
}
}
/**
* Gets array of all "Exception" elements
*/
@Override
public net.opengis.ows.x11.ExceptionType[] getExceptionArray() {
return getXmlObjectArray(PROPERTY_QNAME[0], new net.opengis.ows.x11.ExceptionType[0]);
}
/**
* Gets ith "Exception" element
*/
@Override
public net.opengis.ows.x11.ExceptionType getExceptionArray(int i) {
synchronized (monitor()) {
check_orphaned();
net.opengis.ows.x11.ExceptionType target = null;
target = (net.opengis.ows.x11.ExceptionType)get_store().find_element_user(PROPERTY_QNAME[0], i);
if (target == null) {
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "Exception" element
*/
@Override
public int sizeOfExceptionArray() {
synchronized (monitor()) {
check_orphaned();
return get_store().count_elements(PROPERTY_QNAME[0]);
}
}
/**
* Sets array of all "Exception" element WARNING: This method is not atomicaly synchronized.
*/
@Override
public void setExceptionArray(net.opengis.ows.x11.ExceptionType[] exceptionArray) {
check_orphaned();
arraySetterHelper(exceptionArray, PROPERTY_QNAME[0]);
}
/**
* Sets ith "Exception" element
*/
@Override
public void setExceptionArray(int i, net.opengis.ows.x11.ExceptionType exception) {
generatedSetterHelperImpl(exception, PROPERTY_QNAME[0], i, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_ARRAYITEM);
}
/**
* Inserts and returns a new empty value (as xml) as the ith "Exception" element
*/
@Override
public net.opengis.ows.x11.ExceptionType insertNewException(int i) {
synchronized (monitor()) {
check_orphaned();
net.opengis.ows.x11.ExceptionType target = null;
target = (net.opengis.ows.x11.ExceptionType)get_store().insert_element_user(PROPERTY_QNAME[0], i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "Exception" element
*/
@Override
public net.opengis.ows.x11.ExceptionType addNewException() {
synchronized (monitor()) {
check_orphaned();
net.opengis.ows.x11.ExceptionType target = null;
target = (net.opengis.ows.x11.ExceptionType)get_store().add_element_user(PROPERTY_QNAME[0]);
return target;
}
}
/**
* Removes the ith "Exception" element
*/
@Override
public void removeException(int i) {
synchronized (monitor()) {
check_orphaned();
get_store().remove_element(PROPERTY_QNAME[0], i);
}
}
/**
* Gets the "version" attribute
*/
@Override
public java.lang.String getVersion() {
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 "version" attribute
*/
@Override
public net.opengis.ows.x11.ExceptionReportDocument.ExceptionReport.Version xgetVersion() {
synchronized (monitor()) {
check_orphaned();
net.opengis.ows.x11.ExceptionReportDocument.ExceptionReport.Version target = null;
target = (net.opengis.ows.x11.ExceptionReportDocument.ExceptionReport.Version)get_store().find_attribute_user(PROPERTY_QNAME[1]);
return target;
}
}
/**
* Sets the "version" attribute
*/
@Override
public void setVersion(java.lang.String version) {
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(version);
}
}
/**
* Sets (as xml) the "version" attribute
*/
@Override
public void xsetVersion(net.opengis.ows.x11.ExceptionReportDocument.ExceptionReport.Version version) {
synchronized (monitor()) {
check_orphaned();
net.opengis.ows.x11.ExceptionReportDocument.ExceptionReport.Version target = null;
target = (net.opengis.ows.x11.ExceptionReportDocument.ExceptionReport.Version)get_store().find_attribute_user(PROPERTY_QNAME[1]);
if (target == null) {
target = (net.opengis.ows.x11.ExceptionReportDocument.ExceptionReport.Version)get_store().add_attribute_user(PROPERTY_QNAME[1]);
}
target.set(version);
}
}
/**
* Gets the "lang" attribute
*/
@Override
public java.lang.String getLang() {
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 "lang" attribute
*/
@Override
public org.apache.xmlbeans.impl.xb.xmlschema.LangAttribute.Lang xgetLang() {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.impl.xb.xmlschema.LangAttribute.Lang target = null;
target = (org.apache.xmlbeans.impl.xb.xmlschema.LangAttribute.Lang)get_store().find_attribute_user(PROPERTY_QNAME[2]);
return target;
}
}
/**
* True if has "lang" attribute
*/
@Override
public boolean isSetLang() {
synchronized (monitor()) {
check_orphaned();
return get_store().find_attribute_user(PROPERTY_QNAME[2]) != null;
}
}
/**
* Sets the "lang" attribute
*/
@Override
public void setLang(java.lang.String lang) {
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(lang);
}
}
/**
* Sets (as xml) the "lang" attribute
*/
@Override
public void xsetLang(org.apache.xmlbeans.impl.xb.xmlschema.LangAttribute.Lang lang) {
synchronized (monitor()) {
check_orphaned();
org.apache.xmlbeans.impl.xb.xmlschema.LangAttribute.Lang target = null;
target = (org.apache.xmlbeans.impl.xb.xmlschema.LangAttribute.Lang)get_store().find_attribute_user(PROPERTY_QNAME[2]);
if (target == null) {
target = (org.apache.xmlbeans.impl.xb.xmlschema.LangAttribute.Lang)get_store().add_attribute_user(PROPERTY_QNAME[2]);
}
target.set(lang);
}
}
/**
* Unsets the "lang" attribute
*/
@Override
public void unsetLang() {
synchronized (monitor()) {
check_orphaned();
get_store().remove_attribute(PROPERTY_QNAME[2]);
}
}
/**
* An XML version(@).
*
* This is an atomic type that is a restriction of net.opengis.ows.x11.ExceptionReportDocument$ExceptionReport$Version.
*/
public static class VersionImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements net.opengis.ows.x11.ExceptionReportDocument.ExceptionReport.Version {
private static final long serialVersionUID = 1L;
public VersionImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType, false);
}
protected VersionImpl(org.apache.xmlbeans.SchemaType sType, boolean b) {
super(sType, b);
}
}
}
}