org.openehr.schemas.v1.impl.ITEMSINGLEImpl 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_SINGLE
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.ITEMSINGLE
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML ITEM_SINGLE(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class ITEMSINGLEImpl extends org.openehr.schemas.v1.impl.ITEMSTRUCTUREImpl implements org.openehr.schemas.v1.ITEMSINGLE
{
private static final long serialVersionUID = 1L;
public ITEMSINGLEImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ITEM$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "item");
/**
* Gets the "item" element
*/
public org.openehr.schemas.v1.ELEMENT getItem()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ELEMENT target = null;
target = (org.openehr.schemas.v1.ELEMENT)get_store().find_element_user(ITEM$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "item" element
*/
public void setItem(org.openehr.schemas.v1.ELEMENT item)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ELEMENT target = null;
target = (org.openehr.schemas.v1.ELEMENT)get_store().find_element_user(ITEM$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.ELEMENT)get_store().add_element_user(ITEM$0);
}
target.set(item);
}
}
/**
* Appends and returns a new empty "item" element
*/
public org.openehr.schemas.v1.ELEMENT addNewItem()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ELEMENT target = null;
target = (org.openehr.schemas.v1.ELEMENT)get_store().add_element_user(ITEM$0);
return target;
}
}
}