org.openehr.schemas.v1.impl.EXPRBINARYOPERATORImpl Maven / Gradle / Ivy
/*
* XML Type: EXPR_BINARY_OPERATOR
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.EXPRBINARYOPERATOR
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML EXPR_BINARY_OPERATOR(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class EXPRBINARYOPERATORImpl extends org.openehr.schemas.v1.impl.EXPROPERATORImpl implements org.openehr.schemas.v1.EXPRBINARYOPERATOR
{
private static final long serialVersionUID = 1L;
public EXPRBINARYOPERATORImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName LEFTOPERAND$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "left_operand");
private static final javax.xml.namespace.QName RIGHTOPERAND$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "right_operand");
/**
* Gets the "left_operand" element
*/
public org.openehr.schemas.v1.EXPRITEM getLeftOperand()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXPRITEM target = null;
target = (org.openehr.schemas.v1.EXPRITEM)get_store().find_element_user(LEFTOPERAND$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "left_operand" element
*/
public void setLeftOperand(org.openehr.schemas.v1.EXPRITEM leftOperand)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXPRITEM target = null;
target = (org.openehr.schemas.v1.EXPRITEM)get_store().find_element_user(LEFTOPERAND$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.EXPRITEM)get_store().add_element_user(LEFTOPERAND$0);
}
target.set(leftOperand);
}
}
/**
* Appends and returns a new empty "left_operand" element
*/
public org.openehr.schemas.v1.EXPRITEM addNewLeftOperand()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXPRITEM target = null;
target = (org.openehr.schemas.v1.EXPRITEM)get_store().add_element_user(LEFTOPERAND$0);
return target;
}
}
/**
* Gets the "right_operand" element
*/
public org.openehr.schemas.v1.EXPRITEM getRightOperand()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXPRITEM target = null;
target = (org.openehr.schemas.v1.EXPRITEM)get_store().find_element_user(RIGHTOPERAND$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "right_operand" element
*/
public void setRightOperand(org.openehr.schemas.v1.EXPRITEM rightOperand)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXPRITEM target = null;
target = (org.openehr.schemas.v1.EXPRITEM)get_store().find_element_user(RIGHTOPERAND$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.EXPRITEM)get_store().add_element_user(RIGHTOPERAND$2);
}
target.set(rightOperand);
}
}
/**
* Appends and returns a new empty "right_operand" element
*/
public org.openehr.schemas.v1.EXPRITEM addNewRightOperand()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.EXPRITEM target = null;
target = (org.openehr.schemas.v1.EXPRITEM)get_store().add_element_user(RIGHTOPERAND$2);
return target;
}
}
}