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