openEHR.v1.template.impl.ITEMImpl 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: ITEM
* Namespace: openEHR/v1/Template
* Java type: openEHR.v1.template.ITEM
*
* Automatically generated - do not modify.
*/
package openEHR.v1.template.impl;
/**
* An XML ITEM(@openEHR/v1/Template).
*
* This is a complex type.
*/
public class ITEMImpl extends openEHR.v1.template.impl.ArchetypedImpl implements openEHR.v1.template.ITEM
{
private static final long serialVersionUID = 1L;
public ITEMImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName RULE$0 =
new javax.xml.namespace.QName("openEHR/v1/Template", "Rule");
private static final javax.xml.namespace.QName NAMECONSTRAINT$2 =
new javax.xml.namespace.QName("openEHR/v1/Template", "nameConstraint");
private static final javax.xml.namespace.QName CONDITIONAL$4 =
new javax.xml.namespace.QName("openEHR/v1/Template", "Conditional");
private static final javax.xml.namespace.QName MAX$6 =
new javax.xml.namespace.QName("", "max");
private static final javax.xml.namespace.QName MIN$8 =
new javax.xml.namespace.QName("", "min");
private static final javax.xml.namespace.QName PATH$10 =
new javax.xml.namespace.QName("", "path");
private static final javax.xml.namespace.QName NAME$12 =
new javax.xml.namespace.QName("", "name");
private static final javax.xml.namespace.QName HIDEONFORM$14 =
new javax.xml.namespace.QName("", "hide_on_form");
private static final javax.xml.namespace.QName ANNOTATION$16 =
new javax.xml.namespace.QName("", "annotation");
/**
* Gets array of all "Rule" elements
*/
public openEHR.v1.template.Statement[] getRuleArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(RULE$0, targetList);
openEHR.v1.template.Statement[] result = new openEHR.v1.template.Statement[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "Rule" element
*/
public openEHR.v1.template.Statement getRuleArray(int i)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.Statement target = null;
target = (openEHR.v1.template.Statement)get_store().find_element_user(RULE$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "Rule" element
*/
public int sizeOfRuleArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(RULE$0);
}
}
/**
* Sets array of all "Rule" element
*/
public void setRuleArray(openEHR.v1.template.Statement[] ruleArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(ruleArray, RULE$0);
}
}
/**
* Sets ith "Rule" element
*/
public void setRuleArray(int i, openEHR.v1.template.Statement rule)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.Statement target = null;
target = (openEHR.v1.template.Statement)get_store().find_element_user(RULE$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(rule);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "Rule" element
*/
public openEHR.v1.template.Statement insertNewRule(int i)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.Statement target = null;
target = (openEHR.v1.template.Statement)get_store().insert_element_user(RULE$0, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "Rule" element
*/
public openEHR.v1.template.Statement addNewRule()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.Statement target = null;
target = (openEHR.v1.template.Statement)get_store().add_element_user(RULE$0);
return target;
}
}
/**
* Removes the ith "Rule" element
*/
public void removeRule(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(RULE$0, i);
}
}
/**
* Gets the "nameConstraint" element
*/
public openEHR.v1.template.TextConstraint getNameConstraint()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.TextConstraint target = null;
target = (openEHR.v1.template.TextConstraint)get_store().find_element_user(NAMECONSTRAINT$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "nameConstraint" element
*/
public boolean isSetNameConstraint()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(NAMECONSTRAINT$2) != 0;
}
}
/**
* Sets the "nameConstraint" element
*/
public void setNameConstraint(openEHR.v1.template.TextConstraint nameConstraint)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.TextConstraint target = null;
target = (openEHR.v1.template.TextConstraint)get_store().find_element_user(NAMECONSTRAINT$2, 0);
if (target == null)
{
target = (openEHR.v1.template.TextConstraint)get_store().add_element_user(NAMECONSTRAINT$2);
}
target.set(nameConstraint);
}
}
/**
* Appends and returns a new empty "nameConstraint" element
*/
public openEHR.v1.template.TextConstraint addNewNameConstraint()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.TextConstraint target = null;
target = (openEHR.v1.template.TextConstraint)get_store().add_element_user(NAMECONSTRAINT$2);
return target;
}
}
/**
* Unsets the "nameConstraint" element
*/
public void unsetNameConstraint()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(NAMECONSTRAINT$2, 0);
}
}
/**
* Gets the "Conditional" element
*/
public openEHR.v1.template.Condition getConditional()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.Condition target = null;
target = (openEHR.v1.template.Condition)get_store().find_element_user(CONDITIONAL$4, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "Conditional" element
*/
public boolean isSetConditional()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CONDITIONAL$4) != 0;
}
}
/**
* Sets the "Conditional" element
*/
public void setConditional(openEHR.v1.template.Condition conditional)
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.Condition target = null;
target = (openEHR.v1.template.Condition)get_store().find_element_user(CONDITIONAL$4, 0);
if (target == null)
{
target = (openEHR.v1.template.Condition)get_store().add_element_user(CONDITIONAL$4);
}
target.set(conditional);
}
}
/**
* Appends and returns a new empty "Conditional" element
*/
public openEHR.v1.template.Condition addNewConditional()
{
synchronized (monitor())
{
check_orphaned();
openEHR.v1.template.Condition target = null;
target = (openEHR.v1.template.Condition)get_store().add_element_user(CONDITIONAL$4);
return target;
}
}
/**
* Unsets the "Conditional" element
*/
public void unsetConditional()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CONDITIONAL$4, 0);
}
}
/**
* Gets the "max" attribute
*/
public java.math.BigInteger getMax()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MAX$6);
if (target == null)
{
return null;
}
return target.getBigIntegerValue();
}
}
/**
* Gets (as xml) the "max" attribute
*/
public org.apache.xmlbeans.XmlInteger xgetMax()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInteger target = null;
target = (org.apache.xmlbeans.XmlInteger)get_store().find_attribute_user(MAX$6);
return target;
}
}
/**
* True if has "max" attribute
*/
public boolean isSetMax()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(MAX$6) != null;
}
}
/**
* Sets the "max" attribute
*/
public void setMax(java.math.BigInteger max)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MAX$6);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MAX$6);
}
target.setBigIntegerValue(max);
}
}
/**
* Sets (as xml) the "max" attribute
*/
public void xsetMax(org.apache.xmlbeans.XmlInteger max)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInteger target = null;
target = (org.apache.xmlbeans.XmlInteger)get_store().find_attribute_user(MAX$6);
if (target == null)
{
target = (org.apache.xmlbeans.XmlInteger)get_store().add_attribute_user(MAX$6);
}
target.set(max);
}
}
/**
* Unsets the "max" attribute
*/
public void unsetMax()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(MAX$6);
}
}
/**
* Gets the "min" attribute
*/
public java.math.BigInteger getMin()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MIN$8);
if (target == null)
{
return null;
}
return target.getBigIntegerValue();
}
}
/**
* Gets (as xml) the "min" attribute
*/
public org.apache.xmlbeans.XmlInteger xgetMin()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInteger target = null;
target = (org.apache.xmlbeans.XmlInteger)get_store().find_attribute_user(MIN$8);
return target;
}
}
/**
* True if has "min" attribute
*/
public boolean isSetMin()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(MIN$8) != null;
}
}
/**
* Sets the "min" attribute
*/
public void setMin(java.math.BigInteger min)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(MIN$8);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(MIN$8);
}
target.setBigIntegerValue(min);
}
}
/**
* Sets (as xml) the "min" attribute
*/
public void xsetMin(org.apache.xmlbeans.XmlInteger min)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInteger target = null;
target = (org.apache.xmlbeans.XmlInteger)get_store().find_attribute_user(MIN$8);
if (target == null)
{
target = (org.apache.xmlbeans.XmlInteger)get_store().add_attribute_user(MIN$8);
}
target.set(min);
}
}
/**
* Unsets the "min" attribute
*/
public void unsetMin()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(MIN$8);
}
}
/**
* Gets the "path" attribute
*/
public java.lang.String getPath()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PATH$10);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "path" attribute
*/
public org.apache.xmlbeans.XmlString xgetPath()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PATH$10);
return target;
}
}
/**
* True if has "path" attribute
*/
public boolean isSetPath()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(PATH$10) != null;
}
}
/**
* Sets the "path" attribute
*/
public void setPath(java.lang.String path)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(PATH$10);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(PATH$10);
}
target.setStringValue(path);
}
}
/**
* Sets (as xml) the "path" attribute
*/
public void xsetPath(org.apache.xmlbeans.XmlString path)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(PATH$10);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(PATH$10);
}
target.set(path);
}
}
/**
* Unsets the "path" attribute
*/
public void unsetPath()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(PATH$10);
}
}
/**
* Gets the "name" attribute
*/
public java.lang.String getName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$12);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "name" attribute
*/
public org.apache.xmlbeans.XmlString xgetName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$12);
return target;
}
}
/**
* True if has "name" attribute
*/
public boolean isSetName()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(NAME$12) != null;
}
}
/**
* Sets the "name" attribute
*/
public void setName(java.lang.String name)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$12);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$12);
}
target.setStringValue(name);
}
}
/**
* Sets (as xml) the "name" attribute
*/
public void xsetName(org.apache.xmlbeans.XmlString name)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$12);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$12);
}
target.set(name);
}
}
/**
* Unsets the "name" attribute
*/
public void unsetName()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(NAME$12);
}
}
/**
* Gets the "hide_on_form" attribute
*/
public boolean getHideOnForm()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(HIDEONFORM$14);
if (target == null)
{
return false;
}
return target.getBooleanValue();
}
}
/**
* Gets (as xml) the "hide_on_form" attribute
*/
public org.apache.xmlbeans.XmlBoolean xgetHideOnForm()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(HIDEONFORM$14);
return target;
}
}
/**
* True if has "hide_on_form" attribute
*/
public boolean isSetHideOnForm()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(HIDEONFORM$14) != null;
}
}
/**
* Sets the "hide_on_form" attribute
*/
public void setHideOnForm(boolean hideOnForm)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(HIDEONFORM$14);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(HIDEONFORM$14);
}
target.setBooleanValue(hideOnForm);
}
}
/**
* Sets (as xml) the "hide_on_form" attribute
*/
public void xsetHideOnForm(org.apache.xmlbeans.XmlBoolean hideOnForm)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(HIDEONFORM$14);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(HIDEONFORM$14);
}
target.set(hideOnForm);
}
}
/**
* Unsets the "hide_on_form" attribute
*/
public void unsetHideOnForm()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(HIDEONFORM$14);
}
}
/**
* Gets the "annotation" attribute
*/
public java.lang.String getAnnotation()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ANNOTATION$16);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "annotation" attribute
*/
public org.apache.xmlbeans.XmlString xgetAnnotation()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ANNOTATION$16);
return target;
}
}
/**
* True if has "annotation" attribute
*/
public boolean isSetAnnotation()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(ANNOTATION$16) != null;
}
}
/**
* Sets the "annotation" attribute
*/
public void setAnnotation(java.lang.String annotation)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ANNOTATION$16);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ANNOTATION$16);
}
target.setStringValue(annotation);
}
}
/**
* Sets (as xml) the "annotation" attribute
*/
public void xsetAnnotation(org.apache.xmlbeans.XmlString annotation)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ANNOTATION$16);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(ANNOTATION$16);
}
target.set(annotation);
}
}
/**
* Unsets the "annotation" attribute
*/
public void unsetAnnotation()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(ANNOTATION$16);
}
}
}