![JAR search and dependency download from the Maven repository](/logo.png)
openEHR.v1.template.impl.EVENTCONTEXTImpl 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: EVENT_CONTEXT
* Namespace: openEHR/v1/Template
* Java type: openEHR.v1.template.EVENTCONTEXT
*
* Automatically generated - do not modify.
*/
package openEHR.v1.template.impl;
/**
* An XML EVENT_CONTEXT(@openEHR/v1/Template).
*
* This is a complex type.
*/
public class EVENTCONTEXTImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements openEHR.v1.template.EVENTCONTEXT
{
private static final long serialVersionUID = 1L;
public EVENTCONTEXTImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName OTHERCONTEXT$0 =
new javax.xml.namespace.QName("openEHR/v1/Template", "OtherContext");
private static final javax.xml.namespace.QName PARTICIPATION$2 =
new javax.xml.namespace.QName("openEHR/v1/Template", "participation");
private static final javax.xml.namespace.QName ITEMS$4 =
new javax.xml.namespace.QName("openEHR/v1/Template", "Items");
private static final javax.xml.namespace.QName RULE$6 =
new javax.xml.namespace.QName("openEHR/v1/Template", "Rule");
private static final javax.xml.namespace.QName ANNOTATION$8 =
new javax.xml.namespace.QName("", "annotation");
/**
* Gets the "OtherContext" element
*/
public openEHR.v1.template.ITEMSTRUCTURE getOtherContext()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.ITEMSTRUCTURE target = null;
target = (openEHR.v1.template.ITEMSTRUCTURE)get_store().find_element_user(OTHERCONTEXT$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "OtherContext" element
*/
public boolean isSetOtherContext()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(OTHERCONTEXT$0) != 0;
}
}
/**
* Sets the "OtherContext" element
*/
public void setOtherContext(openEHR.v1.template.ITEMSTRUCTURE otherContext)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.ITEMSTRUCTURE target = null;
target = (openEHR.v1.template.ITEMSTRUCTURE)get_store().find_element_user(OTHERCONTEXT$0, 0);
if (target == null)
{
target = (openEHR.v1.template.ITEMSTRUCTURE)get_store().add_element_user(OTHERCONTEXT$0);
}
target.set(otherContext);
}
}
/**
* Appends and returns a new empty "OtherContext" element
*/
public openEHR.v1.template.ITEMSTRUCTURE addNewOtherContext()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.ITEMSTRUCTURE target = null;
target = (openEHR.v1.template.ITEMSTRUCTURE)get_store().add_element_user(OTHERCONTEXT$0);
return target;
}
}
/**
* Unsets the "OtherContext" element
*/
public void unsetOtherContext()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(OTHERCONTEXT$0, 0);
}
}
/**
* Gets array of all "participation" elements
*/
public openEHR.v1.template.PARTICIPATION[] getParticipationArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(PARTICIPATION$2, targetList);
openEHR.v1.template.PARTICIPATION[] result = new openEHR.v1.template.PARTICIPATION[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "participation" element
*/
public openEHR.v1.template.PARTICIPATION getParticipationArray(int i)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.PARTICIPATION target = null;
target = (openEHR.v1.template.PARTICIPATION)get_store().find_element_user(PARTICIPATION$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "participation" element
*/
public int sizeOfParticipationArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(PARTICIPATION$2);
}
}
/**
* Sets array of all "participation" element
*/
public void setParticipationArray(openEHR.v1.template.PARTICIPATION[] participationArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(participationArray, PARTICIPATION$2);
}
}
/**
* Sets ith "participation" element
*/
public void setParticipationArray(int i, openEHR.v1.template.PARTICIPATION participation)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.PARTICIPATION target = null;
target = (openEHR.v1.template.PARTICIPATION)get_store().find_element_user(PARTICIPATION$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(participation);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "participation" element
*/
public openEHR.v1.template.PARTICIPATION insertNewParticipation(int i)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.PARTICIPATION target = null;
target = (openEHR.v1.template.PARTICIPATION)get_store().insert_element_user(PARTICIPATION$2, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "participation" element
*/
public openEHR.v1.template.PARTICIPATION addNewParticipation()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.PARTICIPATION target = null;
target = (openEHR.v1.template.PARTICIPATION)get_store().add_element_user(PARTICIPATION$2);
return target;
}
}
/**
* Removes the ith "participation" element
*/
public void removeParticipation(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(PARTICIPATION$2, i);
}
}
/**
* Gets array of all "Items" elements
*/
public openEHR.v1.template.ITEM[] getItemsArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ITEMS$4, targetList);
openEHR.v1.template.ITEM[] result = new openEHR.v1.template.ITEM[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "Items" element
*/
public openEHR.v1.template.ITEM getItemsArray(int i)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.ITEM target = null;
target = (openEHR.v1.template.ITEM)get_store().find_element_user(ITEMS$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "Items" element
*/
public int sizeOfItemsArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ITEMS$4);
}
}
/**
* Sets array of all "Items" element
*/
public void setItemsArray(openEHR.v1.template.ITEM[] itemsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(itemsArray, ITEMS$4);
}
}
/**
* Sets ith "Items" element
*/
public void setItemsArray(int i, openEHR.v1.template.ITEM items)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.ITEM target = null;
target = (openEHR.v1.template.ITEM)get_store().find_element_user(ITEMS$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(items);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "Items" element
*/
public openEHR.v1.template.ITEM insertNewItems(int i)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.ITEM target = null;
target = (openEHR.v1.template.ITEM)get_store().insert_element_user(ITEMS$4, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "Items" element
*/
public openEHR.v1.template.ITEM addNewItems()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.ITEM target = null;
target = (openEHR.v1.template.ITEM)get_store().add_element_user(ITEMS$4);
return target;
}
}
/**
* Removes the ith "Items" element
*/
public void removeItems(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ITEMS$4, i);
}
}
/**
* Gets array of all "Rule" elements
*/
public openEHR.v1.template.Statement[] getRuleArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(RULE$6, targetList);
openEHR.v1.template.Statement[] result = new openEHR.v1.template.Statement[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "Rule" element
*/
public openEHR.v1.template.Statement getRuleArray(int i)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.Statement target = null;
target = (openEHR.v1.template.Statement)get_store().find_element_user(RULE$6, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "Rule" element
*/
public int sizeOfRuleArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(RULE$6);
}
}
/**
* Sets array of all "Rule" element
*/
public void setRuleArray(openEHR.v1.template.Statement[] ruleArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(ruleArray, RULE$6);
}
}
/**
* Sets ith "Rule" element
*/
public void setRuleArray(int i, openEHR.v1.template.Statement rule)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.Statement target = null;
target = (openEHR.v1.template.Statement)get_store().find_element_user(RULE$6, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(rule);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "Rule" element
*/
public openEHR.v1.template.Statement insertNewRule(int i)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.Statement target = null;
target = (openEHR.v1.template.Statement)get_store().insert_element_user(RULE$6, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "Rule" element
*/
public openEHR.v1.template.Statement addNewRule()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.Statement target = null;
target = (openEHR.v1.template.Statement)get_store().add_element_user(RULE$6);
return target;
}
}
/**
* Removes the ith "Rule" element
*/
public void removeRule(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(RULE$6, i);
}
}
/**
* Gets the "annotation" attribute
*/
public java.lang.String getAnnotation()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ANNOTATION$8);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "annotation" attribute
*/
public org.apache.xmlbeans.XmlString xgetAnnotation()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ANNOTATION$8);
return target;
}
}
/**
* True if has "annotation" attribute
*/
public boolean isSetAnnotation()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(ANNOTATION$8) != null;
}
}
/**
* Sets the "annotation" attribute
*/
public void setAnnotation(java.lang.String annotation)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ANNOTATION$8);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ANNOTATION$8);
}
target.setStringValue(annotation);
}
}
/**
* Sets (as xml) the "annotation" attribute
*/
public void xsetAnnotation(org.apache.xmlbeans.XmlString annotation)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ANNOTATION$8);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(ANNOTATION$8);
}
target.set(annotation);
}
}
/**
* Unsets the "annotation" attribute
*/
public void unsetAnnotation()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(ANNOTATION$8);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy