openEHR.v1.template.impl.DictionaryItemImpl 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: dictionaryItem
* Namespace: openEHR/v1/Template
* Java type: openEHR.v1.template.DictionaryItem
*
* Automatically generated - do not modify.
*/
package openEHR.v1.template.impl;
/**
* An XML dictionaryItem(@openEHR/v1/Template).
*
* This is a complex type.
*/
public class DictionaryItemImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements openEHR.v1.template.DictionaryItem
{
private static final long serialVersionUID = 1L;
public DictionaryItemImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName KEY$0 =
new javax.xml.namespace.QName("openEHR/v1/Template", "key");
private static final javax.xml.namespace.QName VALUE$2 =
new javax.xml.namespace.QName("openEHR/v1/Template", "value");
/**
* Gets the "key" element
*/
public java.lang.String getKey()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEY$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "key" element
*/
public org.apache.xmlbeans.XmlString xgetKey()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEY$0, 0);
return target;
}
}
/**
* Sets the "key" element
*/
public void setKey(java.lang.String key)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEY$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(KEY$0);
}
target.setStringValue(key);
}
}
/**
* Sets (as xml) the "key" element
*/
public void xsetKey(org.apache.xmlbeans.XmlString key)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEY$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(KEY$0);
}
target.set(key);
}
}
/**
* Gets the "value" element
*/
public java.lang.String getValue()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$2, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "value" element
*/
public org.apache.xmlbeans.XmlString xgetValue()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALUE$2, 0);
return target;
}
}
/**
* Sets the "value" element
*/
public void setValue(java.lang.String value)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VALUE$2);
}
target.setStringValue(value);
}
}
/**
* Sets (as xml) the "value" element
*/
public void xsetValue(org.apache.xmlbeans.XmlString value)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALUE$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(VALUE$2);
}
target.set(value);
}
}
}