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