
openEHR.v1.template.impl.MultipleConstraintImpl 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: multipleConstraint
* Namespace: openEHR/v1/Template
* Java type: openEHR.v1.template.MultipleConstraint
*
* Automatically generated - do not modify.
*/
package openEHR.v1.template.impl;
/**
* An XML multipleConstraint(@openEHR/v1/Template).
*
* This is a complex type.
*/
public class MultipleConstraintImpl extends openEHR.v1.template.impl.ValueConstraintImpl implements openEHR.v1.template.MultipleConstraint
{
private static final long serialVersionUID = 1L;
public MultipleConstraintImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName INCLUDEDTYPES$0 =
new javax.xml.namespace.QName("openEHR/v1/Template", "includedTypes");
/**
* Gets array of all "includedTypes" elements
*/
public java.lang.String[] getIncludedTypesArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(INCLUDEDTYPES$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 "includedTypes" element
*/
public java.lang.String getIncludedTypesArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCLUDEDTYPES$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target.getStringValue();
}
}
/**
* Gets (as xml) array of all "includedTypes" elements
*/
public org.apache.xmlbeans.XmlString[] xgetIncludedTypesArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(INCLUDEDTYPES$0, targetList);
org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets (as xml) ith "includedTypes" element
*/
public org.apache.xmlbeans.XmlString xgetIncludedTypesArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(INCLUDEDTYPES$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return (org.apache.xmlbeans.XmlString)target;
}
}
/**
* Returns number of "includedTypes" element
*/
public int sizeOfIncludedTypesArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(INCLUDEDTYPES$0);
}
}
/**
* Sets array of all "includedTypes" element
*/
public void setIncludedTypesArray(java.lang.String[] includedTypesArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(includedTypesArray, INCLUDEDTYPES$0);
}
}
/**
* Sets ith "includedTypes" element
*/
public void setIncludedTypesArray(int i, java.lang.String includedTypes)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCLUDEDTYPES$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.setStringValue(includedTypes);
}
}
/**
* Sets (as xml) array of all "includedTypes" element
*/
public void xsetIncludedTypesArray(org.apache.xmlbeans.XmlString[]includedTypesArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(includedTypesArray, INCLUDEDTYPES$0);
}
}
/**
* Sets (as xml) ith "includedTypes" element
*/
public void xsetIncludedTypesArray(int i, org.apache.xmlbeans.XmlString includedTypes)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(INCLUDEDTYPES$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(includedTypes);
}
}
/**
* Inserts the value as the ith "includedTypes" element
*/
public void insertIncludedTypes(int i, java.lang.String includedTypes)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target =
(org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(INCLUDEDTYPES$0, i);
target.setStringValue(includedTypes);
}
}
/**
* Appends the value as the last "includedTypes" element
*/
public void addIncludedTypes(java.lang.String includedTypes)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INCLUDEDTYPES$0);
target.setStringValue(includedTypes);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "includedTypes" element
*/
public org.apache.xmlbeans.XmlString insertNewIncludedTypes(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(INCLUDEDTYPES$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "includedTypes" element
*/
public org.apache.xmlbeans.XmlString addNewIncludedTypes()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(INCLUDEDTYPES$0);
return target;
}
}
/**
* Removes the ith "includedTypes" element
*/
public void removeIncludedTypes(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(INCLUDEDTYPES$0, i);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy