openEHR.v1.template.impl.CountConstraintImpl 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: countConstraint
* Namespace: openEHR/v1/Template
* Java type: openEHR.v1.template.CountConstraint
*
* Automatically generated - do not modify.
*/
package openEHR.v1.template.impl;
/**
* An XML countConstraint(@openEHR/v1/Template).
*
* This is a complex type.
*/
public class CountConstraintImpl extends openEHR.v1.template.impl.ValueConstraintImpl implements openEHR.v1.template.CountConstraint
{
private static final long serialVersionUID = 1L;
public CountConstraintImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName MAXMAGNITUDE$0 =
new javax.xml.namespace.QName("openEHR/v1/Template", "maxMagnitude");
private static final javax.xml.namespace.QName MINMAGNITUDE$2 =
new javax.xml.namespace.QName("openEHR/v1/Template", "minMagnitude");
private static final javax.xml.namespace.QName INCLUDESMAXIMUM$4 =
new javax.xml.namespace.QName("openEHR/v1/Template", "includesMaximum");
private static final javax.xml.namespace.QName INCLUDESMINIMUM$6 =
new javax.xml.namespace.QName("openEHR/v1/Template", "includesMinimum");
/**
* Gets the "maxMagnitude" element
*/
public java.math.BigInteger getMaxMagnitude()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXMAGNITUDE$0, 0);
if (target == null)
{
return null;
}
return target.getBigIntegerValue();
}
}
/**
* Gets (as xml) the "maxMagnitude" element
*/
public org.apache.xmlbeans.XmlInteger xgetMaxMagnitude()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInteger target = null;
target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(MAXMAGNITUDE$0, 0);
return target;
}
}
/**
* True if has "maxMagnitude" element
*/
public boolean isSetMaxMagnitude()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(MAXMAGNITUDE$0) != 0;
}
}
/**
* Sets the "maxMagnitude" element
*/
public void setMaxMagnitude(java.math.BigInteger maxMagnitude)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXMAGNITUDE$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MAXMAGNITUDE$0);
}
target.setBigIntegerValue(maxMagnitude);
}
}
/**
* Sets (as xml) the "maxMagnitude" element
*/
public void xsetMaxMagnitude(org.apache.xmlbeans.XmlInteger maxMagnitude)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInteger target = null;
target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(MAXMAGNITUDE$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlInteger)get_store().add_element_user(MAXMAGNITUDE$0);
}
target.set(maxMagnitude);
}
}
/**
* Unsets the "maxMagnitude" element
*/
public void unsetMaxMagnitude()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(MAXMAGNITUDE$0, 0);
}
}
/**
* Gets the "minMagnitude" element
*/
public java.math.BigInteger getMinMagnitude()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MINMAGNITUDE$2, 0);
if (target == null)
{
return null;
}
return target.getBigIntegerValue();
}
}
/**
* Gets (as xml) the "minMagnitude" element
*/
public org.apache.xmlbeans.XmlInteger xgetMinMagnitude()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInteger target = null;
target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(MINMAGNITUDE$2, 0);
return target;
}
}
/**
* True if has "minMagnitude" element
*/
public boolean isSetMinMagnitude()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(MINMAGNITUDE$2) != 0;
}
}
/**
* Sets the "minMagnitude" element
*/
public void setMinMagnitude(java.math.BigInteger minMagnitude)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MINMAGNITUDE$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MINMAGNITUDE$2);
}
target.setBigIntegerValue(minMagnitude);
}
}
/**
* Sets (as xml) the "minMagnitude" element
*/
public void xsetMinMagnitude(org.apache.xmlbeans.XmlInteger minMagnitude)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInteger target = null;
target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(MINMAGNITUDE$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlInteger)get_store().add_element_user(MINMAGNITUDE$2);
}
target.set(minMagnitude);
}
}
/**
* Unsets the "minMagnitude" element
*/
public void unsetMinMagnitude()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(MINMAGNITUDE$2, 0);
}
}
/**
* Gets the "includesMaximum" element
*/
public boolean getIncludesMaximum()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCLUDESMAXIMUM$4, 0);
if (target == null)
{
return false;
}
return target.getBooleanValue();
}
}
/**
* Gets (as xml) the "includesMaximum" element
*/
public org.apache.xmlbeans.XmlBoolean xgetIncludesMaximum()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(INCLUDESMAXIMUM$4, 0);
return target;
}
}
/**
* Sets the "includesMaximum" element
*/
public void setIncludesMaximum(boolean includesMaximum)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCLUDESMAXIMUM$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INCLUDESMAXIMUM$4);
}
target.setBooleanValue(includesMaximum);
}
}
/**
* Sets (as xml) the "includesMaximum" element
*/
public void xsetIncludesMaximum(org.apache.xmlbeans.XmlBoolean includesMaximum)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(INCLUDESMAXIMUM$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(INCLUDESMAXIMUM$4);
}
target.set(includesMaximum);
}
}
/**
* Gets the "includesMinimum" element
*/
public boolean getIncludesMinimum()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCLUDESMINIMUM$6, 0);
if (target == null)
{
return false;
}
return target.getBooleanValue();
}
}
/**
* Gets (as xml) the "includesMinimum" element
*/
public org.apache.xmlbeans.XmlBoolean xgetIncludesMinimum()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(INCLUDESMINIMUM$6, 0);
return target;
}
}
/**
* Sets the "includesMinimum" element
*/
public void setIncludesMinimum(boolean includesMinimum)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INCLUDESMINIMUM$6, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(INCLUDESMINIMUM$6);
}
target.setBooleanValue(includesMinimum);
}
}
/**
* Sets (as xml) the "includesMinimum" element
*/
public void xsetIncludesMinimum(org.apache.xmlbeans.XmlBoolean includesMinimum)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(INCLUDESMINIMUM$6, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(INCLUDESMINIMUM$6);
}
target.set(includesMinimum);
}
}
}