Package org.hl7.v3
Class MO
java.lang.Object
org.hl7.v3.ANY
org.hl7.v3.QTY
org.hl7.v3.MO
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:hl7-org:v3}QTY">
<attribute name="value" type="{urn:hl7-org:v3}real" />
<attribute name="currency" type="{urn:hl7-org:v3}cs" />
</extension>
</complexContent>
</complexType>
-
Field Summary
FieldsFields inherited from class org.hl7.v3.ANY
nullFlavor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the value of the currency property.getValue()Gets the value of the value property.inthashCode()voidsetCurrency(String value) Sets the value of the currency property.voidSets the value of the value property.toString()Generates a String representation of the contents of this type.withCurrency(String value) withNullFlavor(String... values) withNullFlavor(Collection<String> values) Methods inherited from class org.hl7.v3.ANY
getNullFlavor
-
Field Details
-
value
-
currency
-
-
Constructor Details
-
MO
public MO()
-
-
Method Details
-
getValue
Gets the value of the value property.- Returns:
- possible object is
String
-
setValue
Sets the value of the value property.- Parameters:
value- allowed object isString
-
getCurrency
Gets the value of the currency property.- Returns:
- possible object is
String
-
setCurrency
Sets the value of the currency property.- Parameters:
value- allowed object isString
-
withValue
-
withCurrency
-
withNullFlavor
- Overrides:
withNullFlavorin classQTY
-
withNullFlavor
- Overrides:
withNullFlavorin classQTY
-
equals
-
hashCode
public int hashCode() -
toString
Generates a String representation of the contents of this type. This is an extension method, produced by the 'ts' xjc plugin
-