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.DVTEXTImpl Maven / Gradle / Ivy
/*
* XML Type: DV_TEXT
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.DVTEXT
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML DV_TEXT(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class DVTEXTImpl extends org.openehr.schemas.v1.impl.DATAVALUEImpl implements org.openehr.schemas.v1.DVTEXT
{
private static final long serialVersionUID = 1L;
public DVTEXTImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName VALUE$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "value");
private static final javax.xml.namespace.QName HYPERLINK$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "hyperlink");
private static final javax.xml.namespace.QName FORMATTING$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "formatting");
private static final javax.xml.namespace.QName MAPPINGS$6 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "mappings");
private static final javax.xml.namespace.QName LANGUAGE$8 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "language");
private static final javax.xml.namespace.QName ENCODING$10 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "encoding");
/**
* Gets the "value" element
*/
public java.lang.String getValue()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "value" element
*/
public org.apache.xmlbeans.XmlString xgetValue()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALUE$0, 0);
return target;
}
}
/**
* Sets the "value" element
*/
public void setValue(java.lang.String value)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VALUE$0);
}
target.setStringValue(value);
}
}
/**
* Sets (as xml) the "value" element
*/
public void xsetValue(org.apache.xmlbeans.XmlString value)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(VALUE$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(VALUE$0);
}
target.set(value);
}
}
/**
* Gets the "hyperlink" element
*/
public org.openehr.schemas.v1.DVURI getHyperlink()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVURI target = null;
target = (org.openehr.schemas.v1.DVURI)get_store().find_element_user(HYPERLINK$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "hyperlink" element
*/
public boolean isSetHyperlink()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(HYPERLINK$2) != 0;
}
}
/**
* Sets the "hyperlink" element
*/
public void setHyperlink(org.openehr.schemas.v1.DVURI hyperlink)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVURI target = null;
target = (org.openehr.schemas.v1.DVURI)get_store().find_element_user(HYPERLINK$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVURI)get_store().add_element_user(HYPERLINK$2);
}
target.set(hyperlink);
}
}
/**
* Appends and returns a new empty "hyperlink" element
*/
public org.openehr.schemas.v1.DVURI addNewHyperlink()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVURI target = null;
target = (org.openehr.schemas.v1.DVURI)get_store().add_element_user(HYPERLINK$2);
return target;
}
}
/**
* Unsets the "hyperlink" element
*/
public void unsetHyperlink()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(HYPERLINK$2, 0);
}
}
/**
* Gets the "formatting" element
*/
public java.lang.String getFormatting()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FORMATTING$4, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "formatting" element
*/
public org.apache.xmlbeans.XmlString xgetFormatting()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FORMATTING$4, 0);
return target;
}
}
/**
* True if has "formatting" element
*/
public boolean isSetFormatting()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(FORMATTING$4) != 0;
}
}
/**
* Sets the "formatting" element
*/
public void setFormatting(java.lang.String formatting)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FORMATTING$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FORMATTING$4);
}
target.setStringValue(formatting);
}
}
/**
* Sets (as xml) the "formatting" element
*/
public void xsetFormatting(org.apache.xmlbeans.XmlString formatting)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FORMATTING$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(FORMATTING$4);
}
target.set(formatting);
}
}
/**
* Unsets the "formatting" element
*/
public void unsetFormatting()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(FORMATTING$4, 0);
}
}
/**
* Gets array of all "mappings" elements
*/
public org.openehr.schemas.v1.TERMMAPPING[] getMappingsArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(MAPPINGS$6, targetList);
org.openehr.schemas.v1.TERMMAPPING[] result = new org.openehr.schemas.v1.TERMMAPPING[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "mappings" element
*/
public org.openehr.schemas.v1.TERMMAPPING getMappingsArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.TERMMAPPING target = null;
target = (org.openehr.schemas.v1.TERMMAPPING)get_store().find_element_user(MAPPINGS$6, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "mappings" element
*/
public int sizeOfMappingsArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(MAPPINGS$6);
}
}
/**
* Sets array of all "mappings" element
*/
public void setMappingsArray(org.openehr.schemas.v1.TERMMAPPING[] mappingsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(mappingsArray, MAPPINGS$6);
}
}
/**
* Sets ith "mappings" element
*/
public void setMappingsArray(int i, org.openehr.schemas.v1.TERMMAPPING mappings)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.TERMMAPPING target = null;
target = (org.openehr.schemas.v1.TERMMAPPING)get_store().find_element_user(MAPPINGS$6, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(mappings);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "mappings" element
*/
public org.openehr.schemas.v1.TERMMAPPING insertNewMappings(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.TERMMAPPING target = null;
target = (org.openehr.schemas.v1.TERMMAPPING)get_store().insert_element_user(MAPPINGS$6, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "mappings" element
*/
public org.openehr.schemas.v1.TERMMAPPING addNewMappings()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.TERMMAPPING target = null;
target = (org.openehr.schemas.v1.TERMMAPPING)get_store().add_element_user(MAPPINGS$6);
return target;
}
}
/**
* Removes the ith "mappings" element
*/
public void removeMappings(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(MAPPINGS$6, i);
}
}
/**
* 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$8, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "language" element
*/
public boolean isSetLanguage()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(LANGUAGE$8) != 0;
}
}
/**
* 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$8, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(LANGUAGE$8);
}
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$8);
return target;
}
}
/**
* Unsets the "language" element
*/
public void unsetLanguage()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(LANGUAGE$8, 0);
}
}
/**
* Gets the "encoding" element
*/
public org.openehr.schemas.v1.CODEPHRASE getEncoding()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(ENCODING$10, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "encoding" element
*/
public boolean isSetEncoding()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ENCODING$10) != 0;
}
}
/**
* Sets the "encoding" element
*/
public void setEncoding(org.openehr.schemas.v1.CODEPHRASE encoding)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().find_element_user(ENCODING$10, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(ENCODING$10);
}
target.set(encoding);
}
}
/**
* Appends and returns a new empty "encoding" element
*/
public org.openehr.schemas.v1.CODEPHRASE addNewEncoding()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CODEPHRASE target = null;
target = (org.openehr.schemas.v1.CODEPHRASE)get_store().add_element_user(ENCODING$10);
return target;
}
}
/**
* Unsets the "encoding" element
*/
public void unsetEncoding()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ENCODING$10, 0);
}
}
}