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