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