org.openehr.schemas.v1.impl.CSTRINGImpl 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: C_STRING
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.CSTRING
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML C_STRING(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class CSTRINGImpl extends org.openehr.schemas.v1.impl.CPRIMITIVEImpl implements org.openehr.schemas.v1.CSTRING
{
private static final long serialVersionUID = 1L;
public CSTRINGImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName PATTERN$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "pattern");
private static final javax.xml.namespace.QName LIST$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "list");
private static final javax.xml.namespace.QName LISTOPEN$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "list_open");
private static final javax.xml.namespace.QName ASSUMEDVALUE$6 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "assumed_value");
/**
* Gets the "pattern" element
*/
public java.lang.String getPattern()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PATTERN$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "pattern" element
*/
public org.apache.xmlbeans.XmlString xgetPattern()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PATTERN$0, 0);
return target;
}
}
/**
* True if has "pattern" element
*/
public boolean isSetPattern()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(PATTERN$0) != 0;
}
}
/**
* Sets the "pattern" element
*/
public void setPattern(java.lang.String pattern)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PATTERN$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PATTERN$0);
}
target.setStringValue(pattern);
}
}
/**
* Sets (as xml) the "pattern" element
*/
public void xsetPattern(org.apache.xmlbeans.XmlString pattern)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PATTERN$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PATTERN$0);
}
target.set(pattern);
}
}
/**
* Unsets the "pattern" element
*/
public void unsetPattern()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(PATTERN$0, 0);
}
}
/**
* Gets array of all "list" elements
*/
public java.lang.String[] getListArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(LIST$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 "list" element
*/
public java.lang.String getListArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LIST$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target.getStringValue();
}
}
/**
* Gets (as xml) array of all "list" elements
*/
public org.apache.xmlbeans.XmlString[] xgetListArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(LIST$2, targetList);
org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets (as xml) ith "list" element
*/
public org.apache.xmlbeans.XmlString xgetListArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LIST$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return (org.apache.xmlbeans.XmlString)target;
}
}
/**
* Returns number of "list" element
*/
public int sizeOfListArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(LIST$2);
}
}
/**
* Sets array of all "list" element
*/
public void setListArray(java.lang.String[] listArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(listArray, LIST$2);
}
}
/**
* Sets ith "list" element
*/
public void setListArray(int i, java.lang.String list)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LIST$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.setStringValue(list);
}
}
/**
* Sets (as xml) array of all "list" element
*/
public void xsetListArray(org.apache.xmlbeans.XmlString[]listArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(listArray, LIST$2);
}
}
/**
* Sets (as xml) ith "list" element
*/
public void xsetListArray(int i, org.apache.xmlbeans.XmlString list)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LIST$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(list);
}
}
/**
* Inserts the value as the ith "list" element
*/
public void insertList(int i, java.lang.String list)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target =
(org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(LIST$2, i);
target.setStringValue(list);
}
}
/**
* Appends the value as the last "list" element
*/
public void addList(java.lang.String list)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LIST$2);
target.setStringValue(list);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "list" element
*/
public org.apache.xmlbeans.XmlString insertNewList(int i)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().insert_element_user(LIST$2, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "list" element
*/
public org.apache.xmlbeans.XmlString addNewList()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(LIST$2);
return target;
}
}
/**
* Removes the ith "list" element
*/
public void removeList(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(LIST$2, i);
}
}
/**
* Gets the "list_open" element
*/
public boolean getListOpen()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LISTOPEN$4, 0);
if (target == null)
{
return false;
}
return target.getBooleanValue();
}
}
/**
* Gets (as xml) the "list_open" element
*/
public org.apache.xmlbeans.XmlBoolean xgetListOpen()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(LISTOPEN$4, 0);
return target;
}
}
/**
* True if has "list_open" element
*/
public boolean isSetListOpen()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(LISTOPEN$4) != 0;
}
}
/**
* Sets the "list_open" element
*/
public void setListOpen(boolean listOpen)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LISTOPEN$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LISTOPEN$4);
}
target.setBooleanValue(listOpen);
}
}
/**
* Sets (as xml) the "list_open" element
*/
public void xsetListOpen(org.apache.xmlbeans.XmlBoolean listOpen)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(LISTOPEN$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(LISTOPEN$4);
}
target.set(listOpen);
}
}
/**
* Unsets the "list_open" element
*/
public void unsetListOpen()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(LISTOPEN$4, 0);
}
}
/**
* Gets the "assumed_value" element
*/
public java.lang.String getAssumedValue()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ASSUMEDVALUE$6, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "assumed_value" element
*/
public org.apache.xmlbeans.XmlString xgetAssumedValue()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ASSUMEDVALUE$6, 0);
return target;
}
}
/**
* True if has "assumed_value" element
*/
public boolean isSetAssumedValue()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ASSUMEDVALUE$6) != 0;
}
}
/**
* Sets the "assumed_value" element
*/
public void setAssumedValue(java.lang.String assumedValue)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ASSUMEDVALUE$6, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ASSUMEDVALUE$6);
}
target.setStringValue(assumedValue);
}
}
/**
* Sets (as xml) the "assumed_value" element
*/
public void xsetAssumedValue(org.apache.xmlbeans.XmlString assumedValue)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ASSUMEDVALUE$6, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ASSUMEDVALUE$6);
}
target.set(assumedValue);
}
}
/**
* Unsets the "assumed_value" element
*/
public void unsetAssumedValue()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ASSUMEDVALUE$6, 0);
}
}
}