public class QuantityData extends BasicData implements NameableData, RemovableData, SystemData
Quantity
,
Developer documentation: AnnotationsModifier and Type | Field and Description |
---|---|
private java.lang.String |
description |
static int |
MAX_REFERENCE_UNIT_LENGTH |
private java.lang.String |
name |
private java.lang.String |
referenceUnit |
private java.lang.Integer |
removedBy |
private java.util.Set<UnitSymbolData> |
symbols |
private java.lang.String |
systemId |
private java.util.Set<UnitData> |
units |
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
MAX_SYSTEM_ID_LENGTH
Constructor and Description |
---|
QuantityData() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Get the description for the item.
|
java.lang.String |
getName()
Get the name of the item.
|
java.lang.String |
getReferenceUnit()
The reference unit that all units of must relate to.
|
java.lang.Integer |
getRemovedBy()
Get the ID of the user that removed this item.
|
(package private) java.util.Set<UnitSymbolData> |
getSymbols()
This is the inverse end.
|
java.lang.String |
getSystemId()
Get the system id for the item.
|
(package private) java.util.Set<UnitData> |
getUnits()
This is the inverse end.
|
void |
setDescription(java.lang.String description)
Set the description for the item.
|
void |
setName(java.lang.String name)
Set the name of the item.
|
void |
setReferenceUnit(java.lang.String referenceUnit) |
void |
setRemovedBy(java.lang.Integer removedBy)
Set the ID of the user that removed this item or null
to restore the item.
|
(package private) void |
setSymbols(java.util.Set<UnitSymbolData> symbols) |
void |
setSystemId(java.lang.String systemId) |
(package private) void |
setUnits(java.util.Set<UnitData> units) |
equals, getId, getVersion, hashCode, setId, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getVersion
private java.lang.String name
private java.lang.String description
private java.lang.Integer removedBy
private java.lang.String systemId
public static final int MAX_REFERENCE_UNIT_LENGTH
private java.lang.String referenceUnit
private java.util.Set<UnitData> units
private java.util.Set<UnitSymbolData> symbols
public java.lang.String getName()
NameableData
getName
in interface NameableData
String
with the name of the itempublic void setName(java.lang.String name)
NameableData
MAX_NAME_LENGTH
constant.setName
in interface NameableData
name
- The new name for the itempublic java.lang.String getDescription()
NameableData
getDescription
in interface NameableData
String
with a description of the itempublic void setDescription(java.lang.String description)
NameableData
MAX_DESCRIPTION_LENGTH
constant.setDescription
in interface NameableData
description
- The new description for the itempublic java.lang.Integer getRemovedBy()
RemovableData
getRemovedBy
in interface RemovableData
public void setRemovedBy(java.lang.Integer removedBy)
RemovableData
setRemovedBy
in interface RemovableData
public java.lang.String getSystemId()
SystemData
getSystemId
in interface SystemData
public void setSystemId(java.lang.String systemId)
public java.lang.String getReferenceUnit()
public void setReferenceUnit(java.lang.String referenceUnit)
java.util.Set<UnitData> getUnits()
UnitData.getQuantity()
void setUnits(java.util.Set<UnitData> units)
java.util.Set<UnitSymbolData> getSymbols()
UnitSymbolData.getQuantity()
void setSymbols(java.util.Set<UnitSymbolData> symbols)