net.opengis.ows.x11.impl.BoundingBoxDocumentImpl Maven / Gradle / Ivy
The newest version!
/*
* An XML document type.
* Localname: BoundingBox
* Namespace: http://www.opengis.net/ows/1.1
* Java type: net.opengis.ows.x11.BoundingBoxDocument
*
* 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 BoundingBox(@http://www.opengis.net/ows/1.1) element.
*
* This is a complex type.
*/
public class BoundingBoxDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.ows.x11.BoundingBoxDocument {
private static final long serialVersionUID = 1L;
public BoundingBoxDocumentImpl(org.apache.xmlbeans.SchemaType sType) {
super(sType);
}
private static final QName[] PROPERTY_QNAME = {
new QName("http://www.opengis.net/ows/1.1", "BoundingBox"),
};
private static final QNameSet[] PROPERTY_QSET = {
QNameSet.forArray( new QName[] {
new QName("http://www.opengis.net/ows/1.1", "WGS84BoundingBox"),
new QName("http://www.opengis.net/ows/1.1", "BoundingBox"),
}),
};
/**
* Gets the "BoundingBox" element
*/
@Override
public net.opengis.ows.x11.BoundingBoxType getBoundingBox() {
synchronized (monitor()) {
check_orphaned();
net.opengis.ows.x11.BoundingBoxType target = null;
target = (net.opengis.ows.x11.BoundingBoxType)get_store().find_element_user(PROPERTY_QSET[0], 0);
return (target == null) ? null : target;
}
}
/**
* Sets the "BoundingBox" element
*/
@Override
public void setBoundingBox(net.opengis.ows.x11.BoundingBoxType boundingBox) {
synchronized (monitor()) {
check_orphaned();
net.opengis.ows.x11.BoundingBoxType target = null;
target = (net.opengis.ows.x11.BoundingBoxType)get_store().find_element_user(PROPERTY_QSET[0], 0);
if (target == null) {
target = (net.opengis.ows.x11.BoundingBoxType)get_store().add_element_user(PROPERTY_QNAME[0]);
}
target.set(boundingBox);
}
}
/**
* Appends and returns a new empty "BoundingBox" element
*/
@Override
public net.opengis.ows.x11.BoundingBoxType addNewBoundingBox() {
synchronized (monitor()) {
check_orphaned();
net.opengis.ows.x11.BoundingBoxType target = null;
target = (net.opengis.ows.x11.BoundingBoxType)get_store().add_element_user(PROPERTY_QNAME[0]);
return target;
}
}
}