org.openehr.schemas.v1.impl.CATTRIBUTEImpl 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_ATTRIBUTE
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.CATTRIBUTE
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML C_ATTRIBUTE(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class CATTRIBUTEImpl extends org.openehr.schemas.v1.impl.ARCHETYPECONSTRAINTImpl implements org.openehr.schemas.v1.CATTRIBUTE
{
private static final long serialVersionUID = 1L;
public CATTRIBUTEImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName RMATTRIBUTENAME$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "rm_attribute_name");
private static final javax.xml.namespace.QName EXISTENCE$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "existence");
private static final javax.xml.namespace.QName CHILDREN$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "children");
/**
* Gets the "rm_attribute_name" element
*/
public java.lang.String getRmAttributeName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RMATTRIBUTENAME$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "rm_attribute_name" element
*/
public org.apache.xmlbeans.XmlString xgetRmAttributeName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RMATTRIBUTENAME$0, 0);
return target;
}
}
/**
* Sets the "rm_attribute_name" element
*/
public void setRmAttributeName(java.lang.String rmAttributeName)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RMATTRIBUTENAME$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RMATTRIBUTENAME$0);
}
target.setStringValue(rmAttributeName);
}
}
/**
* Sets (as xml) the "rm_attribute_name" element
*/
public void xsetRmAttributeName(org.apache.xmlbeans.XmlString rmAttributeName)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RMATTRIBUTENAME$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(RMATTRIBUTENAME$0);
}
target.set(rmAttributeName);
}
}
/**
* Gets the "existence" element
*/
public org.openehr.schemas.v1.IntervalOfInteger getExistence()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfInteger target = null;
target = (org.openehr.schemas.v1.IntervalOfInteger)get_store().find_element_user(EXISTENCE$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "existence" element
*/
public void setExistence(org.openehr.schemas.v1.IntervalOfInteger existence)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfInteger target = null;
target = (org.openehr.schemas.v1.IntervalOfInteger)get_store().find_element_user(EXISTENCE$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.IntervalOfInteger)get_store().add_element_user(EXISTENCE$2);
}
target.set(existence);
}
}
/**
* Appends and returns a new empty "existence" element
*/
public org.openehr.schemas.v1.IntervalOfInteger addNewExistence()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfInteger target = null;
target = (org.openehr.schemas.v1.IntervalOfInteger)get_store().add_element_user(EXISTENCE$2);
return target;
}
}
/**
* Gets array of all "children" elements
*/
public org.openehr.schemas.v1.COBJECT[] getChildrenArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(CHILDREN$4, targetList);
org.openehr.schemas.v1.COBJECT[] result = new org.openehr.schemas.v1.COBJECT[targetList.size()];
targetList.toArray(result);
return result;
}
}
/**
* Gets ith "children" element
*/
public org.openehr.schemas.v1.COBJECT getChildrenArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.COBJECT target = null;
target = (org.openehr.schemas.v1.COBJECT)get_store().find_element_user(CHILDREN$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
}
/**
* Returns number of "children" element
*/
public int sizeOfChildrenArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(CHILDREN$4);
}
}
/**
* Sets array of all "children" element
*/
public void setChildrenArray(org.openehr.schemas.v1.COBJECT[] childrenArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(childrenArray, CHILDREN$4);
}
}
/**
* Sets ith "children" element
*/
public void setChildrenArray(int i, org.openehr.schemas.v1.COBJECT children)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.COBJECT target = null;
target = (org.openehr.schemas.v1.COBJECT)get_store().find_element_user(CHILDREN$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(children);
}
}
/**
* Inserts and returns a new empty value (as xml) as the ith "children" element
*/
public org.openehr.schemas.v1.COBJECT insertNewChildren(int i)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.COBJECT target = null;
target = (org.openehr.schemas.v1.COBJECT)get_store().insert_element_user(CHILDREN$4, i);
return target;
}
}
/**
* Appends and returns a new empty value (as xml) as the last "children" element
*/
public org.openehr.schemas.v1.COBJECT addNewChildren()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.COBJECT target = null;
target = (org.openehr.schemas.v1.COBJECT)get_store().add_element_user(CHILDREN$4);
return target;
}
}
/**
* Removes the ith "children" element
*/
public void removeChildren(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(CHILDREN$4, i);
}
}
}