org.openehr.schemas.v1.impl.DVORDINALImpl Maven / Gradle / Ivy
/*
* XML Type: DV_ORDINAL
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.DVORDINAL
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML DV_ORDINAL(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class DVORDINALImpl extends org.openehr.schemas.v1.impl.DVORDEREDImpl implements org.openehr.schemas.v1.DVORDINAL
{
private static final long serialVersionUID = 1L;
public DVORDINALImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName VALUE$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "value");
private static final javax.xml.namespace.QName SYMBOL$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "symbol");
/**
* Gets the "value" element
*/
public int getValue()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$0, 0);
if (target == null)
{
return 0;
}
return target.getIntValue();
}
}
/**
* Gets (as xml) the "value" element
*/
public org.apache.xmlbeans.XmlInt xgetValue()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInt target = null;
target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(VALUE$0, 0);
return target;
}
}
/**
* Sets the "value" element
*/
public void setValue(int value)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VALUE$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VALUE$0);
}
target.setIntValue(value);
}
}
/**
* Sets (as xml) the "value" element
*/
public void xsetValue(org.apache.xmlbeans.XmlInt value)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInt target = null;
target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(VALUE$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(VALUE$0);
}
target.set(value);
}
}
/**
* Gets the "symbol" element
*/
public org.openehr.schemas.v1.DVCODEDTEXT getSymbol()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(SYMBOL$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "symbol" element
*/
public void setSymbol(org.openehr.schemas.v1.DVCODEDTEXT symbol)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(SYMBOL$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(SYMBOL$2);
}
target.set(symbol);
}
}
/**
* Appends and returns a new empty "symbol" element
*/
public org.openehr.schemas.v1.DVCODEDTEXT addNewSymbol()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(SYMBOL$2);
return target;
}
}
}