org.openehr.schemas.v1.impl.INSTRUCTIONImpl 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: INSTRUCTION
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.INSTRUCTION
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML INSTRUCTION(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class INSTRUCTIONImpl extends org.openehr.schemas.v1.impl.CAREENTRYImpl implements org.openehr.schemas.v1.INSTRUCTION
{
private static final long serialVersionUID = 1L;
public INSTRUCTIONImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName NARRATIVE$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "narrative");
private static final javax.xml.namespace.QName EXPIRYTIME$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "expiry_time");
private static final javax.xml.namespace.QName WFDEFINITION$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "wf_definition");
private static final javax.xml.namespace.QName ACTIVITIES$6 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "activities");
/**
* Gets the "narrative" element
*/
public org.openehr.schemas.v1.DVTEXT getNarrative()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVTEXT target = null;
target = (org.openehr.schemas.v1.DVTEXT)get_store().find_element_user(NARRATIVE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "narrative" element
*/
public void setNarrative(org.openehr.schemas.v1.DVTEXT narrative)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVTEXT target = null;
target = (org.openehr.schemas.v1.DVTEXT)get_store().find_element_user(NARRATIVE$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVTEXT)get_store().add_element_user(NARRATIVE$0);
}
target.set(narrative);
}
}
/**
* Appends and returns a new empty "narrative" element
*/
public org.openehr.schemas.v1.DVTEXT addNewNarrative()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVTEXT target = null;
target = (org.openehr.schemas.v1.DVTEXT)get_store().add_element_user(NARRATIVE$0);
return target;
}
}
/**
* Gets the "expiry_time" element
*/
public org.openehr.schemas.v1.DVDATETIME getExpiryTime()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVDATETIME target = null;
target = (org.openehr.schemas.v1.DVDATETIME)get_store().find_element_user(EXPIRYTIME$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "expiry_time" element
*/
public boolean isSetExpiryTime()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(EXPIRYTIME$2) != 0;
}
}
/**
* Sets the "expiry_time" element
*/
public void setExpiryTime(org.openehr.schemas.v1.DVDATETIME expiryTime)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVDATETIME target = null;
target = (org.openehr.schemas.v1.DVDATETIME)get_store().find_element_user(EXPIRYTIME$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVDATETIME)get_store().add_element_user(EXPIRYTIME$2);
}
target.set(expiryTime);
}
}
/**
* Appends and returns a new empty "expiry_time" element
*/
public org.openehr.schemas.v1.DVDATETIME addNewExpiryTime()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVDATETIME target = null;
target = (org.openehr.schemas.v1.DVDATETIME)get_store().add_element_user(EXPIRYTIME$2);
return target;
}
}
/**
* Unsets the "expiry_time" element
*/
public void unsetExpiryTime()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(EXPIRYTIME$2, 0);
}
}
/**
* Gets the "wf_definition" element
*/
public org.openehr.schemas.v1.DVPARSABLE getWfDefinition()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVPARSABLE target = null;
target = (org.openehr.schemas.v1.DVPARSABLE)get_store().find_element_user(WFDEFINITION$4, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "wf_definition" element
*/
public boolean isSetWfDefinition()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(WFDEFINITION$4) != 0;
}
}
/**
* Sets the "wf_definition" element
*/
public void setWfDefinition(org.openehr.schemas.v1.DVPARSABLE wfDefinition)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVPARSABLE target = null;
target = (org.openehr.schemas.v1.DVPARSABLE)get_store().find_element_user(WFDEFINITION$4, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVPARSABLE)get_store().add_element_user(WFDEFINITION$4);
}
target.set(wfDefinition);
}
}
/**
* Appends and returns a new empty "wf_definition" element
*/
public org.openehr.schemas.v1.DVPARSABLE addNewWfDefinition()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVPARSABLE target = null;
target = (org.openehr.schemas.v1.DVPARSABLE)get_store().add_element_user(WFDEFINITION$4);
return target;
}
}
/**
* Unsets the "wf_definition" element
*/
public void unsetWfDefinition()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(WFDEFINITION$4, 0);
}
}
/**
* Gets array of all "activities" elements
*/
public org.openehr.schemas.v1.ACTIVITY[] getActivitiesArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ACTIVITIES$6, targetList);
org.openehr.schemas.v1.ACTIVITY[] result = new org.openehr.schemas.v1.ACTIVITY[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "activities" element
*/
public org.openehr.schemas.v1.ACTIVITY getActivitiesArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ACTIVITY target = null;
target = (org.openehr.schemas.v1.ACTIVITY)get_store().find_element_user(ACTIVITIES$6, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "activities" element
*/
public int sizeOfActivitiesArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ACTIVITIES$6);
}
}
/**
* Sets array of all "activities" element
*/
public void setActivitiesArray(org.openehr.schemas.v1.ACTIVITY[] activitiesArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(activitiesArray, ACTIVITIES$6);
}
}
/**
* Sets ith "activities" element
*/
public void setActivitiesArray(int i, org.openehr.schemas.v1.ACTIVITY activities)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ACTIVITY target = null;
target = (org.openehr.schemas.v1.ACTIVITY)get_store().find_element_user(ACTIVITIES$6, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(activities);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "activities" element
*/
public org.openehr.schemas.v1.ACTIVITY insertNewActivities(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ACTIVITY target = null;
target = (org.openehr.schemas.v1.ACTIVITY)get_store().insert_element_user(ACTIVITIES$6, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "activities" element
*/
public org.openehr.schemas.v1.ACTIVITY addNewActivities()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ACTIVITY target = null;
target = (org.openehr.schemas.v1.ACTIVITY)get_store().add_element_user(ACTIVITIES$6);
return target;
}
}
/**
* Removes the ith "activities" element
*/
public void removeActivities(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ACTIVITIES$6, i);
}
}
}