net.opengis.sps.x20.impl.ReserveDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: Reserve
* Namespace: http://www.opengis.net/sps/2.0
* Java type: net.opengis.sps.x20.ReserveDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.sps.x20.impl;
/**
* A document containing one Reserve(@http://www.opengis.net/sps/2.0) element.
*
* This is a complex type.
*/
public class ReserveDocumentImpl extends net.opengis.sps.x20.impl.TaskingRequestDocumentImpl implements net.opengis.sps.x20.ReserveDocument
{
private static final long serialVersionUID = 1L;
public ReserveDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName RESERVE$0 =
new javax.xml.namespace.QName("http://www.opengis.net/sps/2.0", "Reserve");
/**
* Gets the "Reserve" element
*/
public net.opengis.sps.x20.ReserveType getReserve()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x20.ReserveType target = null;
target = (net.opengis.sps.x20.ReserveType)get_store().find_element_user(RESERVE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "Reserve" element
*/
public void setReserve(net.opengis.sps.x20.ReserveType reserve)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x20.ReserveType target = null;
target = (net.opengis.sps.x20.ReserveType)get_store().find_element_user(RESERVE$0, 0);
if (target == null)
{
target = (net.opengis.sps.x20.ReserveType)get_store().add_element_user(RESERVE$0);
}
target.set(reserve);
}
}
/**
* Appends and returns a new empty "Reserve" element
*/
public net.opengis.sps.x20.ReserveType addNewReserve()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x20.ReserveType target = null;
target = (net.opengis.sps.x20.ReserveType)get_store().add_element_user(RESERVE$0);
return target;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy