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