org.openehr.schemas.v1.impl.ASSERTIONImpl 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: ASSERTION
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.ASSERTION
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML ASSERTION(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class ASSERTIONImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.ASSERTION
{
private static final long serialVersionUID = 1L;
public ASSERTIONImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName TAG$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "tag");
private static final javax.xml.namespace.QName STRINGEXPRESSION$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "string_expression");
private static final javax.xml.namespace.QName EXPRESSION$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "expression");
private static final javax.xml.namespace.QName VARIABLES$6 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "variables");
/**
* Gets the "tag" element
*/
public java.lang.String getTag()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TAG$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "tag" element
*/
public org.apache.xmlbeans.XmlString xgetTag()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TAG$0, 0);
return target;
}
}
/**
* True if has "tag" element
*/
public boolean isSetTag()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(TAG$0) != 0;
}
}
/**
* Sets the "tag" element
*/
public void setTag(java.lang.String tag)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TAG$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TAG$0);
}
target.setStringValue(tag);
}
}
/**
* Sets (as xml) the "tag" element
*/
public void xsetTag(org.apache.xmlbeans.XmlString tag)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TAG$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(TAG$0);
}
target.set(tag);
}
}
/**
* Unsets the "tag" element
*/
public void unsetTag()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(TAG$0, 0);
}
}
/**
* Gets the "string_expression" element
*/
public java.lang.String getStringExpression()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STRINGEXPRESSION$2, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "string_expression" element
*/
public org.apache.xmlbeans.XmlString xgetStringExpression()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(STRINGEXPRESSION$2, 0);
return target;
}
}
/**
* True if has "string_expression" element
*/
public boolean isSetStringExpression()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(STRINGEXPRESSION$2) != 0;
}
}
/**
* Sets the "string_expression" element
*/
public void setStringExpression(java.lang.String stringExpression)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STRINGEXPRESSION$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STRINGEXPRESSION$2);
}
target.setStringValue(stringExpression);
}
}
/**
* Sets (as xml) the "string_expression" element
*/
public void xsetStringExpression(org.apache.xmlbeans.XmlString stringExpression)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(STRINGEXPRESSION$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(STRINGEXPRESSION$2);
}
target.set(stringExpression);
}
}
/**
* Unsets the "string_expression" element
*/
public void unsetStringExpression()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(STRINGEXPRESSION$2, 0);
}
}
/**
* Gets the "expression" element
*/
public org.openehr.schemas.v1.EXPRITEM getExpression()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXPRITEM target = null;
target = (org.openehr.schemas.v1.EXPRITEM)get_store().find_element_user(EXPRESSION$4, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "expression" element
*/
public void setExpression(org.openehr.schemas.v1.EXPRITEM expression)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXPRITEM target = null;
target = (org.openehr.schemas.v1.EXPRITEM)get_store().find_element_user(EXPRESSION$4, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.EXPRITEM)get_store().add_element_user(EXPRESSION$4);
}
target.set(expression);
}
}
/**
* Appends and returns a new empty "expression" element
*/
public org.openehr.schemas.v1.EXPRITEM addNewExpression()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXPRITEM target = null;
target = (org.openehr.schemas.v1.EXPRITEM)get_store().add_element_user(EXPRESSION$4);
return target;
}
}
/**
* Gets array of all "variables" elements
*/
public org.openehr.schemas.v1.ASSERTIONVARIABLE[] getVariablesArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(VARIABLES$6, targetList);
org.openehr.schemas.v1.ASSERTIONVARIABLE[] result = new org.openehr.schemas.v1.ASSERTIONVARIABLE[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "variables" element
*/
public org.openehr.schemas.v1.ASSERTIONVARIABLE getVariablesArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ASSERTIONVARIABLE target = null;
target = (org.openehr.schemas.v1.ASSERTIONVARIABLE)get_store().find_element_user(VARIABLES$6, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "variables" element
*/
public int sizeOfVariablesArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(VARIABLES$6);
}
}
/**
* Sets array of all "variables" element
*/
public void setVariablesArray(org.openehr.schemas.v1.ASSERTIONVARIABLE[] variablesArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(variablesArray, VARIABLES$6);
}
}
/**
* Sets ith "variables" element
*/
public void setVariablesArray(int i, org.openehr.schemas.v1.ASSERTIONVARIABLE variables)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ASSERTIONVARIABLE target = null;
target = (org.openehr.schemas.v1.ASSERTIONVARIABLE)get_store().find_element_user(VARIABLES$6, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(variables);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "variables" element
*/
public org.openehr.schemas.v1.ASSERTIONVARIABLE insertNewVariables(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ASSERTIONVARIABLE target = null;
target = (org.openehr.schemas.v1.ASSERTIONVARIABLE)get_store().insert_element_user(VARIABLES$6, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "variables" element
*/
public org.openehr.schemas.v1.ASSERTIONVARIABLE addNewVariables()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ASSERTIONVARIABLE target = null;
target = (org.openehr.schemas.v1.ASSERTIONVARIABLE)get_store().add_element_user(VARIABLES$6);
return target;
}
}
/**
* Removes the ith "variables" element
*/
public void removeVariables(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(VARIABLES$6, i);
}
}
}