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