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.ORIGINALVERSIONImpl Maven / Gradle / Ivy
/*
* XML Type: ORIGINAL_VERSION
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.ORIGINALVERSION
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML ORIGINAL_VERSION(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class ORIGINALVERSIONImpl extends org.openehr.schemas.v1.impl.VERSIONImpl implements org.openehr.schemas.v1.ORIGINALVERSION
{
private static final long serialVersionUID = 1L;
public ORIGINALVERSIONImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName UID$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "uid");
private static final javax.xml.namespace.QName DATA$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "data");
private static final javax.xml.namespace.QName PRECEDINGVERSIONUID$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "preceding_version_uid");
private static final javax.xml.namespace.QName OTHERINPUTVERSIONUIDS$6 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "other_input_version_uids");
private static final javax.xml.namespace.QName ATTESTATIONS$8 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "attestations");
private static final javax.xml.namespace.QName LIFECYCLESTATE$10 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "lifecycle_state");
/**
* Gets the "uid" element
*/
public org.openehr.schemas.v1.OBJECTVERSIONID getUid()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTVERSIONID target = null;
target = (org.openehr.schemas.v1.OBJECTVERSIONID)get_store().find_element_user(UID$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "uid" element
*/
public void setUid(org.openehr.schemas.v1.OBJECTVERSIONID uid)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTVERSIONID target = null;
target = (org.openehr.schemas.v1.OBJECTVERSIONID)get_store().find_element_user(UID$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.OBJECTVERSIONID)get_store().add_element_user(UID$0);
}
target.set(uid);
}
}
/**
* Appends and returns a new empty "uid" element
*/
public org.openehr.schemas.v1.OBJECTVERSIONID addNewUid()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTVERSIONID target = null;
target = (org.openehr.schemas.v1.OBJECTVERSIONID)get_store().add_element_user(UID$0);
return target;
}
}
/**
* Gets the "data" element
*/
public org.apache.xmlbeans.XmlObject getData()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlObject target = null;
target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(DATA$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "data" element
*/
public boolean isSetData()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(DATA$2) != 0;
}
}
/**
* Sets the "data" element
*/
public void setData(org.apache.xmlbeans.XmlObject data)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlObject target = null;
target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(DATA$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(DATA$2);
}
target.set(data);
}
}
/**
* Appends and returns a new empty "data" element
*/
public org.apache.xmlbeans.XmlObject addNewData()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlObject target = null;
target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(DATA$2);
return target;
}
}
/**
* Unsets the "data" element
*/
public void unsetData()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(DATA$2, 0);
}
}
/**
* Gets the "preceding_version_uid" element
*/
public org.openehr.schemas.v1.OBJECTVERSIONID getPrecedingVersionUid()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTVERSIONID target = null;
target = (org.openehr.schemas.v1.OBJECTVERSIONID)get_store().find_element_user(PRECEDINGVERSIONUID$4, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "preceding_version_uid" element
*/
public boolean isSetPrecedingVersionUid()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(PRECEDINGVERSIONUID$4) != 0;
}
}
/**
* Sets the "preceding_version_uid" element
*/
public void setPrecedingVersionUid(org.openehr.schemas.v1.OBJECTVERSIONID precedingVersionUid)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTVERSIONID target = null;
target = (org.openehr.schemas.v1.OBJECTVERSIONID)get_store().find_element_user(PRECEDINGVERSIONUID$4, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.OBJECTVERSIONID)get_store().add_element_user(PRECEDINGVERSIONUID$4);
}
target.set(precedingVersionUid);
}
}
/**
* Appends and returns a new empty "preceding_version_uid" element
*/
public org.openehr.schemas.v1.OBJECTVERSIONID addNewPrecedingVersionUid()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTVERSIONID target = null;
target = (org.openehr.schemas.v1.OBJECTVERSIONID)get_store().add_element_user(PRECEDINGVERSIONUID$4);
return target;
}
}
/**
* Unsets the "preceding_version_uid" element
*/
public void unsetPrecedingVersionUid()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(PRECEDINGVERSIONUID$4, 0);
}
}
/**
* Gets array of all "other_input_version_uids" elements
*/
public org.openehr.schemas.v1.OBJECTVERSIONID[] getOtherInputVersionUidsArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(OTHERINPUTVERSIONUIDS$6, targetList);
org.openehr.schemas.v1.OBJECTVERSIONID[] result = new org.openehr.schemas.v1.OBJECTVERSIONID[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "other_input_version_uids" element
*/
public org.openehr.schemas.v1.OBJECTVERSIONID getOtherInputVersionUidsArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTVERSIONID target = null;
target = (org.openehr.schemas.v1.OBJECTVERSIONID)get_store().find_element_user(OTHERINPUTVERSIONUIDS$6, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "other_input_version_uids" element
*/
public int sizeOfOtherInputVersionUidsArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(OTHERINPUTVERSIONUIDS$6);
}
}
/**
* Sets array of all "other_input_version_uids" element
*/
public void setOtherInputVersionUidsArray(org.openehr.schemas.v1.OBJECTVERSIONID[] otherInputVersionUidsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(otherInputVersionUidsArray, OTHERINPUTVERSIONUIDS$6);
}
}
/**
* Sets ith "other_input_version_uids" element
*/
public void setOtherInputVersionUidsArray(int i, org.openehr.schemas.v1.OBJECTVERSIONID otherInputVersionUids)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTVERSIONID target = null;
target = (org.openehr.schemas.v1.OBJECTVERSIONID)get_store().find_element_user(OTHERINPUTVERSIONUIDS$6, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(otherInputVersionUids);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "other_input_version_uids" element
*/
public org.openehr.schemas.v1.OBJECTVERSIONID insertNewOtherInputVersionUids(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTVERSIONID target = null;
target = (org.openehr.schemas.v1.OBJECTVERSIONID)get_store().insert_element_user(OTHERINPUTVERSIONUIDS$6, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "other_input_version_uids" element
*/
public org.openehr.schemas.v1.OBJECTVERSIONID addNewOtherInputVersionUids()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTVERSIONID target = null;
target = (org.openehr.schemas.v1.OBJECTVERSIONID)get_store().add_element_user(OTHERINPUTVERSIONUIDS$6);
return target;
}
}
/**
* Removes the ith "other_input_version_uids" element
*/
public void removeOtherInputVersionUids(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(OTHERINPUTVERSIONUIDS$6, i);
}
}
/**
* Gets array of all "attestations" elements
*/
public org.openehr.schemas.v1.ATTESTATION[] getAttestationsArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ATTESTATIONS$8, targetList);
org.openehr.schemas.v1.ATTESTATION[] result = new org.openehr.schemas.v1.ATTESTATION[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "attestations" element
*/
public org.openehr.schemas.v1.ATTESTATION getAttestationsArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ATTESTATION target = null;
target = (org.openehr.schemas.v1.ATTESTATION)get_store().find_element_user(ATTESTATIONS$8, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "attestations" element
*/
public int sizeOfAttestationsArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ATTESTATIONS$8);
}
}
/**
* Sets array of all "attestations" element
*/
public void setAttestationsArray(org.openehr.schemas.v1.ATTESTATION[] attestationsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(attestationsArray, ATTESTATIONS$8);
}
}
/**
* Sets ith "attestations" element
*/
public void setAttestationsArray(int i, org.openehr.schemas.v1.ATTESTATION attestations)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ATTESTATION target = null;
target = (org.openehr.schemas.v1.ATTESTATION)get_store().find_element_user(ATTESTATIONS$8, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(attestations);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "attestations" element
*/
public org.openehr.schemas.v1.ATTESTATION insertNewAttestations(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ATTESTATION target = null;
target = (org.openehr.schemas.v1.ATTESTATION)get_store().insert_element_user(ATTESTATIONS$8, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "attestations" element
*/
public org.openehr.schemas.v1.ATTESTATION addNewAttestations()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ATTESTATION target = null;
target = (org.openehr.schemas.v1.ATTESTATION)get_store().add_element_user(ATTESTATIONS$8);
return target;
}
}
/**
* Removes the ith "attestations" element
*/
public void removeAttestations(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ATTESTATIONS$8, i);
}
}
/**
* Gets the "lifecycle_state" element
*/
public org.openehr.schemas.v1.DVCODEDTEXT getLifecycleState()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(LIFECYCLESTATE$10, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "lifecycle_state" element
*/
public void setLifecycleState(org.openehr.schemas.v1.DVCODEDTEXT lifecycleState)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(LIFECYCLESTATE$10, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(LIFECYCLESTATE$10);
}
target.set(lifecycleState);
}
}
/**
* Appends and returns a new empty "lifecycle_state" element
*/
public org.openehr.schemas.v1.DVCODEDTEXT addNewLifecycleState()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(LIFECYCLESTATE$10);
return target;
}
}
}