org.openehr.schemas.v1.impl.TRANSLATIONDETAILSImpl 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: TRANSLATION_DETAILS
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.TRANSLATIONDETAILS
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML TRANSLATION_DETAILS(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class TRANSLATIONDETAILSImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.TRANSLATIONDETAILS
{
private static final long serialVersionUID = 1L;
public TRANSLATIONDETAILSImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName LANGUAGE$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "language");
private static final javax.xml.namespace.QName AUTHOR$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "author");
private static final javax.xml.namespace.QName ACCREDITATION$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "accreditation");
private static final javax.xml.namespace.QName OTHERDETAILS$6 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "other_details");
/**
* Gets the "language" element
*/
public org.openehr.schemas.v1.CODEPHRASE getLanguage()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(LANGUAGE$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "language" element
*/
public void setLanguage(org.openehr.schemas.v1.CODEPHRASE language)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(LANGUAGE$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(LANGUAGE$0);
}
target.set(language);
}
}
/**
* Appends and returns a new empty "language" element
*/
public org.openehr.schemas.v1.CODEPHRASE addNewLanguage()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(LANGUAGE$0);
return target;
}
}
/**
* Gets array of all "author" elements
*/
public org.openehr.schemas.v1.StringDictionaryItem[] getAuthorArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(AUTHOR$2, targetList);
org.openehr.schemas.v1.StringDictionaryItem[] result = new org.openehr.schemas.v1.StringDictionaryItem[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "author" element
*/
public org.openehr.schemas.v1.StringDictionaryItem getAuthorArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.StringDictionaryItem target = null;
target = (org.openehr.schemas.v1.StringDictionaryItem)get_store().find_element_user(AUTHOR$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "author" element
*/
public int sizeOfAuthorArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(AUTHOR$2);
}
}
/**
* Sets array of all "author" element
*/
public void setAuthorArray(org.openehr.schemas.v1.StringDictionaryItem[] authorArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(authorArray, AUTHOR$2);
}
}
/**
* Sets ith "author" element
*/
public void setAuthorArray(int i, org.openehr.schemas.v1.StringDictionaryItem author)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.StringDictionaryItem target = null;
target = (org.openehr.schemas.v1.StringDictionaryItem)get_store().find_element_user(AUTHOR$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(author);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "author" element
*/
public org.openehr.schemas.v1.StringDictionaryItem insertNewAuthor(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.StringDictionaryItem target = null;
target = (org.openehr.schemas.v1.StringDictionaryItem)get_store().insert_element_user(AUTHOR$2, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "author" element
*/
public org.openehr.schemas.v1.StringDictionaryItem addNewAuthor()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.StringDictionaryItem target = null;
target = (org.openehr.schemas.v1.StringDictionaryItem)get_store().add_element_user(AUTHOR$2);
return target;
}
}
/**
* Removes the ith "author" element
*/
public void removeAuthor(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(AUTHOR$2, i);
}
}
/**
* Gets the "accreditation" element
*/
public java.lang.String getAccreditation()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCREDITATION$4, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "accreditation" element
*/
public org.apache.xmlbeans.XmlString xgetAccreditation()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCREDITATION$4, 0);
return target;
}
}
/**
* True if has "accreditation" element
*/
public boolean isSetAccreditation()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ACCREDITATION$4) != 0;
}
}
/**
* Sets the "accreditation" element
*/
public void setAccreditation(java.lang.String accreditation)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCREDITATION$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCREDITATION$4);
}
target.setStringValue(accreditation);
}
}
/**
* Sets (as xml) the "accreditation" element
*/
public void xsetAccreditation(org.apache.xmlbeans.XmlString accreditation)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCREDITATION$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ACCREDITATION$4);
}
target.set(accreditation);
}
}
/**
* Unsets the "accreditation" element
*/
public void unsetAccreditation()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ACCREDITATION$4, 0);
}
}
/**
* Gets array of all "other_details" elements
*/
public org.openehr.schemas.v1.StringDictionaryItem[] getOtherDetailsArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(OTHERDETAILS$6, targetList);
org.openehr.schemas.v1.StringDictionaryItem[] result = new org.openehr.schemas.v1.StringDictionaryItem[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "other_details" element
*/
public org.openehr.schemas.v1.StringDictionaryItem getOtherDetailsArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.StringDictionaryItem target = null;
target = (org.openehr.schemas.v1.StringDictionaryItem)get_store().find_element_user(OTHERDETAILS$6, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "other_details" element
*/
public int sizeOfOtherDetailsArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(OTHERDETAILS$6);
}
}
/**
* Sets array of all "other_details" element
*/
public void setOtherDetailsArray(org.openehr.schemas.v1.StringDictionaryItem[] otherDetailsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(otherDetailsArray, OTHERDETAILS$6);
}
}
/**
* Sets ith "other_details" element
*/
public void setOtherDetailsArray(int i, org.openehr.schemas.v1.StringDictionaryItem otherDetails)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.StringDictionaryItem target = null;
target = (org.openehr.schemas.v1.StringDictionaryItem)get_store().find_element_user(OTHERDETAILS$6, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(otherDetails);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "other_details" element
*/
public org.openehr.schemas.v1.StringDictionaryItem insertNewOtherDetails(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.StringDictionaryItem target = null;
target = (org.openehr.schemas.v1.StringDictionaryItem)get_store().insert_element_user(OTHERDETAILS$6, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "other_details" element
*/
public org.openehr.schemas.v1.StringDictionaryItem addNewOtherDetails()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.StringDictionaryItem target = null;
target = (org.openehr.schemas.v1.StringDictionaryItem)get_store().add_element_user(OTHERDETAILS$6);
return target;
}
}
/**
* Removes the ith "other_details" element
*/
public void removeOtherDetails(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(OTHERDETAILS$6, i);
}
}
}