openEHR.v1.template.impl.TEMPLATEImpl 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: TEMPLATE
* Namespace: openEHR/v1/Template
* Java type: openEHR.v1.template.TEMPLATE
*
* Automatically generated - do not modify.
*/
package openEHR.v1.template.impl;
/**
* An XML TEMPLATE(@openEHR/v1/Template).
*
* This is a complex type.
*/
public class TEMPLATEImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements openEHR.v1.template.TEMPLATE
{
private static final long serialVersionUID = 1L;
public TEMPLATEImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ID$0 =
new javax.xml.namespace.QName("openEHR/v1/Template", "id");
private static final javax.xml.namespace.QName NAME$2 =
new javax.xml.namespace.QName("openEHR/v1/Template", "name");
private static final javax.xml.namespace.QName DESCRIPTION$4 =
new javax.xml.namespace.QName("openEHR/v1/Template", "description");
private static final javax.xml.namespace.QName DEFINITION$6 =
new javax.xml.namespace.QName("openEHR/v1/Template", "definition");
/**
* Gets the "id" element
*/
public java.lang.String getId()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ID$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "id" element
*/
public org.apache.xmlbeans.XmlString xgetId()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ID$0, 0);
return target;
}
}
/**
* Sets the "id" element
*/
public void setId(java.lang.String id)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ID$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ID$0);
}
target.setStringValue(id);
}
}
/**
* Sets (as xml) the "id" element
*/
public void xsetId(org.apache.xmlbeans.XmlString id)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ID$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ID$0);
}
target.set(id);
}
}
/**
* Gets the "name" element
*/
public java.lang.String getName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$2, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "name" element
*/
public org.apache.xmlbeans.XmlString xgetName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$2, 0);
return target;
}
}
/**
* Sets the "name" element
*/
public void setName(java.lang.String name)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$2);
}
target.setStringValue(name);
}
}
/**
* Sets (as xml) the "name" element
*/
public void xsetName(org.apache.xmlbeans.XmlString name)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$2);
}
target.set(name);
}
}
/**
* Gets the "description" element
*/
public openEHR.v1.template.RESOURCEDESCRIPTION getDescription()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.RESOURCEDESCRIPTION target = null;
target = (openEHR.v1.template.RESOURCEDESCRIPTION)get_store().find_element_user(DESCRIPTION$4, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "description" element
*/
public boolean isSetDescription()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(DESCRIPTION$4) != 0;
}
}
/**
* Sets the "description" element
*/
public void setDescription(openEHR.v1.template.RESOURCEDESCRIPTION description)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.RESOURCEDESCRIPTION target = null;
target = (openEHR.v1.template.RESOURCEDESCRIPTION)get_store().find_element_user(DESCRIPTION$4, 0);
if (target == null)
{
target = (openEHR.v1.template.RESOURCEDESCRIPTION)get_store().add_element_user(DESCRIPTION$4);
}
target.set(description);
}
}
/**
* Appends and returns a new empty "description" element
*/
public openEHR.v1.template.RESOURCEDESCRIPTION addNewDescription()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.RESOURCEDESCRIPTION target = null;
target = (openEHR.v1.template.RESOURCEDESCRIPTION)get_store().add_element_user(DESCRIPTION$4);
return target;
}
}
/**
* Unsets the "description" element
*/
public void unsetDescription()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(DESCRIPTION$4, 0);
}
}
/**
* Gets the "definition" element
*/
public openEHR.v1.template.Archetyped getDefinition()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.Archetyped target = null;
target = (openEHR.v1.template.Archetyped)get_store().find_element_user(DEFINITION$6, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "definition" element
*/
public void setDefinition(openEHR.v1.template.Archetyped definition)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.Archetyped target = null;
target = (openEHR.v1.template.Archetyped)get_store().find_element_user(DEFINITION$6, 0);
if (target == null)
{
target = (openEHR.v1.template.Archetyped)get_store().add_element_user(DEFINITION$6);
}
target.set(definition);
}
}
/**
* Appends and returns a new empty "definition" element
*/
public openEHR.v1.template.Archetyped addNewDefinition()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.Archetyped target = null;
target = (openEHR.v1.template.Archetyped)get_store().add_element_user(DEFINITION$6);
return target;
}
}
}