org.openehr.schemas.v1.impl.TERMMAPPINGImpl 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: TERM_MAPPING
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.TERMMAPPING
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML TERM_MAPPING(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class TERMMAPPINGImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.TERMMAPPING
{
private static final long serialVersionUID = 1L;
public TERMMAPPINGImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName MATCH$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "match");
private static final javax.xml.namespace.QName PURPOSE$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "purpose");
private static final javax.xml.namespace.QName TARGET$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "target");
/**
* Gets the "match" element
*/
public java.lang.String getMatch()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MATCH$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "match" element
*/
public org.openehr.schemas.v1.MatchString xgetMatch()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.MatchString target = null;
target = (org.openehr.schemas.v1.MatchString)get_store().find_element_user(MATCH$0, 0);
return target;
}
}
/**
* Sets the "match" element
*/
public void setMatch(java.lang.String match)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MATCH$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MATCH$0);
}
target.setStringValue(match);
}
}
/**
* Sets (as xml) the "match" element
*/
public void xsetMatch(org.openehr.schemas.v1.MatchString match)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.MatchString target = null;
target = (org.openehr.schemas.v1.MatchString)get_store().find_element_user(MATCH$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.MatchString)get_store().add_element_user(MATCH$0);
}
target.set(match);
}
}
/**
* Gets the "purpose" element
*/
public org.openehr.schemas.v1.DVCODEDTEXT getPurpose()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(PURPOSE$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "purpose" element
*/
public boolean isSetPurpose()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(PURPOSE$2) != 0;
}
}
/**
* Sets the "purpose" element
*/
public void setPurpose(org.openehr.schemas.v1.DVCODEDTEXT purpose)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(PURPOSE$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(PURPOSE$2);
}
target.set(purpose);
}
}
/**
* Appends and returns a new empty "purpose" element
*/
public org.openehr.schemas.v1.DVCODEDTEXT addNewPurpose()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(PURPOSE$2);
return target;
}
}
/**
* Unsets the "purpose" element
*/
public void unsetPurpose()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(PURPOSE$2, 0);
}
}
/**
* Gets the "target" element
*/
public org.openehr.schemas.v1.CODEPHRASE getTarget()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(TARGET$4, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "target" element
*/
public void setTarget(org.openehr.schemas.v1.CODEPHRASE targetValue)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(TARGET$4, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(TARGET$4);
}
target.set(targetValue);
}
}
/**
* Appends and returns a new empty "target" element
*/
public org.openehr.schemas.v1.CODEPHRASE addNewTarget()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(TARGET$4);
return target;
}
}
}