
openEHR.v1.template.impl.DateConstraintImpl 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: dateConstraint
* Namespace: openEHR/v1/Template
* Java type: openEHR.v1.template.DateConstraint
*
* Automatically generated - do not modify.
*/
package openEHR.v1.template.impl;
/**
* An XML dateConstraint(@openEHR/v1/Template).
*
* This is a complex type.
*/
public class DateConstraintImpl extends openEHR.v1.template.impl.ValueConstraintImpl implements openEHR.v1.template.DateConstraint
{
private static final long serialVersionUID = 1L;
public DateConstraintImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName MAXDATETIME$0 =
new javax.xml.namespace.QName("openEHR/v1/Template", "maxDateTime");
private static final javax.xml.namespace.QName MINDATETIME$2 =
new javax.xml.namespace.QName("openEHR/v1/Template", "minDateTime");
/**
* Gets the "maxDateTime" element
*/
public java.util.Calendar getMaxDateTime()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXDATETIME$0, 0);
if (target == null)
{
return null;
}
return target.getCalendarValue();
}
}
/**
* Gets (as xml) the "maxDateTime" element
*/
public org.apache.xmlbeans.XmlDateTime xgetMaxDateTime()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlDateTime target = null;
target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(MAXDATETIME$0, 0);
return target;
}
}
/**
* True if has "maxDateTime" element
*/
public boolean isSetMaxDateTime()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(MAXDATETIME$0) != 0;
}
}
/**
* Sets the "maxDateTime" element
*/
public void setMaxDateTime(java.util.Calendar maxDateTime)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MAXDATETIME$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MAXDATETIME$0);
}
target.setCalendarValue(maxDateTime);
}
}
/**
* Sets (as xml) the "maxDateTime" element
*/
public void xsetMaxDateTime(org.apache.xmlbeans.XmlDateTime maxDateTime)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlDateTime target = null;
target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(MAXDATETIME$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlDateTime)get_store().add_element_user(MAXDATETIME$0);
}
target.set(maxDateTime);
}
}
/**
* Unsets the "maxDateTime" element
*/
public void unsetMaxDateTime()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(MAXDATETIME$0, 0);
}
}
/**
* Gets the "minDateTime" element
*/
public java.util.Calendar getMinDateTime()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MINDATETIME$2, 0);
if (target == null)
{
return null;
}
return target.getCalendarValue();
}
}
/**
* Gets (as xml) the "minDateTime" element
*/
public org.apache.xmlbeans.XmlDateTime xgetMinDateTime()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlDateTime target = null;
target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(MINDATETIME$2, 0);
return target;
}
}
/**
* True if has "minDateTime" element
*/
public boolean isSetMinDateTime()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(MINDATETIME$2) != 0;
}
}
/**
* Sets the "minDateTime" element
*/
public void setMinDateTime(java.util.Calendar minDateTime)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MINDATETIME$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MINDATETIME$2);
}
target.setCalendarValue(minDateTime);
}
}
/**
* Sets (as xml) the "minDateTime" element
*/
public void xsetMinDateTime(org.apache.xmlbeans.XmlDateTime minDateTime)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlDateTime target = null;
target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(MINDATETIME$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlDateTime)get_store().add_element_user(MINDATETIME$2);
}
target.set(minDateTime);
}
}
/**
* Unsets the "minDateTime" element
*/
public void unsetMinDateTime()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(MINDATETIME$2, 0);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy