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