org.openehr.schemas.v1.impl.CAREENTRYImpl Maven / Gradle / Ivy
/*
* XML Type: CARE_ENTRY
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.CAREENTRY
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML CARE_ENTRY(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class CAREENTRYImpl extends org.openehr.schemas.v1.impl.ENTRYImpl implements org.openehr.schemas.v1.CAREENTRY
{
private static final long serialVersionUID = 1L;
public CAREENTRYImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName PROTOCOL$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "protocol");
private static final javax.xml.namespace.QName GUIDELINEID$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "guideline_id");
/**
* Gets the "protocol" element
*/
public org.openehr.schemas.v1.ITEMSTRUCTURE getProtocol()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().find_element_user(PROTOCOL$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "protocol" element
*/
public boolean isSetProtocol()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(PROTOCOL$0) != 0;
}
}
/**
* Sets the "protocol" element
*/
public void setProtocol(org.openehr.schemas.v1.ITEMSTRUCTURE protocol)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().find_element_user(PROTOCOL$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().add_element_user(PROTOCOL$0);
}
target.set(protocol);
}
}
/**
* Appends and returns a new empty "protocol" element
*/
public org.openehr.schemas.v1.ITEMSTRUCTURE addNewProtocol()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.ITEMSTRUCTURE target = null;
target = (org.openehr.schemas.v1.ITEMSTRUCTURE)get_store().add_element_user(PROTOCOL$0);
return target;
}
}
/**
* Unsets the "protocol" element
*/
public void unsetProtocol()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(PROTOCOL$0, 0);
}
}
/**
* Gets the "guideline_id" element
*/
public org.openehr.schemas.v1.OBJECTREF getGuidelineId()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTREF target = null;
target = (org.openehr.schemas.v1.OBJECTREF)get_store().find_element_user(GUIDELINEID$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* True if has "guideline_id" element
*/
public boolean isSetGuidelineId()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(GUIDELINEID$2) != 0;
}
}
/**
* Sets the "guideline_id" element
*/
public void setGuidelineId(org.openehr.schemas.v1.OBJECTREF guidelineId)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTREF target = null;
target = (org.openehr.schemas.v1.OBJECTREF)get_store().find_element_user(GUIDELINEID$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.OBJECTREF)get_store().add_element_user(GUIDELINEID$2);
}
target.set(guidelineId);
}
}
/**
* Appends and returns a new empty "guideline_id" element
*/
public org.openehr.schemas.v1.OBJECTREF addNewGuidelineId()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTREF target = null;
target = (org.openehr.schemas.v1.OBJECTREF)get_store().add_element_user(GUIDELINEID$2);
return target;
}
}
/**
* Unsets the "guideline_id" element
*/
public void unsetGuidelineId()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(GUIDELINEID$2, 0);
}
}
}