net.opengis.swe.x20.impl.BooleanDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: Boolean
* Namespace: http://www.opengis.net/swe/2.0
* Java type: net.opengis.swe.x20.BooleanDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.swe.x20.impl;
/**
* A document containing one Boolean(@http://www.opengis.net/swe/2.0) element.
*
* This is a complex type.
*/
public class BooleanDocumentImpl extends net.opengis.swe.x20.impl.AbstractSimpleComponentDocumentImpl implements net.opengis.swe.x20.BooleanDocument
{
private static final long serialVersionUID = 1L;
public BooleanDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName BOOLEAN$0 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/2.0", "Boolean");
/**
* Gets the "Boolean" element
*/
public net.opengis.swe.x20.BooleanType getBoolean()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.BooleanType target = null;
target = (net.opengis.swe.x20.BooleanType)get_store().find_element_user(BOOLEAN$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "Boolean" element
*/
public void setBoolean(net.opengis.swe.x20.BooleanType xboolean)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.BooleanType target = null;
target = (net.opengis.swe.x20.BooleanType)get_store().find_element_user(BOOLEAN$0, 0);
if (target == null)
{
target = (net.opengis.swe.x20.BooleanType)get_store().add_element_user(BOOLEAN$0);
}
target.set(xboolean);
}
}
/**
* Appends and returns a new empty "Boolean" element
*/
public net.opengis.swe.x20.BooleanType addNewBoolean()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.BooleanType target = null;
target = (net.opengis.swe.x20.BooleanType)get_store().add_element_user(BOOLEAN$0);
return target;
}
}
}