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