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

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

/*
 * XML Type:  CONSTRAINT_REF
 * Namespace: http://schemas.openehr.org/v1
 * Java type: org.openehr.schemas.v1.CONSTRAINTREF
 *
 * Automatically generated - do not modify.
 */
package org.openehr.schemas.v1.impl;
/**
 * An XML CONSTRAINT_REF(@http://schemas.openehr.org/v1).
 *
 * This is a complex type.
 */
public class CONSTRAINTREFImpl extends org.openehr.schemas.v1.impl.COBJECTImpl implements org.openehr.schemas.v1.CONSTRAINTREF
{
    private static final long serialVersionUID = 1L;
    
    public CONSTRAINTREFImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName REFERENCE$0 = 
        new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "reference");
    
    
    /**
     * Gets the "reference" element
     */
    public java.lang.String getReference()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFERENCE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "reference" element
     */
    public org.apache.xmlbeans.XmlString xgetReference()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REFERENCE$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "reference" element
     */
    public void setReference(java.lang.String reference)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFERENCE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REFERENCE$0);
            }
            target.setStringValue(reference);
        }
    }
    
    /**
     * Sets (as xml) the "reference" element
     */
    public void xsetReference(org.apache.xmlbeans.XmlString reference)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REFERENCE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(REFERENCE$0);
            }
            target.set(reference);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy