net.opengis.sensorml.x20.impl.TermTypeImpl Maven / Gradle / Ivy
/*
* XML Type: TermType
* Namespace: http://www.opengis.net/sensorml/2.0
* Java type: net.opengis.sensorml.x20.TermType
*
* Automatically generated - do not modify.
*/
package net.opengis.sensorml.x20.impl;
/**
* An XML TermType(@http://www.opengis.net/sensorml/2.0).
*
* This is a complex type.
*/
public class TermTypeImpl extends net.opengis.swe.x20.impl.AbstractSWETypeImpl implements net.opengis.sensorml.x20.TermType
{
private static final long serialVersionUID = 1L;
public TermTypeImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName LABEL$0 =
new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "label");
private static final javax.xml.namespace.QName CODESPACE$2 =
new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "codeSpace");
private static final javax.xml.namespace.QName VALUE$4 =
new javax.xml.namespace.QName("http://www.opengis.net/sensorml/2.0", "value");
private static final javax.xml.namespace.QName DEFINITION$6 =
new javax.xml.namespace.QName("", "definition");
/**
* Gets the "label" element
*/
public java.lang.String getLabel()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LABEL$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "label" element
*/
public org.apache.xmlbeans.XmlString xgetLabel()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LABEL$0, 0);
return target;
}
}
/**
* Sets the "label" element
*/
public void setLabel(java.lang.String label)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LABEL$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LABEL$0);
}
target.setStringValue(label);
}
}
/**
* Sets (as xml) the "label" element
*/
public void xsetLabel(org.apache.xmlbeans.XmlString label)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LABEL$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(LABEL$0);
}
target.set(label);
}
}
/**
* Gets the "codeSpace" element
*/
public net.opengis.swe.x20.Reference getCodeSpace()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.Reference target = null;
target = (net.opengis.swe.x20.Reference)get_store().find_element_user(CODESPACE$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "codeSpace" element
*/
public boolean isSetCodeSpace()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CODESPACE$2) != 0;
}
}
/**
* Sets the "codeSpace" element
*/
public void setCodeSpace(net.opengis.swe.x20.Reference codeSpace)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.Reference target = null;
target = (net.opengis.swe.x20.Reference)get_store().find_element_user(CODESPACE$2, 0);
if (target == null)
{
target = (net.opengis.swe.x20.Reference)get_store().add_element_user(CODESPACE$2);
}
target.set(codeSpace);
}
}
/**
* Appends and returns a new empty "codeSpace" element
*/
public net.opengis.swe.x20.Reference addNewCodeSpace()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x20.Reference target = null;
target = (net.opengis.swe.x20.Reference)get_store().add_element_user(CODESPACE$2);
return target;
}
}
/**
* Unsets the "codeSpace" element
*/
public void unsetCodeSpace()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CODESPACE$2, 0);
}
}
/**
* Gets the "value" element
*/
public java.lang.String getValue()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$4, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "value" element
*/
public org.apache.xmlbeans.XmlString xgetValue()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALUE$4, 0);
return target;
}
}
/**
* Sets the "value" element
*/
public void setValue(java.lang.String value)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VALUE$4);
}
target.setStringValue(value);
}
}
/**
* Sets (as xml) the "value" element
*/
public void xsetValue(org.apache.xmlbeans.XmlString value)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALUE$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(VALUE$4);
}
target.set(value);
}
}
/**
* Gets the "definition" attribute
*/
public java.lang.String getDefinition()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DEFINITION$6);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "definition" attribute
*/
public org.apache.xmlbeans.XmlAnyURI xgetDefinition()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(DEFINITION$6);
return target;
}
}
/**
* True if has "definition" attribute
*/
public boolean isSetDefinition()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(DEFINITION$6) != null;
}
}
/**
* Sets the "definition" attribute
*/
public void setDefinition(java.lang.String definition)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DEFINITION$6);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DEFINITION$6);
}
target.setStringValue(definition);
}
}
/**
* Sets (as xml) the "definition" attribute
*/
public void xsetDefinition(org.apache.xmlbeans.XmlAnyURI definition)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(DEFINITION$6);
if (target == null)
{
target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_attribute_user(DEFINITION$6);
}
target.set(definition);
}
}
/**
* Unsets the "definition" attribute
*/
public void unsetDefinition()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(DEFINITION$6);
}
}
}