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.RESOURCEDESCRIPTIONITEMImpl Maven / Gradle / Ivy
/*
* XML Type: RESOURCE_DESCRIPTION_ITEM
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.RESOURCEDESCRIPTIONITEM
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML RESOURCE_DESCRIPTION_ITEM(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class RESOURCEDESCRIPTIONITEMImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.RESOURCEDESCRIPTIONITEM
{
private static final long serialVersionUID = 1L;
public RESOURCEDESCRIPTIONITEMImpl(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 PURPOSE$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "purpose");
private static final javax.xml.namespace.QName KEYWORDS$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "keywords");
private static final javax.xml.namespace.QName USE$6 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "use");
private static final javax.xml.namespace.QName MISUSE$8 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "misuse");
private static final javax.xml.namespace.QName COPYRIGHT$10 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "copyright");
private static final javax.xml.namespace.QName ORIGINALRESOURCEURI$12 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "original_resource_uri");
private static final javax.xml.namespace.QName OTHERDETAILS$14 =
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 the "purpose" element
*/
public java.lang.String getPurpose()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PURPOSE$2, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "purpose" element
*/
public org.apache.xmlbeans.XmlString xgetPurpose()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PURPOSE$2, 0);
return target;
}
}
/**
* Sets the "purpose" element
*/
public void setPurpose(java.lang.String purpose)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PURPOSE$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PURPOSE$2);
}
target.setStringValue(purpose);
}
}
/**
* Sets (as xml) the "purpose" element
*/
public void xsetPurpose(org.apache.xmlbeans.XmlString purpose)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PURPOSE$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PURPOSE$2);
}
target.set(purpose);
}
}
/**
* Gets array of all "keywords" elements
*/
public java.lang.String[] getKeywordsArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(KEYWORDS$4, targetList);
java.lang.String[] result = new java.lang.String[targetList.size()];
for (int i = 0, len = targetList.size() ; i < len ; i++)
result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();
return result;
}
}
/**
* Gets ith "keywords" element
*/
public java.lang.String getKeywordsArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEYWORDS$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target.getStringValue();
}
}
/**
* Gets (as xml) array of all "keywords" elements
*/
public org.apache.xmlbeans.XmlString[] xgetKeywordsArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(KEYWORDS$4, targetList);
org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets (as xml) ith "keywords" element
*/
public org.apache.xmlbeans.XmlString xgetKeywordsArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEYWORDS$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return (org.apache.xmlbeans.XmlString)target;
}
}
/**
* Returns number of "keywords" element
*/
public int sizeOfKeywordsArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(KEYWORDS$4);
}
}
/**
* Sets array of all "keywords" element
*/
public void setKeywordsArray(java.lang.String[] keywordsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(keywordsArray, KEYWORDS$4);
}
}
/**
* Sets ith "keywords" element
*/
public void setKeywordsArray(int i, java.lang.String keywords)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(KEYWORDS$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.setStringValue(keywords);
}
}
/**
* Sets (as xml) array of all "keywords" element
*/
public void xsetKeywordsArray(org.apache.xmlbeans.XmlString[]keywordsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(keywordsArray, KEYWORDS$4);
}
}
/**
* Sets (as xml) ith "keywords" element
*/
public void xsetKeywordsArray(int i, org.apache.xmlbeans.XmlString keywords)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(KEYWORDS$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(keywords);
}
}
/**
* Inserts the value as the ith "keywords" element
*/
public void insertKeywords(int i, java.lang.String keywords)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target =
(org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(KEYWORDS$4, i);
target.setStringValue(keywords);
}
}
/**
* Appends the value as the last "keywords" element
*/
public void addKeywords(java.lang.String keywords)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(KEYWORDS$4);
target.setStringValue(keywords);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "keywords" element
*/
public org.apache.xmlbeans.XmlString insertNewKeywords(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(KEYWORDS$4, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "keywords" element
*/
public org.apache.xmlbeans.XmlString addNewKeywords()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(KEYWORDS$4);
return target;
}
}
/**
* Removes the ith "keywords" element
*/
public void removeKeywords(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(KEYWORDS$4, i);
}
}
/**
* Gets the "use" element
*/
public java.lang.String getUse()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USE$6, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "use" element
*/
public org.apache.xmlbeans.XmlString xgetUse()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(USE$6, 0);
return target;
}
}
/**
* True if has "use" element
*/
public boolean isSetUse()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(USE$6) != 0;
}
}
/**
* Sets the "use" element
*/
public void setUse(java.lang.String use)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(USE$6, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(USE$6);
}
target.setStringValue(use);
}
}
/**
* Sets (as xml) the "use" element
*/
public void xsetUse(org.apache.xmlbeans.XmlString use)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(USE$6, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(USE$6);
}
target.set(use);
}
}
/**
* Unsets the "use" element
*/
public void unsetUse()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(USE$6, 0);
}
}
/**
* Gets the "misuse" element
*/
public java.lang.String getMisuse()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MISUSE$8, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "misuse" element
*/
public org.apache.xmlbeans.XmlString xgetMisuse()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MISUSE$8, 0);
return target;
}
}
/**
* True if has "misuse" element
*/
public boolean isSetMisuse()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(MISUSE$8) != 0;
}
}
/**
* Sets the "misuse" element
*/
public void setMisuse(java.lang.String misuse)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MISUSE$8, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MISUSE$8);
}
target.setStringValue(misuse);
}
}
/**
* Sets (as xml) the "misuse" element
*/
public void xsetMisuse(org.apache.xmlbeans.XmlString misuse)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(MISUSE$8, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(MISUSE$8);
}
target.set(misuse);
}
}
/**
* Unsets the "misuse" element
*/
public void unsetMisuse()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(MISUSE$8, 0);
}
}
/**
* Gets the "copyright" element
*/
public java.lang.String getCopyright()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COPYRIGHT$10, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "copyright" element
*/
public org.apache.xmlbeans.XmlString xgetCopyright()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(COPYRIGHT$10, 0);
return target;
}
}
/**
* True if has "copyright" element
*/
public boolean isSetCopyright()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(COPYRIGHT$10) != 0;
}
}
/**
* Sets the "copyright" element
*/
public void setCopyright(java.lang.String copyright)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(COPYRIGHT$10, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(COPYRIGHT$10);
}
target.setStringValue(copyright);
}
}
/**
* Sets (as xml) the "copyright" element
*/
public void xsetCopyright(org.apache.xmlbeans.XmlString copyright)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(COPYRIGHT$10, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(COPYRIGHT$10);
}
target.set(copyright);
}
}
/**
* Unsets the "copyright" element
*/
public void unsetCopyright()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(COPYRIGHT$10, 0);
}
}
/**
* Gets array of all "original_resource_uri" elements
*/
public org.openehr.schemas.v1.StringDictionaryItem[] getOriginalResourceUriArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ORIGINALRESOURCEURI$12, targetList);
org.openehr.schemas.v1.StringDictionaryItem[] result = new org.openehr.schemas.v1.StringDictionaryItem[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "original_resource_uri" element
*/
public org.openehr.schemas.v1.StringDictionaryItem getOriginalResourceUriArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.StringDictionaryItem target = null;
target = (org.openehr.schemas.v1.StringDictionaryItem)get_store().find_element_user(ORIGINALRESOURCEURI$12, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "original_resource_uri" element
*/
public int sizeOfOriginalResourceUriArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ORIGINALRESOURCEURI$12);
}
}
/**
* Sets array of all "original_resource_uri" element
*/
public void setOriginalResourceUriArray(org.openehr.schemas.v1.StringDictionaryItem[] originalResourceUriArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(originalResourceUriArray, ORIGINALRESOURCEURI$12);
}
}
/**
* Sets ith "original_resource_uri" element
*/
public void setOriginalResourceUriArray(int i, org.openehr.schemas.v1.StringDictionaryItem originalResourceUri)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.StringDictionaryItem target = null;
target = (org.openehr.schemas.v1.StringDictionaryItem)get_store().find_element_user(ORIGINALRESOURCEURI$12, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(originalResourceUri);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "original_resource_uri" element
*/
public org.openehr.schemas.v1.StringDictionaryItem insertNewOriginalResourceUri(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.StringDictionaryItem target = null;
target = (org.openehr.schemas.v1.StringDictionaryItem)get_store().insert_element_user(ORIGINALRESOURCEURI$12, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "original_resource_uri" element
*/
public org.openehr.schemas.v1.StringDictionaryItem addNewOriginalResourceUri()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.StringDictionaryItem target = null;
target = (org.openehr.schemas.v1.StringDictionaryItem)get_store().add_element_user(ORIGINALRESOURCEURI$12);
return target;
}
}
/**
* Removes the ith "original_resource_uri" element
*/
public void removeOriginalResourceUri(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ORIGINALRESOURCEURI$12, i);
}
}
/**
* 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$14, 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$14, 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$14);
}
}
/**
* Sets array of all "other_details" element
*/
public void setOtherDetailsArray(org.openehr.schemas.v1.StringDictionaryItem[] otherDetailsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(otherDetailsArray, OTHERDETAILS$14);
}
}
/**
* 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$14, 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$14, 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$14);
return target;
}
}
/**
* Removes the ith "other_details" element
*/
public void removeOtherDetails(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(OTHERDETAILS$14, i);
}
}
}