net.opengis.sensorml.x20.impl.ConstraintSettingPropertyTypeImpl Maven / Gradle / Ivy
/*
* XML Type: ConstraintSettingPropertyType
* Namespace: http://www.opengis.net/sensorml/2.0
* Java type: net.opengis.sensorml.x20.ConstraintSettingPropertyType
*
* Automatically generated - do not modify.
*/
package net.opengis.sensorml.x20.impl;
/**
* An XML ConstraintSettingPropertyType(@http://www.opengis.net/sensorml/2.0).
*
* This is a complex type.
*/
public class ConstraintSettingPropertyTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.sensorml.x20.ConstraintSettingPropertyType
{
private static final long serialVersionUID = 1L;
public ConstraintSettingPropertyTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ALLOWEDTIMES$0 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/2.0", "AllowedTimes");
private static final javax.xml.namespace.QName ALLOWEDTOKENS$2 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/2.0", "AllowedTokens");
private static final javax.xml.namespace.QName ALLOWEDVALUES$4 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/2.0", "AllowedValues");
private static final javax.xml.namespace.QName REF$6 =
new javax.xml.namespace.QName("", "ref");
/**
* Gets the "AllowedTimes" element
*/
public net.opengis.swe.x20.AllowedTimesType getAllowedTimes()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.AllowedTimesType target = null;
target = (net.opengis.swe.x20.AllowedTimesType)get_store().find_element_user(ALLOWEDTIMES$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "AllowedTimes" element
*/
public boolean isSetAllowedTimes()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ALLOWEDTIMES$0) != 0;
}
}
/**
* Sets the "AllowedTimes" element
*/
public void setAllowedTimes(net.opengis.swe.x20.AllowedTimesType allowedTimes)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.AllowedTimesType target = null;
target = (net.opengis.swe.x20.AllowedTimesType)get_store().find_element_user(ALLOWEDTIMES$0, 0);
if (target == null)
{
target = (net.opengis.swe.x20.AllowedTimesType)get_store().add_element_user(ALLOWEDTIMES$0);
}
target.set(allowedTimes);
}
}
/**
* Appends and returns a new empty "AllowedTimes" element
*/
public net.opengis.swe.x20.AllowedTimesType addNewAllowedTimes()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.AllowedTimesType target = null;
target = (net.opengis.swe.x20.AllowedTimesType)get_store().add_element_user(ALLOWEDTIMES$0);
return target;
}
}
/**
* Unsets the "AllowedTimes" element
*/
public void unsetAllowedTimes()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ALLOWEDTIMES$0, 0);
}
}
/**
* 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$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "AllowedTokens" element
*/
public boolean isSetAllowedTokens()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ALLOWEDTOKENS$2) != 0;
}
}
/**
* 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$2, 0);
if (target == null)
{
target = (net.opengis.swe.x20.AllowedTokensType)get_store().add_element_user(ALLOWEDTOKENS$2);
}
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$2);
return target;
}
}
/**
* Unsets the "AllowedTokens" element
*/
public void unsetAllowedTokens()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ALLOWEDTOKENS$2, 0);
}
}
/**
* 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$4, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "AllowedValues" element
*/
public boolean isSetAllowedValues()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ALLOWEDVALUES$4) != 0;
}
}
/**
* 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$4, 0);
if (target == null)
{
target = (net.opengis.swe.x20.AllowedValuesType)get_store().add_element_user(ALLOWEDVALUES$4);
}
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$4);
return target;
}
}
/**
* Unsets the "AllowedValues" element
*/
public void unsetAllowedValues()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ALLOWEDVALUES$4, 0);
}
}
/**
* Gets the "ref" attribute
*/
public java.lang.String getRef()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REF$6);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "ref" attribute
*/
public net.opengis.sensorml.x20.DataComponentPathPropertyType xgetRef()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sensorml.x20.DataComponentPathPropertyType target = null;
target = (net.opengis.sensorml.x20.DataComponentPathPropertyType)get_store().find_attribute_user(REF$6);
return target;
}
}
/**
* Sets the "ref" attribute
*/
public void setRef(java.lang.String ref)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REF$6);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(REF$6);
}
target.setStringValue(ref);
}
}
/**
* Sets (as xml) the "ref" attribute
*/
public void xsetRef(net.opengis.sensorml.x20.DataComponentPathPropertyType ref)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.sensorml.x20.DataComponentPathPropertyType target = null;
target = (net.opengis.sensorml.x20.DataComponentPathPropertyType)get_store().find_attribute_user(REF$6);
if (target == null)
{
target = (net.opengis.sensorml.x20.DataComponentPathPropertyType)get_store().add_attribute_user(REF$6);
}
target.set(ref);
}
}
}