org.openehr.schemas.v1.impl.PARTYRELATEDImpl 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: PARTY_RELATED
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.PARTYRELATED
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML PARTY_RELATED(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class PARTYRELATEDImpl extends org.openehr.schemas.v1.impl.PARTYIDENTIFIEDImpl implements org.openehr.schemas.v1.PARTYRELATED
{
private static final long serialVersionUID = 1L;
public PARTYRELATEDImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName RELATIONSHIP$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "relationship");
/**
* Gets the "relationship" element
*/
public org.openehr.schemas.v1.DVCODEDTEXT getRelationship()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(RELATIONSHIP$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "relationship" element
*/
public void setRelationship(org.openehr.schemas.v1.DVCODEDTEXT relationship)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().find_element_user(RELATIONSHIP$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(RELATIONSHIP$0);
}
target.set(relationship);
}
}
/**
* Appends and returns a new empty "relationship" element
*/
public org.openehr.schemas.v1.DVCODEDTEXT addNewRelationship()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.DVCODEDTEXT target = null;
target = (org.openehr.schemas.v1.DVCODEDTEXT)get_store().add_element_user(RELATIONSHIP$0);
return target;
}
}
}