org.openehr.schemas.v1.impl.CARDINALITYImpl Maven / Gradle / Ivy
/*
* XML Type: CARDINALITY
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.CARDINALITY
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML CARDINALITY(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class CARDINALITYImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.CARDINALITY
{
private static final long serialVersionUID = 1L;
public CARDINALITYImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ISORDERED$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "is_ordered");
private static final javax.xml.namespace.QName ISUNIQUE$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "is_unique");
private static final javax.xml.namespace.QName INTERVAL$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "interval");
/**
* Gets the "is_ordered" element
*/
public boolean getIsOrdered()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ISORDERED$0, 0);
if (target == null)
{
return false;
}
return target.getBooleanValue();
}
}
/**
* Gets (as xml) the "is_ordered" element
*/
public org.apache.xmlbeans.XmlBoolean xgetIsOrdered()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ISORDERED$0, 0);
return target;
}
}
/**
* Sets the "is_ordered" element
*/
public void setIsOrdered(boolean isOrdered)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ISORDERED$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ISORDERED$0);
}
target.setBooleanValue(isOrdered);
}
}
/**
* Sets (as xml) the "is_ordered" element
*/
public void xsetIsOrdered(org.apache.xmlbeans.XmlBoolean isOrdered)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ISORDERED$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(ISORDERED$0);
}
target.set(isOrdered);
}
}
/**
* Gets the "is_unique" element
*/
public boolean getIsUnique()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ISUNIQUE$2, 0);
if (target == null)
{
return false;
}
return target.getBooleanValue();
}
}
/**
* Gets (as xml) the "is_unique" element
*/
public org.apache.xmlbeans.XmlBoolean xgetIsUnique()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ISUNIQUE$2, 0);
return target;
}
}
/**
* Sets the "is_unique" element
*/
public void setIsUnique(boolean isUnique)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ISUNIQUE$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ISUNIQUE$2);
}
target.setBooleanValue(isUnique);
}
}
/**
* Sets (as xml) the "is_unique" element
*/
public void xsetIsUnique(org.apache.xmlbeans.XmlBoolean isUnique)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlBoolean target = null;
target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ISUNIQUE$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(ISUNIQUE$2);
}
target.set(isUnique);
}
}
/**
* Gets the "interval" element
*/
public org.openehr.schemas.v1.IntervalOfInteger getInterval()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfInteger target = null;
target = (org.openehr.schemas.v1.IntervalOfInteger)get_store().find_element_user(INTERVAL$4, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "interval" element
*/
public void setInterval(org.openehr.schemas.v1.IntervalOfInteger interval)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfInteger target = null;
target = (org.openehr.schemas.v1.IntervalOfInteger)get_store().find_element_user(INTERVAL$4, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.IntervalOfInteger)get_store().add_element_user(INTERVAL$4);
}
target.set(interval);
}
}
/**
* Appends and returns a new empty "interval" element
*/
public org.openehr.schemas.v1.IntervalOfInteger addNewInterval()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.IntervalOfInteger target = null;
target = (org.openehr.schemas.v1.IntervalOfInteger)get_store().add_element_user(INTERVAL$4);
return target;
}
}
}