org.openehr.schemas.v1.impl.EXTRACTImpl 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: EXTRACT
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.EXTRACT
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML EXTRACT(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class EXTRACTImpl extends org.openehr.schemas.v1.impl.LOCATABLEImpl implements org.openehr.schemas.v1.EXTRACT
{
private static final long serialVersionUID = 1L;
public EXTRACTImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName REQUESTID$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "request_id");
private static final javax.xml.namespace.QName TIMECREATED$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "time_created");
private static final javax.xml.namespace.QName SYSTEMID$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "system_id");
private static final javax.xml.namespace.QName PARTICIPATIONS$6 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "participations");
private static final javax.xml.namespace.QName SEQUENCENR$8 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "sequence_nr");
private static final javax.xml.namespace.QName CHAPTERS$10 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "chapters");
private static final javax.xml.namespace.QName SPECIFICATION$12 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "specification");
/**
* Gets the "request_id" element
*/
public org.openehr.schemas.v1.OBJECTREF getRequestId()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTREF target = null;
target = (org.openehr.schemas.v1.OBJECTREF)get_store().find_element_user(REQUESTID$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "request_id" element
*/
public boolean isSetRequestId()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(REQUESTID$0) != 0;
}
}
/**
* Sets the "request_id" element
*/
public void setRequestId(org.openehr.schemas.v1.OBJECTREF requestId)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTREF target = null;
target = (org.openehr.schemas.v1.OBJECTREF)get_store().find_element_user(REQUESTID$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.OBJECTREF)get_store().add_element_user(REQUESTID$0);
}
target.set(requestId);
}
}
/**
* Appends and returns a new empty "request_id" element
*/
public org.openehr.schemas.v1.OBJECTREF addNewRequestId()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTREF target = null;
target = (org.openehr.schemas.v1.OBJECTREF)get_store().add_element_user(REQUESTID$0);
return target;
}
}
/**
* Unsets the "request_id" element
*/
public void unsetRequestId()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(REQUESTID$0, 0);
}
}
/**
* Gets the "time_created" element
*/
public org.openehr.schemas.v1.DVDATETIME getTimeCreated()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVDATETIME target = null;
target = (org.openehr.schemas.v1.DVDATETIME)get_store().find_element_user(TIMECREATED$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "time_created" element
*/
public void setTimeCreated(org.openehr.schemas.v1.DVDATETIME timeCreated)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVDATETIME target = null;
target = (org.openehr.schemas.v1.DVDATETIME)get_store().find_element_user(TIMECREATED$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVDATETIME)get_store().add_element_user(TIMECREATED$2);
}
target.set(timeCreated);
}
}
/**
* Appends and returns a new empty "time_created" element
*/
public org.openehr.schemas.v1.DVDATETIME addNewTimeCreated()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVDATETIME target = null;
target = (org.openehr.schemas.v1.DVDATETIME)get_store().add_element_user(TIMECREATED$2);
return target;
}
}
/**
* Gets the "system_id" element
*/
public org.openehr.schemas.v1.HIEROBJECTID getSystemId()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.HIEROBJECTID target = null;
target = (org.openehr.schemas.v1.HIEROBJECTID)get_store().find_element_user(SYSTEMID$4, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "system_id" element
*/
public void setSystemId(org.openehr.schemas.v1.HIEROBJECTID systemId)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.HIEROBJECTID target = null;
target = (org.openehr.schemas.v1.HIEROBJECTID)get_store().find_element_user(SYSTEMID$4, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.HIEROBJECTID)get_store().add_element_user(SYSTEMID$4);
}
target.set(systemId);
}
}
/**
* Appends and returns a new empty "system_id" element
*/
public org.openehr.schemas.v1.HIEROBJECTID addNewSystemId()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.HIEROBJECTID target = null;
target = (org.openehr.schemas.v1.HIEROBJECTID)get_store().add_element_user(SYSTEMID$4);
return target;
}
}
/**
* 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$6, 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$6, 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$6);
}
}
/**
* Sets array of all "participations" element
*/
public void setParticipationsArray(org.openehr.schemas.v1.PARTICIPATION[] participationsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(participationsArray, PARTICIPATIONS$6);
}
}
/**
* 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$6, 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$6, 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$6);
return target;
}
}
/**
* Removes the ith "participations" element
*/
public void removeParticipations(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(PARTICIPATIONS$6, i);
}
}
/**
* Gets the "sequence_nr" element
*/
public long getSequenceNr()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SEQUENCENR$8, 0);
if (target == null)
{
return 0L;
}
return target.getLongValue();
}
}
/**
* Gets (as xml) the "sequence_nr" element
*/
public org.apache.xmlbeans.XmlLong xgetSequenceNr()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlLong target = null;
target = (org.apache.xmlbeans.XmlLong)get_store().find_element_user(SEQUENCENR$8, 0);
return target;
}
}
/**
* Sets the "sequence_nr" element
*/
public void setSequenceNr(long sequenceNr)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SEQUENCENR$8, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SEQUENCENR$8);
}
target.setLongValue(sequenceNr);
}
}
/**
* Sets (as xml) the "sequence_nr" element
*/
public void xsetSequenceNr(org.apache.xmlbeans.XmlLong sequenceNr)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlLong target = null;
target = (org.apache.xmlbeans.XmlLong)get_store().find_element_user(SEQUENCENR$8, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlLong)get_store().add_element_user(SEQUENCENR$8);
}
target.set(sequenceNr);
}
}
/**
* Gets array of all "chapters" elements
*/
public org.openehr.schemas.v1.EXTRACTCHAPTER[] getChaptersArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(CHAPTERS$10, targetList);
org.openehr.schemas.v1.EXTRACTCHAPTER[] result = new org.openehr.schemas.v1.EXTRACTCHAPTER[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "chapters" element
*/
public org.openehr.schemas.v1.EXTRACTCHAPTER getChaptersArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXTRACTCHAPTER target = null;
target = (org.openehr.schemas.v1.EXTRACTCHAPTER)get_store().find_element_user(CHAPTERS$10, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "chapters" element
*/
public int sizeOfChaptersArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CHAPTERS$10);
}
}
/**
* Sets array of all "chapters" element
*/
public void setChaptersArray(org.openehr.schemas.v1.EXTRACTCHAPTER[] chaptersArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(chaptersArray, CHAPTERS$10);
}
}
/**
* Sets ith "chapters" element
*/
public void setChaptersArray(int i, org.openehr.schemas.v1.EXTRACTCHAPTER chapters)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXTRACTCHAPTER target = null;
target = (org.openehr.schemas.v1.EXTRACTCHAPTER)get_store().find_element_user(CHAPTERS$10, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(chapters);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "chapters" element
*/
public org.openehr.schemas.v1.EXTRACTCHAPTER insertNewChapters(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXTRACTCHAPTER target = null;
target = (org.openehr.schemas.v1.EXTRACTCHAPTER)get_store().insert_element_user(CHAPTERS$10, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "chapters" element
*/
public org.openehr.schemas.v1.EXTRACTCHAPTER addNewChapters()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXTRACTCHAPTER target = null;
target = (org.openehr.schemas.v1.EXTRACTCHAPTER)get_store().add_element_user(CHAPTERS$10);
return target;
}
}
/**
* Removes the ith "chapters" element
*/
public void removeChapters(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CHAPTERS$10, i);
}
}
/**
* Gets the "specification" element
*/
public org.openehr.schemas.v1.EXTRACTSPEC getSpecification()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXTRACTSPEC target = null;
target = (org.openehr.schemas.v1.EXTRACTSPEC)get_store().find_element_user(SPECIFICATION$12, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "specification" element
*/
public boolean isSetSpecification()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(SPECIFICATION$12) != 0;
}
}
/**
* Sets the "specification" element
*/
public void setSpecification(org.openehr.schemas.v1.EXTRACTSPEC specification)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXTRACTSPEC target = null;
target = (org.openehr.schemas.v1.EXTRACTSPEC)get_store().find_element_user(SPECIFICATION$12, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.EXTRACTSPEC)get_store().add_element_user(SPECIFICATION$12);
}
target.set(specification);
}
}
/**
* Appends and returns a new empty "specification" element
*/
public org.openehr.schemas.v1.EXTRACTSPEC addNewSpecification()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXTRACTSPEC target = null;
target = (org.openehr.schemas.v1.EXTRACTSPEC)get_store().add_element_user(SPECIFICATION$12);
return target;
}
}
/**
* Unsets the "specification" element
*/
public void unsetSpecification()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(SPECIFICATION$12, 0);
}
}
}