org.openehr.schemas.v1.impl.EXPRLEAFImpl Maven / Gradle / Ivy
/*
* XML Type: EXPR_LEAF
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.EXPRLEAF
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML EXPR_LEAF(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class EXPRLEAFImpl extends org.openehr.schemas.v1.impl.EXPRITEMImpl implements org.openehr.schemas.v1.EXPRLEAF
{
private static final long serialVersionUID = 1L;
public EXPRLEAFImpl(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");
private static final javax.xml.namespace.QName REFERENCETYPE$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "reference_type");
/**
* Gets the "item" element
*/
public org.apache.xmlbeans.XmlObject getItem()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlObject target = null;
target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(ITEM$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "item" element
*/
public void setItem(org.apache.xmlbeans.XmlObject item)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlObject target = null;
target = (org.apache.xmlbeans.XmlObject)get_store().find_element_user(ITEM$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(ITEM$0);
}
target.set(item);
}
}
/**
* Appends and returns a new empty "item" element
*/
public org.apache.xmlbeans.XmlObject addNewItem()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlObject target = null;
target = (org.apache.xmlbeans.XmlObject)get_store().add_element_user(ITEM$0);
return target;
}
}
/**
* Gets the "reference_type" element
*/
public java.lang.String getReferenceType()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFERENCETYPE$2, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "reference_type" element
*/
public org.apache.xmlbeans.XmlString xgetReferenceType()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REFERENCETYPE$2, 0);
return target;
}
}
/**
* Sets the "reference_type" element
*/
public void setReferenceType(java.lang.String referenceType)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFERENCETYPE$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REFERENCETYPE$2);
}
target.setStringValue(referenceType);
}
}
/**
* Sets (as xml) the "reference_type" element
*/
public void xsetReferenceType(org.apache.xmlbeans.XmlString referenceType)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REFERENCETYPE$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(REFERENCETYPE$2);
}
target.set(referenceType);
}
}
}