org.openehr.schemas.v1.impl.CMULTIPLEATTRIBUTEImpl Maven / Gradle / Ivy
/*
* XML Type: C_MULTIPLE_ATTRIBUTE
* Namespace: http://schemas.openehr.org/v1
* Java type: org.openehr.schemas.v1.CMULTIPLEATTRIBUTE
*
* Automatically generated - do not modify.
*/
package org.openehr.schemas.v1.impl;
/**
* An XML C_MULTIPLE_ATTRIBUTE(@http://schemas.openehr.org/v1).
*
* This is a complex type.
*/
public class CMULTIPLEATTRIBUTEImpl extends org.openehr.schemas.v1.impl.CATTRIBUTEImpl implements org.openehr.schemas.v1.CMULTIPLEATTRIBUTE
{
private static final long serialVersionUID = 1L;
public CMULTIPLEATTRIBUTEImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName CARDINALITY$0 =
new javax.xml.namespace.QName("http://schemas.openehr.org/v1", "cardinality");
/**
* Gets the "cardinality" element
*/
public org.openehr.schemas.v1.CARDINALITY getCardinality()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CARDINALITY target = null;
target = (org.openehr.schemas.v1.CARDINALITY)get_store().find_element_user(CARDINALITY$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "cardinality" element
*/
public void setCardinality(org.openehr.schemas.v1.CARDINALITY cardinality)
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CARDINALITY target = null;
target = (org.openehr.schemas.v1.CARDINALITY)get_store().find_element_user(CARDINALITY$0, 0);
if (target == null)
{
target = (org.openehr.schemas.v1.CARDINALITY)get_store().add_element_user(CARDINALITY$0);
}
target.set(cardinality);
}
}
/**
* Appends and returns a new empty "cardinality" element
*/
public org.openehr.schemas.v1.CARDINALITY addNewCardinality()
{
synchronized (monitor())
{
check_orphaned();
org.openehr.schemas.v1.CARDINALITY target = null;
target = (org.openehr.schemas.v1.CARDINALITY)get_store().add_element_user(CARDINALITY$0);
return target;
}
}
}