org.openehr.schemas.v1.impl.COMPOSITIONImpl 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: COMPOSITION
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.COMPOSITION
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML COMPOSITION(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class COMPOSITIONImpl extends org.openehr.schemas.v1.impl.LOCATABLEImpl implements org.openehr.schemas.v1.COMPOSITION
{
private static final long serialVersionUID = 1L;
public COMPOSITIONImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName LANGUAGE$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "language");
private static final javax.xml.namespace.QName TERRITORY$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "territory");
private static final javax.xml.namespace.QName CATEGORY$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "category");
private static final javax.xml.namespace.QName COMPOSER$6 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "composer");
private static final javax.xml.namespace.QName CONTEXT$8 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "context");
private static final javax.xml.namespace.QName CONTENT$10 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "content");
/**
* Gets the "language" element
*/
public org.openehr.schemas.v1.CODEPHRASE getLanguage()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(LANGUAGE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "language" element
*/
public void setLanguage(org.openehr.schemas.v1.CODEPHRASE language)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(LANGUAGE$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(LANGUAGE$0);
}
target.set(language);
}
}
/**
* Appends and returns a new empty "language" element
*/
public org.openehr.schemas.v1.CODEPHRASE addNewLanguage()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(LANGUAGE$0);
return target;
}
}
/**
* Gets the "territory" element
*/
public org.openehr.schemas.v1.CODEPHRASE getTerritory()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(TERRITORY$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "territory" element
*/
public void setTerritory(org.openehr.schemas.v1.CODEPHRASE territory)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(TERRITORY$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(TERRITORY$2);
}
target.set(territory);
}
}
/**
* Appends and returns a new empty "territory" element
*/
public org.openehr.schemas.v1.CODEPHRASE addNewTerritory()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(TERRITORY$2);
return target;
}
}
/**
* Gets the "category" element
*/
public org.openehr.schemas.v1.DVCODEDTEXT getCategory()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(CATEGORY$4, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "category" element
*/
public void setCategory(org.openehr.schemas.v1.DVCODEDTEXT category)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(CATEGORY$4, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(CATEGORY$4);
}
target.set(category);
}
}
/**
* Appends and returns a new empty "category" element
*/
public org.openehr.schemas.v1.DVCODEDTEXT addNewCategory()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(CATEGORY$4);
return target;
}
}
/**
* Gets the "composer" element
*/
public org.openehr.schemas.v1.PARTYPROXY getComposer()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.PARTYPROXY target = null;
target = (org.openehr.schemas.v1.PARTYPROXY)get_store().find_element_user(COMPOSER$6, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "composer" element
*/
public void setComposer(org.openehr.schemas.v1.PARTYPROXY composer)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.PARTYPROXY target = null;
target = (org.openehr.schemas.v1.PARTYPROXY)get_store().find_element_user(COMPOSER$6, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.PARTYPROXY)get_store().add_element_user(COMPOSER$6);
}
target.set(composer);
}
}
/**
* Appends and returns a new empty "composer" element
*/
public org.openehr.schemas.v1.PARTYPROXY addNewComposer()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.PARTYPROXY target = null;
target = (org.openehr.schemas.v1.PARTYPROXY)get_store().add_element_user(COMPOSER$6);
return target;
}
}
/**
* Gets the "context" element
*/
public org.openehr.schemas.v1.EVENTCONTEXT getContext()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EVENTCONTEXT target = null;
target = (org.openehr.schemas.v1.EVENTCONTEXT)get_store().find_element_user(CONTEXT$8, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "context" element
*/
public boolean isSetContext()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CONTEXT$8) != 0;
}
}
/**
* Sets the "context" element
*/
public void setContext(org.openehr.schemas.v1.EVENTCONTEXT context)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EVENTCONTEXT target = null;
target = (org.openehr.schemas.v1.EVENTCONTEXT)get_store().find_element_user(CONTEXT$8, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.EVENTCONTEXT)get_store().add_element_user(CONTEXT$8);
}
target.set(context);
}
}
/**
* Appends and returns a new empty "context" element
*/
public org.openehr.schemas.v1.EVENTCONTEXT addNewContext()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EVENTCONTEXT target = null;
target = (org.openehr.schemas.v1.EVENTCONTEXT)get_store().add_element_user(CONTEXT$8);
return target;
}
}
/**
* Unsets the "context" element
*/
public void unsetContext()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CONTEXT$8, 0);
}
}
/**
* Gets array of all "content" elements
*/
public org.openehr.schemas.v1.CONTENTITEM[] getContentArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(CONTENT$10, targetList);
org.openehr.schemas.v1.CONTENTITEM[] result = new org.openehr.schemas.v1.CONTENTITEM[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "content" element
*/
public org.openehr.schemas.v1.CONTENTITEM getContentArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CONTENTITEM target = null;
target = (org.openehr.schemas.v1.CONTENTITEM)get_store().find_element_user(CONTENT$10, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "content" element
*/
public int sizeOfContentArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CONTENT$10);
}
}
/**
* Sets array of all "content" element
*/
public void setContentArray(org.openehr.schemas.v1.CONTENTITEM[] contentArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(contentArray, CONTENT$10);
}
}
/**
* Sets ith "content" element
*/
public void setContentArray(int i, org.openehr.schemas.v1.CONTENTITEM content)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CONTENTITEM target = null;
target = (org.openehr.schemas.v1.CONTENTITEM)get_store().find_element_user(CONTENT$10, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(content);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "content" element
*/
public org.openehr.schemas.v1.CONTENTITEM insertNewContent(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CONTENTITEM target = null;
target = (org.openehr.schemas.v1.CONTENTITEM)get_store().insert_element_user(CONTENT$10, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "content" element
*/
public org.openehr.schemas.v1.CONTENTITEM addNewContent()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CONTENTITEM target = null;
target = (org.openehr.schemas.v1.CONTENTITEM)get_store().add_element_user(CONTENT$10);
return target;
}
}
/**
* Removes the ith "content" element
*/
public void removeContent(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CONTENT$10, i);
}
}
}