org.openehr.schemas.v1.impl.DVSTATEImpl Maven / Gradle / Ivy
/*
* XML Type: DV_STATE
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.DVSTATE
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML DV_STATE(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class DVSTATEImpl extends org.openehr.schemas.v1.impl.DATAVALUEImpl implements org.openehr.schemas.v1.DVSTATE
{
private static final long serialVersionUID = 1L;
public DVSTATEImpl(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");
private static final javax.xml.namespace.QName ISTERMINAL$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "is_terminal");
/**
* Gets the "value" element
*/
public org.openehr.schemas.v1.DVCODEDTEXT getValue()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(VALUE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "value" element
*/
public void setValue(org.openehr.schemas.v1.DVCODEDTEXT value)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(VALUE$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(VALUE$0);
}
target.set(value);
}
}
/**
* Appends and returns a new empty "value" element
*/
public org.openehr.schemas.v1.DVCODEDTEXT addNewValue()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(VALUE$0);
return target;
}
}
/**
* Gets the "is_terminal" element
*/
public boolean getIsTerminal()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ISTERMINAL$2, 0);
if (target == null)
{
return false;
}
return target.getBooleanValue();
}
}
/**
* Gets (as xml) the "is_terminal" element
*/
public org.apache.xmlbeans.XmlBoolean xgetIsTerminal()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ISTERMINAL$2, 0);
return target;
}
}
/**
* Sets the "is_terminal" element
*/
public void setIsTerminal(boolean isTerminal)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ISTERMINAL$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ISTERMINAL$2);
}
target.setBooleanValue(isTerminal);
}
}
/**
* Sets (as xml) the "is_terminal" element
*/
public void xsetIsTerminal(org.apache.xmlbeans.XmlBoolean isTerminal)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ISTERMINAL$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(ISTERMINAL$2);
}
target.set(isTerminal);
}
}
}