
ihe.iti.svs._2008.MO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ihe-iti Show documentation
Show all versions of ihe-iti Show documentation
Codegen for IHE ITI Profiles.
package ihe.iti.svs._2008;
import java.util.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
/**
*
* A monetary amount is a quantity expressing the amount of
* money in some currency. Currencies are the units in which
* monetary amounts are denominated in different economic
* regions. While the monetary amount is a single kind of
* quantity (money) the exchange rates between the different
* units are variable. This is the principle difference
* between physical quantity and monetary amounts, and the
* reason why currency units are not physical units.
*
*
* Java class for MO complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="MO">
* <complexContent>
* <extension base="{urn:ihe:iti:svs:2008}QTY">
* <attribute name="value" type="{urn:ihe:iti:svs:2008}real" />
* <attribute name="currency" type="{urn:ihe:iti:svs:2008}cs" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MO")
@XmlSeeAlso({
IVXBMO.class,
SXCMMO.class
})
public class MO
extends QTY
{
@XmlAttribute(name = "value")
protected String value;
@XmlAttribute(name = "currency")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String currency;
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
/**
* Gets the value of the currency property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCurrency() {
return currency;
}
/**
* Sets the value of the currency property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCurrency(String value) {
this.currency = value;
}
public MO withValue(String value) {
setValue(value);
return this;
}
public MO withCurrency(String value) {
setCurrency(value);
return this;
}
@Override
public MO withNullFlavor(String... values) {
if (values!= null) {
for (String value: values) {
getNullFlavor().add(value);
}
}
return this;
}
@Override
public MO withNullFlavor(Collection values) {
if (values!= null) {
getNullFlavor().addAll(values);
}
return this;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
@Override
public boolean equals(Object that) {
return EqualsBuilder.reflectionEquals(this, that);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy