All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openehr.schemas.v1.impl.VersionDocumentImpl Maven / Gradle / Ivy

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;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy