org.openehr.schemas.v1.impl.DVCOUNTImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oet-parser Show documentation
Show all versions of oet-parser Show documentation
Java implementation of openEHR OET Template Parser and Flattener
The newest version!
/*
* XML Type: DV_COUNT
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.DVCOUNT
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML DV_COUNT(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class DVCOUNTImpl extends org.openehr.schemas.v1.impl.DVAMOUNTImpl implements org.openehr.schemas.v1.DVCOUNT
{
private static final long serialVersionUID = 1L;
public DVCOUNTImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName MAGNITUDE$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "magnitude");
/**
* Gets the "magnitude" element
*/
public long getMagnitude()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAGNITUDE$0, 0);
if (target == null)
{
return 0L;
}
return target.getLongValue();
}
}
/**
* Gets (as xml) the "magnitude" element
*/
public org.apache.xmlbeans.XmlLong xgetMagnitude()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlLong target = null;
target = (org.apache.xmlbeans.XmlLong)get_store().find_element_user(MAGNITUDE$0, 0);
return target;
}
}
/**
* Sets the "magnitude" element
*/
public void setMagnitude(long magnitude)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAGNITUDE$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MAGNITUDE$0);
}
target.setLongValue(magnitude);
}
}
/**
* Sets (as xml) the "magnitude" element
*/
public void xsetMagnitude(org.apache.xmlbeans.XmlLong magnitude)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlLong target = null;
target = (org.apache.xmlbeans.XmlLong)get_store().find_element_user(MAGNITUDE$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlLong)get_store().add_element_user(MAGNITUDE$0);
}
target.set(magnitude);
}
}
}