openEHR.v1.template.impl.OrdinalConstraintImpl 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: ordinalConstraint
* Namespace: openEHR/v1/Template
* Java type: openEHR.v1.template.OrdinalConstraint
*
* Automatically generated - do not modify.
*/
package openEHR.v1.template.impl;
/**
* An XML ordinalConstraint(@openEHR/v1/Template).
*
* This is a complex type.
*/
public class OrdinalConstraintImpl extends openEHR.v1.template.impl.ValueConstraintImpl implements openEHR.v1.template.OrdinalConstraint
{
private static final long serialVersionUID = 1L;
public OrdinalConstraintImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName INCLUDEDVALUES$0 =
new javax.xml.namespace.QName("openEHR/v1/Template", "includedValues");
private static final javax.xml.namespace.QName EXCLUDEDVALUES$2 =
new javax.xml.namespace.QName("openEHR/v1/Template", "excludedValues");
/**
* 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$0, 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$0, 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$0, 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$0, 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$0);
}
}
/**
* Sets array of all "includedValues" element
*/
public void setIncludedValuesArray(java.lang.String[] includedValuesArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(includedValuesArray, INCLUDEDVALUES$0);
}
}
/**
* 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$0, 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$0);
}
}
/**
* 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$0, 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$0, 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$0);
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$0, 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$0);
return target;
}
}
/**
* Removes the ith "includedValues" element
*/
public void removeIncludedValues(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(INCLUDEDVALUES$0, 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$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 "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$2, 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$2, 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$2, 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$2);
}
}
/**
* Sets array of all "excludedValues" element
*/
public void setExcludedValuesArray(java.lang.String[] excludedValuesArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(excludedValuesArray, EXCLUDEDVALUES$2);
}
}
/**
* 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$2, 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$2);
}
}
/**
* 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$2, 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$2, 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$2);
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$2, 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$2);
return target;
}
}
/**
* Removes the ith "excludedValues" element
*/
public void removeExcludedValues(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(EXCLUDEDVALUES$2, i);
}
}
}