org.openehr.schemas.v1.impl.DVBOOLEANImpl Maven / Gradle / Ivy
/*
* XML Type: DV_BOOLEAN
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.DVBOOLEAN
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML DV_BOOLEAN(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class DVBOOLEANImpl extends org.openehr.schemas.v1.impl.DATAVALUEImpl implements org.openehr.schemas.v1.DVBOOLEAN
{
private static final long serialVersionUID = 1L;
public DVBOOLEANImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName VALUE$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "value");
/**
* 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$0, 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$0, 0);
return target;
}
}
/**
* 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$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VALUE$0);
}
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$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(VALUE$0);
}
target.set(value);
}
}
}