net.opengis.sps.x10.impl.CancelDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: Cancel
* Namespace: http://www.opengis.net/sps/1.0
* Java type: net.opengis.sps.x10.CancelDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.sps.x10.impl;
/**
* A document containing one Cancel(@http://www.opengis.net/sps/1.0) element.
*
* This is a complex type.
*/
public class CancelDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sps.x10.CancelDocument
{
private static final long serialVersionUID = 1L;
public CancelDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName CANCEL$0 =
new javax.xml.namespace.QName("http://www.opengis.net/sps/1.0", "Cancel");
/**
* Gets the "Cancel" element
*/
public net.opengis.sps.x10.CancelRequestType getCancel()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x10.CancelRequestType target = null;
target = (net.opengis.sps.x10.CancelRequestType)get_store().find_element_user(CANCEL$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "Cancel" element
*/
public void setCancel(net.opengis.sps.x10.CancelRequestType cancel)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x10.CancelRequestType target = null;
target = (net.opengis.sps.x10.CancelRequestType)get_store().find_element_user(CANCEL$0, 0);
if (target == null)
{
target = (net.opengis.sps.x10.CancelRequestType)get_store().add_element_user(CANCEL$0);
}
target.set(cancel);
}
}
/**
* Appends and returns a new empty "Cancel" element
*/
public net.opengis.sps.x10.CancelRequestType addNewCancel()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x10.CancelRequestType target = null;
target = (net.opengis.sps.x10.CancelRequestType)get_store().add_element_user(CANCEL$0);
return target;
}
}
}