org.openehr.schemas.v1.impl.ELEMENTImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oet-parser Show documentation
Show all versions of oet-parser Show documentation
Java implementation of openEHR OET Template Parser and Flattener
The newest version!
/*
* XML Type: ELEMENT
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.ELEMENT
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML ELEMENT(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class ELEMENTImpl extends org.openehr.schemas.v1.impl.ITEMImpl implements org.openehr.schemas.v1.ELEMENT
{
private static final long serialVersionUID = 1L;
public ELEMENTImpl(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 NULLFLAVOUR$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "null_flavour");
/**
* Gets the "value" element
*/
public org.openehr.schemas.v1.DATAVALUE getValue()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DATAVALUE target = null;
target = (org.openehr.schemas.v1.DATAVALUE)get_store().find_element_user(VALUE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "value" element
*/
public boolean isSetValue()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(VALUE$0) != 0;
}
}
/**
* Sets the "value" element
*/
public void setValue(org.openehr.schemas.v1.DATAVALUE value)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DATAVALUE target = null;
target = (org.openehr.schemas.v1.DATAVALUE)get_store().find_element_user(VALUE$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DATAVALUE)get_store().add_element_user(VALUE$0);
}
target.set(value);
}
}
/**
* Appends and returns a new empty "value" element
*/
public org.openehr.schemas.v1.DATAVALUE addNewValue()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DATAVALUE target = null;
target = (org.openehr.schemas.v1.DATAVALUE)get_store().add_element_user(VALUE$0);
return target;
}
}
/**
* Unsets the "value" element
*/
public void unsetValue()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(VALUE$0, 0);
}
}
/**
* Gets the "null_flavour" element
*/
public org.openehr.schemas.v1.DVCODEDTEXT getNullFlavour()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(NULLFLAVOUR$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "null_flavour" element
*/
public boolean isSetNullFlavour()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(NULLFLAVOUR$2) != 0;
}
}
/**
* Sets the "null_flavour" element
*/
public void setNullFlavour(org.openehr.schemas.v1.DVCODEDTEXT nullFlavour)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(NULLFLAVOUR$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(NULLFLAVOUR$2);
}
target.set(nullFlavour);
}
}
/**
* Appends and returns a new empty "null_flavour" element
*/
public org.openehr.schemas.v1.DVCODEDTEXT addNewNullFlavour()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(NULLFLAVOUR$2);
return target;
}
}
/**
* Unsets the "null_flavour" element
*/
public void unsetNullFlavour()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(NULLFLAVOUR$2, 0);
}
}
}