![JAR search and dependency download from the Maven repository](/logo.png)
org.openehr.schemas.v1.impl.OBSERVATIONImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xml-binding Show documentation
Show all versions of xml-binding Show documentation
Java implementation of openEHR RM XML Data Binding Component
The newest version!
/*
* XML Type: OBSERVATION
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.OBSERVATION
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML OBSERVATION(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class OBSERVATIONImpl extends org.openehr.schemas.v1.impl.CAREENTRYImpl implements org.openehr.schemas.v1.OBSERVATION
{
private static final long serialVersionUID = 1L;
public OBSERVATIONImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName DATA$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "data");
private static final javax.xml.namespace.QName STATE$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "state");
/**
* Gets the "data" element
*/
public org.openehr.schemas.v1.HISTORY getData()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.HISTORY target = null;
target = (org.openehr.schemas.v1.HISTORY)get_store().find_element_user(DATA$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "data" element
*/
public void setData(org.openehr.schemas.v1.HISTORY data)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.HISTORY target = null;
target = (org.openehr.schemas.v1.HISTORY)get_store().find_element_user(DATA$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.HISTORY)get_store().add_element_user(DATA$0);
}
target.set(data);
}
}
/**
* Appends and returns a new empty "data" element
*/
public org.openehr.schemas.v1.HISTORY addNewData()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.HISTORY target = null;
target = (org.openehr.schemas.v1.HISTORY)get_store().add_element_user(DATA$0);
return target;
}
}
/**
* Gets the "state" element
*/
public org.openehr.schemas.v1.HISTORY getState()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.HISTORY target = null;
target = (org.openehr.schemas.v1.HISTORY)get_store().find_element_user(STATE$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "state" element
*/
public boolean isSetState()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(STATE$2) != 0;
}
}
/**
* Sets the "state" element
*/
public void setState(org.openehr.schemas.v1.HISTORY state)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.HISTORY target = null;
target = (org.openehr.schemas.v1.HISTORY)get_store().find_element_user(STATE$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.HISTORY)get_store().add_element_user(STATE$2);
}
target.set(state);
}
}
/**
* Appends and returns a new empty "state" element
*/
public org.openehr.schemas.v1.HISTORY addNewState()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.HISTORY target = null;
target = (org.openehr.schemas.v1.HISTORY)get_store().add_element_user(STATE$2);
return target;
}
}
/**
* Unsets the "state" element
*/
public void unsetState()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(STATE$2, 0);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy