![JAR search and dependency download from the Maven repository](/logo.png)
org.openehr.schemas.v1.impl.ConstraintBindingSetImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xml-binding Show documentation
Show all versions of xml-binding Show documentation
Java implementation of openEHR RM XML Data Binding Component
The newest version!
/*
* XML Type: ConstraintBindingSet
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.ConstraintBindingSet
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML ConstraintBindingSet(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class ConstraintBindingSetImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.ConstraintBindingSet
{
private static final long serialVersionUID = 1L;
public ConstraintBindingSetImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ITEMS$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "items");
private static final javax.xml.namespace.QName TERMINOLOGY$2 =
new javax.xml.namespace.QName("", "terminology");
/**
* Gets array of all "items" elements
*/
public org.openehr.schemas.v1.CONSTRAINTBINDINGITEM[] getItemsArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(ITEMS$0, targetList);
org.openehr.schemas.v1.CONSTRAINTBINDINGITEM[] result = new org.openehr.schemas.v1.CONSTRAINTBINDINGITEM[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "items" element
*/
public org.openehr.schemas.v1.CONSTRAINTBINDINGITEM getItemsArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CONSTRAINTBINDINGITEM target = null;
target = (org.openehr.schemas.v1.CONSTRAINTBINDINGITEM)get_store().find_element_user(ITEMS$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "items" element
*/
public int sizeOfItemsArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ITEMS$0);
}
}
/**
* Sets array of all "items" element
*/
public void setItemsArray(org.openehr.schemas.v1.CONSTRAINTBINDINGITEM[] itemsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(itemsArray, ITEMS$0);
}
}
/**
* Sets ith "items" element
*/
public void setItemsArray(int i, org.openehr.schemas.v1.CONSTRAINTBINDINGITEM items)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CONSTRAINTBINDINGITEM target = null;
target = (org.openehr.schemas.v1.CONSTRAINTBINDINGITEM)get_store().find_element_user(ITEMS$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(items);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "items" element
*/
public org.openehr.schemas.v1.CONSTRAINTBINDINGITEM insertNewItems(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CONSTRAINTBINDINGITEM target = null;
target = (org.openehr.schemas.v1.CONSTRAINTBINDINGITEM)get_store().insert_element_user(ITEMS$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "items" element
*/
public org.openehr.schemas.v1.CONSTRAINTBINDINGITEM addNewItems()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CONSTRAINTBINDINGITEM target = null;
target = (org.openehr.schemas.v1.CONSTRAINTBINDINGITEM)get_store().add_element_user(ITEMS$0);
return target;
}
}
/**
* Removes the ith "items" element
*/
public void removeItems(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ITEMS$0, i);
}
}
/**
* Gets the "terminology" attribute
*/
public java.lang.String getTerminology()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TERMINOLOGY$2);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "terminology" attribute
*/
public org.apache.xmlbeans.XmlString xgetTerminology()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TERMINOLOGY$2);
return target;
}
}
/**
* Sets the "terminology" attribute
*/
public void setTerminology(java.lang.String terminology)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TERMINOLOGY$2);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TERMINOLOGY$2);
}
target.setStringValue(terminology);
}
}
/**
* Sets (as xml) the "terminology" attribute
*/
public void xsetTerminology(org.apache.xmlbeans.XmlString terminology)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TERMINOLOGY$2);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(TERMINOLOGY$2);
}
target.set(terminology);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy