public class Quantity extends Element implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString
Java class for Quantity complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Quantity">
<complexContent>
<extension base="{http://hl7.org/fhir}Element">
<sequence>
<element name="value" type="{http://hl7.org/fhir}decimal" minOccurs="0"/>
<element name="comparator" type="{http://hl7.org/fhir}QuantityComparator" minOccurs="0"/>
<element name="unit" type="{http://hl7.org/fhir}string" minOccurs="0"/>
<element name="system" type="{http://hl7.org/fhir}uri" minOccurs="0"/>
<element name="code" type="{http://hl7.org/fhir}code" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected Code |
code |
protected QuantityComparator |
comparator |
protected Uri |
system |
protected String |
unit |
protected Decimal |
value |
| Constructor and Description |
|---|
Quantity() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy) |
java.lang.StringBuilder |
appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy) |
boolean |
equals(java.lang.Object object) |
boolean |
equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
java.lang.Object object,
org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy) |
Code |
getCode()
Gets the value of the code property.
|
QuantityComparator |
getComparator()
Gets the value of the comparator property.
|
Uri |
getSystem()
Gets the value of the system property.
|
String |
getUnit()
Gets the value of the unit property.
|
Decimal |
getValue()
Gets the value of the value property.
|
int |
hashCode() |
int |
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy) |
void |
setCode(Code value)
Sets the value of the code property.
|
void |
setComparator(QuantityComparator value)
Sets the value of the comparator property.
|
void |
setSystem(Uri value)
Sets the value of the system property.
|
void |
setUnit(String value)
Sets the value of the unit property.
|
void |
setValue(Decimal value)
Sets the value of the value property.
|
java.lang.String |
toString() |
Quantity |
withCode(Code value) |
Quantity |
withComparator(QuantityComparator value) |
Quantity |
withExtension(java.util.Collection<Extension> values) |
Quantity |
withExtension(Extension... values) |
Quantity |
withId(java.lang.String value) |
Quantity |
withSystem(Uri value) |
Quantity |
withUnit(String value) |
Quantity |
withValue(Decimal value) |
getExtension, getId, setIdprotected Decimal value
protected QuantityComparator comparator
protected String unit
protected Uri system
protected Code code
public Decimal getValue()
Decimalpublic void setValue(Decimal value)
value - allowed object is
Decimalpublic QuantityComparator getComparator()
QuantityComparatorpublic void setComparator(QuantityComparator value)
value - allowed object is
QuantityComparatorpublic String getUnit()
Stringpublic void setUnit(String value)
value - allowed object is
Stringpublic Uri getSystem()
Uripublic void setSystem(Uri value)
value - allowed object is
Uripublic void setCode(Code value)
value - allowed object is
Codepublic Quantity withComparator(QuantityComparator value)
public Quantity withExtension(Extension... values)
withExtension in class Elementpublic Quantity withExtension(java.util.Collection<Extension> values)
withExtension in class Elementpublic boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
java.lang.Object object,
org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
public java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
public java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
appendFields in interface org.jvnet.jaxb2_commons.lang.ToStringappendFields in class Element