![JAR search and dependency download from the Maven repository](/logo.png)
org.openehr.schemas.v1.impl.OBJECTREFImpl 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: OBJECT_REF
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.OBJECTREF
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML OBJECT_REF(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class OBJECTREFImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.openehr.schemas.v1.OBJECTREF
{
private static final long serialVersionUID = 1L;
public OBJECTREFImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName ID$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "id");
private static final javax.xml.namespace.QName NAMESPACE$2 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "namespace");
private static final javax.xml.namespace.QName TYPE$4 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "type");
/**
* Gets the "id" element
*/
public org.openehr.schemas.v1.OBJECTID getId()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTID target = null;
target = (org.openehr.schemas.v1.OBJECTID)get_store().find_element_user(ID$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "id" element
*/
public void setId(org.openehr.schemas.v1.OBJECTID id)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTID target = null;
target = (org.openehr.schemas.v1.OBJECTID)get_store().find_element_user(ID$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.OBJECTID)get_store().add_element_user(ID$0);
}
target.set(id);
}
}
/**
* Appends and returns a new empty "id" element
*/
public org.openehr.schemas.v1.OBJECTID addNewId()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.OBJECTID target = null;
target = (org.openehr.schemas.v1.OBJECTID)get_store().add_element_user(ID$0);
return target;
}
}
/**
* Gets the "namespace" element
*/
public java.lang.String getNamespace()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAMESPACE$2, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "namespace" element
*/
public org.apache.xmlbeans.XmlToken xgetNamespace()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlToken target = null;
target = (org.apache.xmlbeans.XmlToken)get_store().find_element_user(NAMESPACE$2, 0);
return target;
}
}
/**
* Sets the "namespace" element
*/
public void setNamespace(java.lang.String namespace)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAMESPACE$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAMESPACE$2);
}
target.setStringValue(namespace);
}
}
/**
* Sets (as xml) the "namespace" element
*/
public void xsetNamespace(org.apache.xmlbeans.XmlToken namespace)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlToken target = null;
target = (org.apache.xmlbeans.XmlToken)get_store().find_element_user(NAMESPACE$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlToken)get_store().add_element_user(NAMESPACE$2);
}
target.set(namespace);
}
}
/**
* Gets the "type" element
*/
public java.lang.String getType()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TYPE$4, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
}
/**
* Gets (as xml) the "type" element
*/
public org.apache.xmlbeans.XmlToken xgetType()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlToken target = null;
target = (org.apache.xmlbeans.XmlToken)get_store().find_element_user(TYPE$4, 0);
return target;
}
}
/**
* Sets the "type" element
*/
public void setType(java.lang.String type)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TYPE$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TYPE$4);
}
target.setStringValue(type);
}
}
/**
* Sets (as xml) the "type" element
*/
public void xsetType(org.apache.xmlbeans.XmlToken type)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlToken target = null;
target = (org.apache.xmlbeans.XmlToken)get_store().find_element_user(TYPE$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlToken)get_store().add_element_user(TYPE$4);
}
target.set(type);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy