![JAR search and dependency download from the Maven repository](/logo.png)
openEHR.v1.template.impl.TextConstraintImpl 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: textConstraint
* Namespace: openEHR/v1/Template
* Java type: openEHR.v1.template.TextConstraint
*
* Automatically generated - do not modify.
*/
package openEHR.v1.template.impl;
/**
* An XML textConstraint(@openEHR/v1/Template).
*
* This is a complex type.
*/
public class TextConstraintImpl extends openEHR.v1.template.impl.ValueConstraintImpl implements openEHR.v1.template.TextConstraint
{
private static final long serialVersionUID = 1L;
public TextConstraintImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName TERMQUERYID$0 =
new javax.xml.namespace.QName("openEHR/v1/Template", "termQueryId");
private static final javax.xml.namespace.QName INCLUDEDVALUES$2 =
new javax.xml.namespace.QName("openEHR/v1/Template", "includedValues");
private static final javax.xml.namespace.QName EXCLUDEDVALUES$4 =
new javax.xml.namespace.QName("openEHR/v1/Template", "excludedValues");
private static final javax.xml.namespace.QName LIMITTOLIST$6 =
new javax.xml.namespace.QName("", "limitToList");
private static final javax.xml.namespace.QName ALLOWTERMINOLOGYLOOKUP$8 =
new javax.xml.namespace.QName("", "allowTerminologyLookUp");
/**
* Gets the "termQueryId" element
*/
public openEHR.v1.template.Binding getTermQueryId()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.Binding target = null;
target = (openEHR.v1.template.Binding)get_store().find_element_user(TERMQUERYID$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "termQueryId" element
*/
public boolean isSetTermQueryId()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(TERMQUERYID$0) != 0;
}
}
/**
* Sets the "termQueryId" element
*/
public void setTermQueryId(openEHR.v1.template.Binding termQueryId)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.Binding target = null;
target = (openEHR.v1.template.Binding)get_store().find_element_user(TERMQUERYID$0, 0);
if (target == null)
{
target = (openEHR.v1.template.Binding)get_store().add_element_user(TERMQUERYID$0);
}
target.set(termQueryId);
}
}
/**
* Appends and returns a new empty "termQueryId" element
*/
public openEHR.v1.template.Binding addNewTermQueryId()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.Binding target = null;
target = (openEHR.v1.template.Binding)get_store().add_element_user(TERMQUERYID$0);
return target;
}
}
/**
* Unsets the "termQueryId" element
*/
public void unsetTermQueryId()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(TERMQUERYID$0, 0);
}
}
/**
* Gets array of all "includedValues" elements
*/
public java.lang.String[] getIncludedValuesArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(INCLUDEDVALUES$2, 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 "includedValues" element
*/
public java.lang.String getIncludedValuesArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCLUDEDVALUES$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target.getStringValue();
}
}
/**
* Gets (as xml) array of all "includedValues" elements
*/
public org.apache.xmlbeans.XmlString[] xgetIncludedValuesArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(INCLUDEDVALUES$2, targetList);
org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets (as xml) ith "includedValues" element
*/
public org.apache.xmlbeans.XmlString xgetIncludedValuesArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(INCLUDEDVALUES$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return (org.apache.xmlbeans.XmlString)target;
}
}
/**
* Returns number of "includedValues" element
*/
public int sizeOfIncludedValuesArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(INCLUDEDVALUES$2);
}
}
/**
* Sets array of all "includedValues" element
*/
public void setIncludedValuesArray(java.lang.String[] includedValuesArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(includedValuesArray, INCLUDEDVALUES$2);
}
}
/**
* Sets ith "includedValues" element
*/
public void setIncludedValuesArray(int i, java.lang.String includedValues)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCLUDEDVALUES$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.setStringValue(includedValues);
}
}
/**
* Sets (as xml) array of all "includedValues" element
*/
public void xsetIncludedValuesArray(org.apache.xmlbeans.XmlString[]includedValuesArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(includedValuesArray, INCLUDEDVALUES$2);
}
}
/**
* Sets (as xml) ith "includedValues" element
*/
public void xsetIncludedValuesArray(int i, org.apache.xmlbeans.XmlString includedValues)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(INCLUDEDVALUES$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(includedValues);
}
}
/**
* Inserts the value as the ith "includedValues" element
*/
public void insertIncludedValues(int i, java.lang.String includedValues)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target =
(org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(INCLUDEDVALUES$2, i);
target.setStringValue(includedValues);
}
}
/**
* Appends the value as the last "includedValues" element
*/
public void addIncludedValues(java.lang.String includedValues)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INCLUDEDVALUES$2);
target.setStringValue(includedValues);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "includedValues" element
*/
public org.apache.xmlbeans.XmlString insertNewIncludedValues(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(INCLUDEDVALUES$2, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "includedValues" element
*/
public org.apache.xmlbeans.XmlString addNewIncludedValues()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(INCLUDEDVALUES$2);
return target;
}
}
/**
* Removes the ith "includedValues" element
*/
public void removeIncludedValues(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(INCLUDEDVALUES$2, i);
}
}
/**
* Gets array of all "excludedValues" elements
*/
public java.lang.String[] getExcludedValuesArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(EXCLUDEDVALUES$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 "excludedValues" element
*/
public java.lang.String getExcludedValuesArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EXCLUDEDVALUES$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target.getStringValue();
}
}
/**
* Gets (as xml) array of all "excludedValues" elements
*/
public org.apache.xmlbeans.XmlString[] xgetExcludedValuesArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(EXCLUDEDVALUES$4, targetList);
org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets (as xml) ith "excludedValues" element
*/
public org.apache.xmlbeans.XmlString xgetExcludedValuesArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(EXCLUDEDVALUES$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return (org.apache.xmlbeans.XmlString)target;
}
}
/**
* Returns number of "excludedValues" element
*/
public int sizeOfExcludedValuesArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(EXCLUDEDVALUES$4);
}
}
/**
* Sets array of all "excludedValues" element
*/
public void setExcludedValuesArray(java.lang.String[] excludedValuesArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(excludedValuesArray, EXCLUDEDVALUES$4);
}
}
/**
* Sets ith "excludedValues" element
*/
public void setExcludedValuesArray(int i, java.lang.String excludedValues)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(EXCLUDEDVALUES$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.setStringValue(excludedValues);
}
}
/**
* Sets (as xml) array of all "excludedValues" element
*/
public void xsetExcludedValuesArray(org.apache.xmlbeans.XmlString[]excludedValuesArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(excludedValuesArray, EXCLUDEDVALUES$4);
}
}
/**
* Sets (as xml) ith "excludedValues" element
*/
public void xsetExcludedValuesArray(int i, org.apache.xmlbeans.XmlString excludedValues)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(EXCLUDEDVALUES$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(excludedValues);
}
}
/**
* Inserts the value as the ith "excludedValues" element
*/
public void insertExcludedValues(int i, java.lang.String excludedValues)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target =
(org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(EXCLUDEDVALUES$4, i);
target.setStringValue(excludedValues);
}
}
/**
* Appends the value as the last "excludedValues" element
*/
public void addExcludedValues(java.lang.String excludedValues)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(EXCLUDEDVALUES$4);
target.setStringValue(excludedValues);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "excludedValues" element
*/
public org.apache.xmlbeans.XmlString insertNewExcludedValues(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(EXCLUDEDVALUES$4, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "excludedValues" element
*/
public org.apache.xmlbeans.XmlString addNewExcludedValues()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(EXCLUDEDVALUES$4);
return target;
}
}
/**
* Removes the ith "excludedValues" element
*/
public void removeExcludedValues(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(EXCLUDEDVALUES$4, i);
}
}
/**
* Gets the "limitToList" attribute
*/
public boolean getLimitToList()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LIMITTOLIST$6);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(LIMITTOLIST$6);
}
if (target == null)
{
return false;
}
return target.getBooleanValue();
}
}
/**
* Gets (as xml) the "limitToList" attribute
*/
public org.apache.xmlbeans.XmlBoolean xgetLimitToList()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(LIMITTOLIST$6);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(LIMITTOLIST$6);
}
return target;
}
}
/**
* True if has "limitToList" attribute
*/
public boolean isSetLimitToList()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(LIMITTOLIST$6) != null;
}
}
/**
* Sets the "limitToList" attribute
*/
public void setLimitToList(boolean limitToList)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LIMITTOLIST$6);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LIMITTOLIST$6);
}
target.setBooleanValue(limitToList);
}
}
/**
* Sets (as xml) the "limitToList" attribute
*/
public void xsetLimitToList(org.apache.xmlbeans.XmlBoolean limitToList)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(LIMITTOLIST$6);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(LIMITTOLIST$6);
}
target.set(limitToList);
}
}
/**
* Unsets the "limitToList" attribute
*/
public void unsetLimitToList()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(LIMITTOLIST$6);
}
}
/**
* Gets the "allowTerminologyLookUp" attribute
*/
public boolean getAllowTerminologyLookUp()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ALLOWTERMINOLOGYLOOKUP$8);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(ALLOWTERMINOLOGYLOOKUP$8);
}
if (target == null)
{
return false;
}
return target.getBooleanValue();
}
}
/**
* Gets (as xml) the "allowTerminologyLookUp" attribute
*/
public org.apache.xmlbeans.XmlBoolean xgetAllowTerminologyLookUp()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(ALLOWTERMINOLOGYLOOKUP$8);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(ALLOWTERMINOLOGYLOOKUP$8);
}
return target;
}
}
/**
* True if has "allowTerminologyLookUp" attribute
*/
public boolean isSetAllowTerminologyLookUp()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(ALLOWTERMINOLOGYLOOKUP$8) != null;
}
}
/**
* Sets the "allowTerminologyLookUp" attribute
*/
public void setAllowTerminologyLookUp(boolean allowTerminologyLookUp)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ALLOWTERMINOLOGYLOOKUP$8);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ALLOWTERMINOLOGYLOOKUP$8);
}
target.setBooleanValue(allowTerminologyLookUp);
}
}
/**
* Sets (as xml) the "allowTerminologyLookUp" attribute
*/
public void xsetAllowTerminologyLookUp(org.apache.xmlbeans.XmlBoolean allowTerminologyLookUp)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(ALLOWTERMINOLOGYLOOKUP$8);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(ALLOWTERMINOLOGYLOOKUP$8);
}
target.set(allowTerminologyLookUp);
}
}
/**
* Unsets the "allowTerminologyLookUp" attribute
*/
public void unsetAllowTerminologyLookUp()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(ALLOWTERMINOLOGYLOOKUP$8);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy