org.openehr.schemas.v1.impl.CDVSTATEImpl Maven / Gradle / Ivy
/*
* XML Type: C_DV_STATE
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.CDVSTATE
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML C_DV_STATE(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class CDVSTATEImpl extends org.openehr.schemas.v1.impl.CDOMAINTYPEImpl implements org.openehr.schemas.v1.CDVSTATE
{
private static final long serialVersionUID = 1L;
public CDVSTATEImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ASSUMEDVALUE$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "assumed_value");
private static final javax.xml.namespace.QName VALUE$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "value");
/**
* Gets the "assumed_value" element
*/
public org.openehr.schemas.v1.DVSTATE getAssumedValue()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVSTATE target = null;
target = (org.openehr.schemas.v1.DVSTATE)get_store().find_element_user(ASSUMEDVALUE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "assumed_value" element
*/
public boolean isSetAssumedValue()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ASSUMEDVALUE$0) != 0;
}
}
/**
* Sets the "assumed_value" element
*/
public void setAssumedValue(org.openehr.schemas.v1.DVSTATE assumedValue)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVSTATE target = null;
target = (org.openehr.schemas.v1.DVSTATE)get_store().find_element_user(ASSUMEDVALUE$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVSTATE)get_store().add_element_user(ASSUMEDVALUE$0);
}
target.set(assumedValue);
}
}
/**
* Appends and returns a new empty "assumed_value" element
*/
public org.openehr.schemas.v1.DVSTATE addNewAssumedValue()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVSTATE target = null;
target = (org.openehr.schemas.v1.DVSTATE)get_store().add_element_user(ASSUMEDVALUE$0);
return target;
}
}
/**
* Unsets the "assumed_value" element
*/
public void unsetAssumedValue()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ASSUMEDVALUE$0, 0);
}
}
/**
* Gets the "value" element
*/
public org.openehr.schemas.v1.STATEMACHINE getValue()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.STATEMACHINE target = null;
target = (org.openehr.schemas.v1.STATEMACHINE)get_store().find_element_user(VALUE$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "value" element
*/
public void setValue(org.openehr.schemas.v1.STATEMACHINE value)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.STATEMACHINE target = null;
target = (org.openehr.schemas.v1.STATEMACHINE)get_store().find_element_user(VALUE$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.STATEMACHINE)get_store().add_element_user(VALUE$2);
}
target.set(value);
}
}
/**
* Appends and returns a new empty "value" element
*/
public org.openehr.schemas.v1.STATEMACHINE addNewValue()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.STATEMACHINE target = null;
target = (org.openehr.schemas.v1.STATEMACHINE)get_store().add_element_user(VALUE$2);
return target;
}
}
}