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