net.opengis.sps.x10.impl.SensorIDDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: sensorID
* Namespace: http://www.opengis.net/sps/1.0
* Java type: net.opengis.sps.x10.SensorIDDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.sps.x10.impl;
/**
* A document containing one sensorID(@http://www.opengis.net/sps/1.0) element.
*
* This is a complex type.
*/
public class SensorIDDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sps.x10.SensorIDDocument
{
private static final long serialVersionUID = 1L;
public SensorIDDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName SENSORID$0 =
new javax.xml.namespace.QName("http://www.opengis.net/sps/1.0", "sensorID");
/**
* Gets the "sensorID" element
*/
public net.opengis.sps.x10.SensorIDType getSensorID()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x10.SensorIDType target = null;
target = (net.opengis.sps.x10.SensorIDType)get_store().find_element_user(SENSORID$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "sensorID" element
*/
public void setSensorID(net.opengis.sps.x10.SensorIDType sensorID)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x10.SensorIDType target = null;
target = (net.opengis.sps.x10.SensorIDType)get_store().find_element_user(SENSORID$0, 0);
if (target == null)
{
target = (net.opengis.sps.x10.SensorIDType)get_store().add_element_user(SENSORID$0);
}
target.set(sensorID);
}
}
/**
* Appends and returns a new empty "sensorID" element
*/
public net.opengis.sps.x10.SensorIDType addNewSensorID()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x10.SensorIDType target = null;
target = (net.opengis.sps.x10.SensorIDType)get_store().add_element_user(SENSORID$0);
return target;
}
}
}