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