org.openehr.schemas.v1.impl.VersionDocumentImpl 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!
/*
* An XML document type.
* Localname: version
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.VersionDocument
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* A document containing one version(@http://schemas.openehr.org/v1) element.
*
* This is a complex type.
*/
public class VersionDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.VersionDocument
{
private static final long serialVersionUID = 1L;
public VersionDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName VERSION$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "version");
/**
* Gets the "version" element
*/
public org.openehr.schemas.v1.VERSION getVersion()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.VERSION target = null;
target = (org.openehr.schemas.v1.VERSION)get_store().find_element_user(VERSION$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "version" element
*/
public void setVersion(org.openehr.schemas.v1.VERSION version)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.VERSION target = null;
target = (org.openehr.schemas.v1.VERSION)get_store().find_element_user(VERSION$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.VERSION)get_store().add_element_user(VERSION$0);
}
target.set(version);
}
}
/**
* Appends and returns a new empty "version" element
*/
public org.openehr.schemas.v1.VERSION addNewVersion()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.VERSION target = null;
target = (org.openehr.schemas.v1.VERSION)get_store().add_element_user(VERSION$0);
return target;
}
}
}