|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.QuantityData
public class QuantityData
This class holds information quantities.
Quantity,
Developer documentation: Annotations| Field Summary | |
|---|---|
private String |
description
|
static int |
MAX_REFERENCE_UNIT_LENGTH
|
private String |
name
|
private String |
referenceUnit
|
private boolean |
removed
|
private Set<UnitSymbolData> |
symbols
|
private String |
systemId
|
private Set<UnitData> |
units
|
| Fields inherited from interface net.sf.basedb.core.data.NameableData |
|---|
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH |
| Fields inherited from interface net.sf.basedb.core.data.SystemData |
|---|
MAX_SYSTEM_ID_LENGTH |
| Constructor Summary | |
|---|---|
QuantityData()
|
|
| Method Summary | |
|---|---|
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. |
(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. |
boolean |
isRemoved()
Check if the removed flag is set for this item. |
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 |
setRemoved(boolean removed)
Set the removed flag for this item. |
(package private) void |
setSymbols(Set<UnitSymbolData> symbols)
|
void |
setSystemId(String systemId)
|
(package private) void |
setUnits(Set<UnitData> units)
|
| Methods inherited from class net.sf.basedb.core.data.BasicData |
|---|
equals, getId, getVersion, hashCode, setId, setVersion, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sf.basedb.core.data.IdentifiableData |
|---|
getId, getVersion |
| Field Detail |
|---|
private String name
private String description
private boolean removed
private String systemId
public static final int MAX_REFERENCE_UNIT_LENGTH
private String referenceUnit
private Set<UnitData> units
private Set<UnitSymbolData> symbols
| Constructor Detail |
|---|
public QuantityData()
| Method Detail |
|---|
public String getName()
NameableData
getName in interface NameableDataString with the name of the itempublic void setName(String name)
NameableDataMAX_NAME_LENGTH constant.
setName in interface NameableDataname - The new name for the itempublic String getDescription()
NameableData
getDescription in interface NameableDataString with a description of the itempublic void setDescription(String description)
NameableDataMAX_DESCRIPTION_LENGTH constant.
setDescription in interface NameableDatadescription - The new description for the itempublic boolean isRemoved()
RemovableData
isRemoved in interface RemovableDatapublic void setRemoved(boolean removed)
RemovableData
setRemoved in interface RemovableDataremoved - TRUE if the item should be flagged as removed,
FALSE otherwisepublic String getSystemId()
SystemData
getSystemId in interface SystemDatapublic void setSystemId(String systemId)
public String getReferenceUnit()
public void setReferenceUnit(String referenceUnit)
Set<UnitData> getUnits()
UnitData.getQuantity()void setUnits(Set<UnitData> units)
Set<UnitSymbolData> getSymbols()
UnitSymbolData.getQuantity()void setSymbols(Set<UnitSymbolData> symbols)
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||