net.opengis.swe.x101.impl.TimeGridDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: TimeGrid
* Namespace: http://www.opengis.net/swe/1.0.1
* Java type: net.opengis.swe.x101.TimeGridDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.swe.x101.impl;
/**
* A document containing one TimeGrid(@http://www.opengis.net/swe/1.0.1) element.
*
* This is a complex type.
*/
public class TimeGridDocumentImpl extends net.opengis.gml.impl.TimeComplexDocumentImpl implements net.opengis.swe.x101.TimeGridDocument
{
private static final long serialVersionUID = 1L;
public TimeGridDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName TIMEGRID$0 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0.1", "TimeGrid");
private static final org.apache.xmlbeans.QNameSet TIMEGRID$1 = org.apache.xmlbeans.QNameSet.forArray( new javax.xml.namespace.QName[] {
new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0.1", "TimeGrid"),
new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0.1", "TimeInstantGrid"),
new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0.1", "TimeIntervalGrid"),
});
/**
* Gets the "TimeGrid" element
*/
public net.opengis.swe.x101.TimeGridType getTimeGrid()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.TimeGridType target = null;
target = (net.opengis.swe.x101.TimeGridType)get_store().find_element_user(TIMEGRID$1, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "TimeGrid" element
*/
public void setTimeGrid(net.opengis.swe.x101.TimeGridType timeGrid)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.TimeGridType target = null;
target = (net.opengis.swe.x101.TimeGridType)get_store().find_element_user(TIMEGRID$1, 0);
if (target == null)
{
target = (net.opengis.swe.x101.TimeGridType)get_store().add_element_user(TIMEGRID$0);
}
target.set(timeGrid);
}
}
/**
* Appends and returns a new empty "TimeGrid" element
*/
public net.opengis.swe.x101.TimeGridType addNewTimeGrid()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.TimeGridType target = null;
target = (net.opengis.swe.x101.TimeGridType)get_store().add_element_user(TIMEGRID$0);
return target;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy