net.opengis.ogc.impl.DWithinDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: DWithin
* Namespace: http://www.opengis.net/ogc
* Java type: net.opengis.ogc.DWithinDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.ogc.impl;
/**
* A document containing one DWithin(@http://www.opengis.net/ogc) element.
*
* This is a complex type.
*/
public class DWithinDocumentImpl extends net.opengis.ogc.impl.SpatialOpsDocumentImpl implements net.opengis.ogc.DWithinDocument
{
private static final long serialVersionUID = 1L;
public DWithinDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName DWITHIN$0 =
new javax.xml.namespace.QName("http://www.opengis.net/ogc", "DWithin");
/**
* Gets the "DWithin" element
*/
public net.opengis.ogc.DistanceBufferType getDWithin()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.ogc.DistanceBufferType target = null;
target = (net.opengis.ogc.DistanceBufferType)get_store().find_element_user(DWITHIN$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "DWithin" element
*/
public void setDWithin(net.opengis.ogc.DistanceBufferType dWithin)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.ogc.DistanceBufferType target = null;
target = (net.opengis.ogc.DistanceBufferType)get_store().find_element_user(DWITHIN$0, 0);
if (target == null)
{
target = (net.opengis.ogc.DistanceBufferType)get_store().add_element_user(DWITHIN$0);
}
target.set(dWithin);
}
}
/**
* Appends and returns a new empty "DWithin" element
*/
public net.opengis.ogc.DistanceBufferType addNewDWithin()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.ogc.DistanceBufferType target = null;
target = (net.opengis.ogc.DistanceBufferType)get_store().add_element_user(DWITHIN$0);
return target;
}
}
}