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