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