net.opengis.swe.x20.impl.AllowedValuesDocumentImpl Maven / Gradle / Ivy
The newest version!
/*
* An XML document type.
* Localname: AllowedValues
* Namespace: http://www.opengis.net/swe/2.0
* Java type: net.opengis.swe.x20.AllowedValuesDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.swe.x20.impl;
/**
* A document containing one AllowedValues(@http://www.opengis.net/swe/2.0) element.
*
* This is a complex type.
*/
public class AllowedValuesDocumentImpl extends net.opengis.swe.x20.impl.AbstractSWEDocumentImpl implements net.opengis.swe.x20.AllowedValuesDocument
{
private static final long serialVersionUID = 1L;
public AllowedValuesDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ALLOWEDVALUES$0 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/2.0", "AllowedValues");
/**
* Gets the "AllowedValues" element
*/
public net.opengis.swe.x20.AllowedValuesType getAllowedValues()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.AllowedValuesType target = null;
target = (net.opengis.swe.x20.AllowedValuesType)get_store().find_element_user(ALLOWEDVALUES$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "AllowedValues" element
*/
public void setAllowedValues(net.opengis.swe.x20.AllowedValuesType allowedValues)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.AllowedValuesType target = null;
target = (net.opengis.swe.x20.AllowedValuesType)get_store().find_element_user(ALLOWEDVALUES$0, 0);
if (target == null)
{
target = (net.opengis.swe.x20.AllowedValuesType)get_store().add_element_user(ALLOWEDVALUES$0);
}
target.set(allowedValues);
}
}
/**
* Appends and returns a new empty "AllowedValues" element
*/
public net.opengis.swe.x20.AllowedValuesType addNewAllowedValues()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.AllowedValuesType target = null;
target = (net.opengis.swe.x20.AllowedValuesType)get_store().add_element_user(ALLOWEDVALUES$0);
return target;
}
}
}