org.openehr.schemas.v1.impl.ACTIONImpl Maven / Gradle / Ivy
/*
* XML Type: ACTION
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.ACTION
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML ACTION(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class ACTIONImpl extends org.openehr.schemas.v1.impl.CAREENTRYImpl implements org.openehr.schemas.v1.ACTION
{
private static final long serialVersionUID = 1L;
public ACTIONImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName TIME$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "time");
private static final javax.xml.namespace.QName DESCRIPTION$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "description");
private static final javax.xml.namespace.QName ISMTRANSITION$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "ism_transition");
private static final javax.xml.namespace.QName INSTRUCTIONDETAILS$6 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "instruction_details");
/**
* Gets the "time" element
*/
public org.openehr.schemas.v1.DVDATETIME getTime()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVDATETIME target = null;
target = (org.openehr.schemas.v1.DVDATETIME)get_store().find_element_user(TIME$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "time" element
*/
public void setTime(org.openehr.schemas.v1.DVDATETIME time)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVDATETIME target = null;
target = (org.openehr.schemas.v1.DVDATETIME)get_store().find_element_user(TIME$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVDATETIME)get_store().add_element_user(TIME$0);
}
target.set(time);
}
}
/**
* Appends and returns a new empty "time" element
*/
public org.openehr.schemas.v1.DVDATETIME addNewTime()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVDATETIME target = null;
target = (org.openehr.schemas.v1.DVDATETIME)get_store().add_element_user(TIME$0);
return target;
}
}
/**
* Gets the "description" element
*/
public org.openehr.schemas.v1.ITEMSTRUCTURE getDescription()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().find_element_user(DESCRIPTION$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "description" element
*/
public void setDescription(org.openehr.schemas.v1.ITEMSTRUCTURE description)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().find_element_user(DESCRIPTION$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().add_element_user(DESCRIPTION$2);
}
target.set(description);
}
}
/**
* Appends and returns a new empty "description" element
*/
public org.openehr.schemas.v1.ITEMSTRUCTURE addNewDescription()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().add_element_user(DESCRIPTION$2);
return target;
}
}
/**
* Gets the "ism_transition" element
*/
public org.openehr.schemas.v1.ISMTRANSITION getIsmTransition()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ISMTRANSITION target = null;
target = (org.openehr.schemas.v1.ISMTRANSITION)get_store().find_element_user(ISMTRANSITION$4, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "ism_transition" element
*/
public void setIsmTransition(org.openehr.schemas.v1.ISMTRANSITION ismTransition)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ISMTRANSITION target = null;
target = (org.openehr.schemas.v1.ISMTRANSITION)get_store().find_element_user(ISMTRANSITION$4, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.ISMTRANSITION)get_store().add_element_user(ISMTRANSITION$4);
}
target.set(ismTransition);
}
}
/**
* Appends and returns a new empty "ism_transition" element
*/
public org.openehr.schemas.v1.ISMTRANSITION addNewIsmTransition()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ISMTRANSITION target = null;
target = (org.openehr.schemas.v1.ISMTRANSITION)get_store().add_element_user(ISMTRANSITION$4);
return target;
}
}
/**
* Gets the "instruction_details" element
*/
public org.openehr.schemas.v1.INSTRUCTIONDETAILS getInstructionDetails()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.INSTRUCTIONDETAILS target = null;
target = (org.openehr.schemas.v1.INSTRUCTIONDETAILS)get_store().find_element_user(INSTRUCTIONDETAILS$6, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "instruction_details" element
*/
public boolean isSetInstructionDetails()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(INSTRUCTIONDETAILS$6) != 0;
}
}
/**
* Sets the "instruction_details" element
*/
public void setInstructionDetails(org.openehr.schemas.v1.INSTRUCTIONDETAILS instructionDetails)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.INSTRUCTIONDETAILS target = null;
target = (org.openehr.schemas.v1.INSTRUCTIONDETAILS)get_store().find_element_user(INSTRUCTIONDETAILS$6, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.INSTRUCTIONDETAILS)get_store().add_element_user(INSTRUCTIONDETAILS$6);
}
target.set(instructionDetails);
}
}
/**
* Appends and returns a new empty "instruction_details" element
*/
public org.openehr.schemas.v1.INSTRUCTIONDETAILS addNewInstructionDetails()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.INSTRUCTIONDETAILS target = null;
target = (org.openehr.schemas.v1.INSTRUCTIONDETAILS)get_store().add_element_user(INSTRUCTIONDETAILS$6);
return target;
}
}
/**
* Unsets the "instruction_details" element
*/
public void unsetInstructionDetails()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(INSTRUCTIONDETAILS$6, 0);
}
}
}