All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.openehr.schemas.v1.impl.EVENTCONTEXTImpl Maven / Gradle / Ivy
/*
* XML Type: EVENT_CONTEXT
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.EVENTCONTEXT
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML EVENT_CONTEXT(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class EVENTCONTEXTImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.EVENTCONTEXT
{
private static final long serialVersionUID = 1L;
public EVENTCONTEXTImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName STARTTIME$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "start_time");
private static final javax.xml.namespace.QName ENDTIME$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "end_time");
private static final javax.xml.namespace.QName LOCATION$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "location");
private static final javax.xml.namespace.QName SETTING$6 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "setting");
private static final javax.xml.namespace.QName OTHERCONTEXT$8 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "other_context");
private static final javax.xml.namespace.QName HEALTHCAREFACILITY$10 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "health_care_facility");
private static final javax.xml.namespace.QName PARTICIPATIONS$12 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "participations");
/**
* Gets the "start_time" element
*/
public org.openehr.schemas.v1.DVDATETIME getStartTime()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVDATETIME target = null;
target = (org.openehr.schemas.v1.DVDATETIME)get_store().find_element_user(STARTTIME$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "start_time" element
*/
public void setStartTime(org.openehr.schemas.v1.DVDATETIME startTime)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVDATETIME target = null;
target = (org.openehr.schemas.v1.DVDATETIME)get_store().find_element_user(STARTTIME$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVDATETIME)get_store().add_element_user(STARTTIME$0);
}
target.set(startTime);
}
}
/**
* Appends and returns a new empty "start_time" element
*/
public org.openehr.schemas.v1.DVDATETIME addNewStartTime()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVDATETIME target = null;
target = (org.openehr.schemas.v1.DVDATETIME)get_store().add_element_user(STARTTIME$0);
return target;
}
}
/**
* Gets the "end_time" element
*/
public org.openehr.schemas.v1.DVDATETIME getEndTime()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVDATETIME target = null;
target = (org.openehr.schemas.v1.DVDATETIME)get_store().find_element_user(ENDTIME$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "end_time" element
*/
public boolean isSetEndTime()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ENDTIME$2) != 0;
}
}
/**
* Sets the "end_time" element
*/
public void setEndTime(org.openehr.schemas.v1.DVDATETIME endTime)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVDATETIME target = null;
target = (org.openehr.schemas.v1.DVDATETIME)get_store().find_element_user(ENDTIME$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVDATETIME)get_store().add_element_user(ENDTIME$2);
}
target.set(endTime);
}
}
/**
* Appends and returns a new empty "end_time" element
*/
public org.openehr.schemas.v1.DVDATETIME addNewEndTime()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVDATETIME target = null;
target = (org.openehr.schemas.v1.DVDATETIME)get_store().add_element_user(ENDTIME$2);
return target;
}
}
/**
* Unsets the "end_time" element
*/
public void unsetEndTime()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ENDTIME$2, 0);
}
}
/**
* Gets the "location" element
*/
public java.lang.String getLocation()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOCATION$4, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "location" element
*/
public org.apache.xmlbeans.XmlString xgetLocation()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LOCATION$4, 0);
return target;
}
}
/**
* True if has "location" element
*/
public boolean isSetLocation()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(LOCATION$4) != 0;
}
}
/**
* Sets the "location" element
*/
public void setLocation(java.lang.String location)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LOCATION$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LOCATION$4);
}
target.setStringValue(location);
}
}
/**
* Sets (as xml) the "location" element
*/
public void xsetLocation(org.apache.xmlbeans.XmlString location)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LOCATION$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(LOCATION$4);
}
target.set(location);
}
}
/**
* Unsets the "location" element
*/
public void unsetLocation()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(LOCATION$4, 0);
}
}
/**
* Gets the "setting" element
*/
public org.openehr.schemas.v1.DVCODEDTEXT getSetting()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(SETTING$6, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "setting" element
*/
public void setSetting(org.openehr.schemas.v1.DVCODEDTEXT setting)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(SETTING$6, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(SETTING$6);
}
target.set(setting);
}
}
/**
* Appends and returns a new empty "setting" element
*/
public org.openehr.schemas.v1.DVCODEDTEXT addNewSetting()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(SETTING$6);
return target;
}
}
/**
* Gets the "other_context" element
*/
public org.openehr.schemas.v1.ITEMSTRUCTURE getOtherContext()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().find_element_user(OTHERCONTEXT$8, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "other_context" element
*/
public boolean isSetOtherContext()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(OTHERCONTEXT$8) != 0;
}
}
/**
* Sets the "other_context" element
*/
public void setOtherContext(org.openehr.schemas.v1.ITEMSTRUCTURE otherContext)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().find_element_user(OTHERCONTEXT$8, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().add_element_user(OTHERCONTEXT$8);
}
target.set(otherContext);
}
}
/**
* Appends and returns a new empty "other_context" element
*/
public org.openehr.schemas.v1.ITEMSTRUCTURE addNewOtherContext()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().add_element_user(OTHERCONTEXT$8);
return target;
}
}
/**
* Unsets the "other_context" element
*/
public void unsetOtherContext()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(OTHERCONTEXT$8, 0);
}
}
/**
* Gets the "health_care_facility" element
*/
public org.openehr.schemas.v1.PARTYIDENTIFIED getHealthCareFacility()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.PARTYIDENTIFIED target = null;
target = (org.openehr.schemas.v1.PARTYIDENTIFIED)get_store().find_element_user(HEALTHCAREFACILITY$10, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "health_care_facility" element
*/
public boolean isSetHealthCareFacility()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(HEALTHCAREFACILITY$10) != 0;
}
}
/**
* Sets the "health_care_facility" element
*/
public void setHealthCareFacility(org.openehr.schemas.v1.PARTYIDENTIFIED healthCareFacility)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.PARTYIDENTIFIED target = null;
target = (org.openehr.schemas.v1.PARTYIDENTIFIED)get_store().find_element_user(HEALTHCAREFACILITY$10, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.PARTYIDENTIFIED)get_store().add_element_user(HEALTHCAREFACILITY$10);
}
target.set(healthCareFacility);
}
}
/**
* Appends and returns a new empty "health_care_facility" element
*/
public org.openehr.schemas.v1.PARTYIDENTIFIED addNewHealthCareFacility()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.PARTYIDENTIFIED target = null;
target = (org.openehr.schemas.v1.PARTYIDENTIFIED)get_store().add_element_user(HEALTHCAREFACILITY$10);
return target;
}
}
/**
* Unsets the "health_care_facility" element
*/
public void unsetHealthCareFacility()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(HEALTHCAREFACILITY$10, 0);
}
}
/**
* Gets array of all "participations" elements
*/
public org.openehr.schemas.v1.PARTICIPATION[] getParticipationsArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(PARTICIPATIONS$12, targetList);
org.openehr.schemas.v1.PARTICIPATION[] result = new org.openehr.schemas.v1.PARTICIPATION[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "participations" element
*/
public org.openehr.schemas.v1.PARTICIPATION getParticipationsArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.PARTICIPATION target = null;
target = (org.openehr.schemas.v1.PARTICIPATION)get_store().find_element_user(PARTICIPATIONS$12, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "participations" element
*/
public int sizeOfParticipationsArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(PARTICIPATIONS$12);
}
}
/**
* Sets array of all "participations" element
*/
public void setParticipationsArray(org.openehr.schemas.v1.PARTICIPATION[] participationsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(participationsArray, PARTICIPATIONS$12);
}
}
/**
* Sets ith "participations" element
*/
public void setParticipationsArray(int i, org.openehr.schemas.v1.PARTICIPATION participations)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.PARTICIPATION target = null;
target = (org.openehr.schemas.v1.PARTICIPATION)get_store().find_element_user(PARTICIPATIONS$12, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(participations);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "participations" element
*/
public org.openehr.schemas.v1.PARTICIPATION insertNewParticipations(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.PARTICIPATION target = null;
target = (org.openehr.schemas.v1.PARTICIPATION)get_store().insert_element_user(PARTICIPATIONS$12, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "participations" element
*/
public org.openehr.schemas.v1.PARTICIPATION addNewParticipations()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.PARTICIPATION target = null;
target = (org.openehr.schemas.v1.PARTICIPATION)get_store().add_element_user(PARTICIPATIONS$12);
return target;
}
}
/**
* Removes the ith "participations" element
*/
public void removeParticipations(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(PARTICIPATIONS$12, i);
}
}
}