net.opengis.swe.x101.impl.BooleanDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: Boolean
* Namespace: http://www.opengis.net/swe/1.0.1
* Java type: net.opengis.swe.x101.BooleanDocument
*
* Automatically generated - do not modify.
*/
package net.opengis.swe.x101.impl;
/**
* A document containing one Boolean(@http://www.opengis.net/swe/1.0.1) element.
*
* This is a complex type.
*/
public class BooleanDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.opengis.swe.x101.BooleanDocument
{
private static final long serialVersionUID = 1L;
public BooleanDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName BOOLEAN$0 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0.1", "Boolean");
/**
* Gets the "Boolean" element
*/
public net.opengis.swe.x101.BooleanDocument.Boolean getBoolean()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.BooleanDocument.Boolean target = null;
target = (net.opengis.swe.x101.BooleanDocument.Boolean)get_store().find_element_user(BOOLEAN$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "Boolean" element
*/
public void setBoolean(net.opengis.swe.x101.BooleanDocument.Boolean xboolean)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.BooleanDocument.Boolean target = null;
target = (net.opengis.swe.x101.BooleanDocument.Boolean)get_store().find_element_user(BOOLEAN$0, 0);
if (target == null)
{
target = (net.opengis.swe.x101.BooleanDocument.Boolean)get_store().add_element_user(BOOLEAN$0);
}
target.set(xboolean);
}
}
/**
* Appends and returns a new empty "Boolean" element
*/
public net.opengis.swe.x101.BooleanDocument.Boolean addNewBoolean()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.BooleanDocument.Boolean target = null;
target = (net.opengis.swe.x101.BooleanDocument.Boolean)get_store().add_element_user(BOOLEAN$0);
return target;
}
}
/**
* An XML Boolean(@http://www.opengis.net/swe/1.0.1).
*
* This is a complex type.
*/
public static class BooleanImpl extends net.opengis.swe.x101.impl.AbstractDataComponentTypeImpl implements net.opengis.swe.x101.BooleanDocument.Boolean
{
private static final long serialVersionUID = 1L;
public BooleanImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName QUALITY$0 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0.1", "quality");
private static final javax.xml.namespace.QName VALUE$2 =
new javax.xml.namespace.QName("http://www.opengis.net/swe/1.0.1", "value");
private static final javax.xml.namespace.QName REFERENCEFRAME$4 =
new javax.xml.namespace.QName("", "referenceFrame");
private static final javax.xml.namespace.QName AXISID$6 =
new javax.xml.namespace.QName("", "axisID");
/**
* Gets the "quality" element
*/
public net.opengis.swe.x101.QualityPropertyType getQuality()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.QualityPropertyType target = null;
target = (net.opengis.swe.x101.QualityPropertyType)get_store().find_element_user(QUALITY$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "quality" element
*/
public boolean isSetQuality()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(QUALITY$0) != 0;
}
}
/**
* Sets the "quality" element
*/
public void setQuality(net.opengis.swe.x101.QualityPropertyType quality)
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.QualityPropertyType target = null;
target = (net.opengis.swe.x101.QualityPropertyType)get_store().find_element_user(QUALITY$0, 0);
if (target == null)
{
target = (net.opengis.swe.x101.QualityPropertyType)get_store().add_element_user(QUALITY$0);
}
target.set(quality);
}
}
/**
* Appends and returns a new empty "quality" element
*/
public net.opengis.swe.x101.QualityPropertyType addNewQuality()
{
synchronized (monitor())
{
check_orphaned();
net.opengis.swe.x101.QualityPropertyType target = null;
target = (net.opengis.swe.x101.QualityPropertyType)get_store().add_element_user(QUALITY$0);
return target;
}
}
/**
* Unsets the "quality" element
*/
public void unsetQuality()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(QUALITY$0, 0);
}
}
/**
* Gets the "value" element
*/
public boolean getValue()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$2, 0);
if (target == null)
{
return false;
}
return target.getBooleanValue();
}
}
/**
* Gets (as xml) the "value" element
*/
public org.apache.xmlbeans.XmlBoolean xgetValue()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(VALUE$2, 0);
return target;
}
}
/**
* True if has "value" element
*/
public boolean isSetValue()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(VALUE$2) != 0;
}
}
/**
* Sets the "value" element
*/
public void setValue(boolean value)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VALUE$2);
}
target.setBooleanValue(value);
}
}
/**
* Sets (as xml) the "value" element
*/
public void xsetValue(org.apache.xmlbeans.XmlBoolean value)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(VALUE$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(VALUE$2);
}
target.set(value);
}
}
/**
* Unsets the "value" element
*/
public void unsetValue()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(VALUE$2, 0);
}
}
/**
* Gets the "referenceFrame" attribute
*/
public java.lang.String getReferenceFrame()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REFERENCEFRAME$4);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "referenceFrame" attribute
*/
public org.apache.xmlbeans.XmlAnyURI xgetReferenceFrame()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(REFERENCEFRAME$4);
return target;
}
}
/**
* True if has "referenceFrame" attribute
*/
public boolean isSetReferenceFrame()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(REFERENCEFRAME$4) != null;
}
}
/**
* Sets the "referenceFrame" attribute
*/
public void setReferenceFrame(java.lang.String referenceFrame)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(REFERENCEFRAME$4);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(REFERENCEFRAME$4);
}
target.setStringValue(referenceFrame);
}
}
/**
* Sets (as xml) the "referenceFrame" attribute
*/
public void xsetReferenceFrame(org.apache.xmlbeans.XmlAnyURI referenceFrame)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlAnyURI target = null;
target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(REFERENCEFRAME$4);
if (target == null)
{
target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_attribute_user(REFERENCEFRAME$4);
}
target.set(referenceFrame);
}
}
/**
* Unsets the "referenceFrame" attribute
*/
public void unsetReferenceFrame()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(REFERENCEFRAME$4);
}
}
/**
* Gets the "axisID" attribute
*/
public java.lang.String getAxisID()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(AXISID$6);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "axisID" attribute
*/
public org.apache.xmlbeans.XmlToken xgetAxisID()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlToken target = null;
target = (org.apache.xmlbeans.XmlToken)get_store().find_attribute_user(AXISID$6);
return target;
}
}
/**
* True if has "axisID" attribute
*/
public boolean isSetAxisID()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(AXISID$6) != null;
}
}
/**
* Sets the "axisID" attribute
*/
public void setAxisID(java.lang.String axisID)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(AXISID$6);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(AXISID$6);
}
target.setStringValue(axisID);
}
}
/**
* Sets (as xml) the "axisID" attribute
*/
public void xsetAxisID(org.apache.xmlbeans.XmlToken axisID)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlToken target = null;
target = (org.apache.xmlbeans.XmlToken)get_store().find_attribute_user(AXISID$6);
if (target == null)
{
target = (org.apache.xmlbeans.XmlToken)get_store().add_attribute_user(AXISID$6);
}
target.set(axisID);
}
}
/**
* Unsets the "axisID" attribute
*/
public void unsetAxisID()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(AXISID$6);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy