no.kith.xmlstds.eresept.m94.x20100701.impl.EgenandelDocumentImpl Maven / Gradle / Ivy
/*
* An XML document type.
* Localname: Egenandel
* Namespace: http://www.kith.no/xmlstds/eresept/m94/2010-07-01
* Java type: no.kith.xmlstds.eresept.m94.x20100701.EgenandelDocument
*
* Automatically generated - do not modify.
*/
package no.kith.xmlstds.eresept.m94.x20100701.impl;
/**
* A document containing one Egenandel(@http://www.kith.no/xmlstds/eresept/m94/2010-07-01) element.
*
* This is a complex type.
*/
public class EgenandelDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.kith.xmlstds.eresept.m94.x20100701.EgenandelDocument
{
private static final long serialVersionUID = 1L;
public EgenandelDocumentImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName EGENANDEL$0 =
new javax.xml.namespace.QName("http://www.kith.no/xmlstds/eresept/m94/2010-07-01", "Egenandel");
/**
* Gets the "Egenandel" element
*/
public no.kith.xmlstds.eresept.m94.x20100701.EgenandelDocument.Egenandel getEgenandel()
{
synchronized (monitor())
{
check_orphaned();
no.kith.xmlstds.eresept.m94.x20100701.EgenandelDocument.Egenandel target = null;
target = (no.kith.xmlstds.eresept.m94.x20100701.EgenandelDocument.Egenandel)get_store().find_element_user(EGENANDEL$0, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "Egenandel" element
*/
public void setEgenandel(no.kith.xmlstds.eresept.m94.x20100701.EgenandelDocument.Egenandel egenandel)
{
synchronized (monitor())
{
check_orphaned();
no.kith.xmlstds.eresept.m94.x20100701.EgenandelDocument.Egenandel target = null;
target = (no.kith.xmlstds.eresept.m94.x20100701.EgenandelDocument.Egenandel)get_store().find_element_user(EGENANDEL$0, 0);
if (target == null)
{
target = (no.kith.xmlstds.eresept.m94.x20100701.EgenandelDocument.Egenandel)get_store().add_element_user(EGENANDEL$0);
}
target.set(egenandel);
}
}
/**
* Appends and returns a new empty "Egenandel" element
*/
public no.kith.xmlstds.eresept.m94.x20100701.EgenandelDocument.Egenandel addNewEgenandel()
{
synchronized (monitor())
{
check_orphaned();
no.kith.xmlstds.eresept.m94.x20100701.EgenandelDocument.Egenandel target = null;
target = (no.kith.xmlstds.eresept.m94.x20100701.EgenandelDocument.Egenandel)get_store().add_element_user(EGENANDEL$0);
return target;
}
}
/**
* An XML Egenandel(@http://www.kith.no/xmlstds/eresept/m94/2010-07-01).
*
* This is a complex type.
*/
public static class EgenandelImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements no.kith.xmlstds.eresept.m94.x20100701.EgenandelDocument.Egenandel
{
private static final long serialVersionUID = 1L;
public EgenandelImpl(org.apache.xmlbeans.SchemaType sType)
{
super(sType);
}
private static final javax.xml.namespace.QName STARTEGENANDELSPERIODE$0 =
new javax.xml.namespace.QName("http://www.kith.no/xmlstds/eresept/m94/2010-07-01", "StartEgenandelsperiode");
private static final javax.xml.namespace.QName BETALTEGENANDEL$2 =
new javax.xml.namespace.QName("http://www.kith.no/xmlstds/eresept/m94/2010-07-01", "BetaltEgenandel");
/**
* Gets the "StartEgenandelsperiode" element
*/
public java.util.Calendar getStartEgenandelsperiode()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STARTEGENANDELSPERIODE$0, 0);
if (target == null)
{
return null;
}
return target.getCalendarValue();
}
}
/**
* Gets (as xml) the "StartEgenandelsperiode" element
*/
public org.apache.xmlbeans.XmlDate xgetStartEgenandelsperiode()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlDate target = null;
target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(STARTEGENANDELSPERIODE$0, 0);
return target;
}
}
/**
* Sets the "StartEgenandelsperiode" element
*/
public void setStartEgenandelsperiode(java.util.Calendar startEgenandelsperiode)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STARTEGENANDELSPERIODE$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STARTEGENANDELSPERIODE$0);
}
target.setCalendarValue(startEgenandelsperiode);
}
}
/**
* Sets (as xml) the "StartEgenandelsperiode" element
*/
public void xsetStartEgenandelsperiode(org.apache.xmlbeans.XmlDate startEgenandelsperiode)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlDate target = null;
target = (org.apache.xmlbeans.XmlDate)get_store().find_element_user(STARTEGENANDELSPERIODE$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlDate)get_store().add_element_user(STARTEGENANDELSPERIODE$0);
}
target.set(startEgenandelsperiode);
}
}
/**
* Gets the "BetaltEgenandel" element
*/
public no.kith.xmlstds.MO getBetaltEgenandel()
{
synchronized (monitor())
{
check_orphaned();
no.kith.xmlstds.MO target = null;
target = (no.kith.xmlstds.MO)get_store().find_element_user(BETALTEGENANDEL$2, 0);
if (target == null)
{
return null;
}
return target;
}
}
/**
* Sets the "BetaltEgenandel" element
*/
public void setBetaltEgenandel(no.kith.xmlstds.MO betaltEgenandel)
{
synchronized (monitor())
{
check_orphaned();
no.kith.xmlstds.MO target = null;
target = (no.kith.xmlstds.MO)get_store().find_element_user(BETALTEGENANDEL$2, 0);
if (target == null)
{
target = (no.kith.xmlstds.MO)get_store().add_element_user(BETALTEGENANDEL$2);
}
target.set(betaltEgenandel);
}
}
/**
* Appends and returns a new empty "BetaltEgenandel" element
*/
public no.kith.xmlstds.MO addNewBetaltEgenandel()
{
synchronized (monitor())
{
check_orphaned();
no.kith.xmlstds.MO target = null;
target = (no.kith.xmlstds.MO)get_store().add_element_user(BETALTEGENANDEL$2);
return target;
}
}
}
}