net.opengis.sps.x10.impl.TimeFrameDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: timeFrame
* Namespace: http://www.opengis.net/sps/1.0
* Java type: net.opengis.sps.x10.TimeFrameDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.sps.x10.impl;
/**
* A document containing one timeFrame(@http://www.opengis.net/sps/1.0) element.
*
* This is a complex type.
*/
public class TimeFrameDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sps.x10.TimeFrameDocument
{
private static final long serialVersionUID = 1L;
public TimeFrameDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName TIMEFRAME$0 =
new javax.xml.namespace.QName("http://www.opengis.net/sps/1.0", "timeFrame");
/**
* Gets the "timeFrame" element
*/
public net.opengis.sps.x10.TimeFrameDocument.TimeFrame getTimeFrame()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x10.TimeFrameDocument.TimeFrame target = null;
target = (net.opengis.sps.x10.TimeFrameDocument.TimeFrame)get_store().find_element_user(TIMEFRAME$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "timeFrame" element
*/
public void setTimeFrame(net.opengis.sps.x10.TimeFrameDocument.TimeFrame timeFrame)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x10.TimeFrameDocument.TimeFrame target = null;
target = (net.opengis.sps.x10.TimeFrameDocument.TimeFrame)get_store().find_element_user(TIMEFRAME$0, 0);
if (target == null)
{
target = (net.opengis.sps.x10.TimeFrameDocument.TimeFrame)get_store().add_element_user(TIMEFRAME$0);
}
target.set(timeFrame);
}
}
/**
* Appends and returns a new empty "timeFrame" element
*/
public net.opengis.sps.x10.TimeFrameDocument.TimeFrame addNewTimeFrame()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sps.x10.TimeFrameDocument.TimeFrame target = null;
target = (net.opengis.sps.x10.TimeFrameDocument.TimeFrame)get_store().add_element_user(TIMEFRAME$0);
return target;
}
}
/**
* An XML timeFrame(@http://www.opengis.net/sps/1.0).
*
* This is a complex type.
*/
public static class TimeFrameImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sps.x10.TimeFrameDocument.TimeFrame
{
private static final long serialVersionUID = 1L;
public TimeFrameImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName TIMEINSTANT$0 =
new javax.xml.namespace.QName("http://www.opengis.net/gml", "TimeInstant");
/**
* Gets the "TimeInstant" element
*/
public net.opengis.gml.TimeInstantType getTimeInstant()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.gml.TimeInstantType target = null;
target = (net.opengis.gml.TimeInstantType)get_store().find_element_user(TIMEINSTANT$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "TimeInstant" element
*/
public void setTimeInstant(net.opengis.gml.TimeInstantType timeInstant)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.gml.TimeInstantType target = null;
target = (net.opengis.gml.TimeInstantType)get_store().find_element_user(TIMEINSTANT$0, 0);
if (target == null)
{
target = (net.opengis.gml.TimeInstantType)get_store().add_element_user(TIMEINSTANT$0);
}
target.set(timeInstant);
}
}
/**
* Appends and returns a new empty "TimeInstant" element
*/
public net.opengis.gml.TimeInstantType addNewTimeInstant()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.gml.TimeInstantType target = null;
target = (net.opengis.gml.TimeInstantType)get_store().add_element_user(TIMEINSTANT$0);
return target;
}
}
}
}