org.openehr.schemas.v1.impl.VERSIONImpl 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: VERSION
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.VERSION
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML VERSION(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class VERSIONImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.VERSION
{
private static final long serialVersionUID = 1L;
public VERSIONImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName CONTRIBUTION$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "contribution");
private static final javax.xml.namespace.QName COMMITAUDIT$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "commit_audit");
private static final javax.xml.namespace.QName SIGNATURE$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "signature");
/**
* Gets the "contribution" element
*/
public org.openehr.schemas.v1.OBJECTREF getContribution()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTREF target = null;
target = (org.openehr.schemas.v1.OBJECTREF)get_store().find_element_user(CONTRIBUTION$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "contribution" element
*/
public void setContribution(org.openehr.schemas.v1.OBJECTREF contribution)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTREF target = null;
target = (org.openehr.schemas.v1.OBJECTREF)get_store().find_element_user(CONTRIBUTION$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.OBJECTREF)get_store().add_element_user(CONTRIBUTION$0);
}
target.set(contribution);
}
}
/**
* Appends and returns a new empty "contribution" element
*/
public org.openehr.schemas.v1.OBJECTREF addNewContribution()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTREF target = null;
target = (org.openehr.schemas.v1.OBJECTREF)get_store().add_element_user(CONTRIBUTION$0);
return target;
}
}
/**
* Gets the "commit_audit" element
*/
public org.openehr.schemas.v1.AUDITDETAILS getCommitAudit()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.AUDITDETAILS target = null;
target = (org.openehr.schemas.v1.AUDITDETAILS)get_store().find_element_user(COMMITAUDIT$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "commit_audit" element
*/
public void setCommitAudit(org.openehr.schemas.v1.AUDITDETAILS commitAudit)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.AUDITDETAILS target = null;
target = (org.openehr.schemas.v1.AUDITDETAILS)get_store().find_element_user(COMMITAUDIT$2, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.AUDITDETAILS)get_store().add_element_user(COMMITAUDIT$2);
}
target.set(commitAudit);
}
}
/**
* Appends and returns a new empty "commit_audit" element
*/
public org.openehr.schemas.v1.AUDITDETAILS addNewCommitAudit()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.AUDITDETAILS target = null;
target = (org.openehr.schemas.v1.AUDITDETAILS)get_store().add_element_user(COMMITAUDIT$2);
return target;
}
}
/**
* Gets the "signature" element
*/
public java.lang.String getSignature()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SIGNATURE$4, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "signature" element
*/
public org.apache.xmlbeans.XmlString xgetSignature()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SIGNATURE$4, 0);
return target;
}
}
/**
* True if has "signature" element
*/
public boolean isSetSignature()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(SIGNATURE$4) != 0;
}
}
/**
* Sets the "signature" element
*/
public void setSignature(java.lang.String signature)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SIGNATURE$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SIGNATURE$4);
}
target.setStringValue(signature);
}
}
/**
* Sets (as xml) the "signature" element
*/
public void xsetSignature(org.apache.xmlbeans.XmlString signature)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SIGNATURE$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SIGNATURE$4);
}
target.set(signature);
}
}
/**
* Unsets the "signature" element
*/
public void unsetSignature()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(SIGNATURE$4, 0);
}
}
}