Class Quantity

java.lang.Object
net.sf.basedb.core.BasicItem
net.sf.basedb.core.Quantity
All Implemented Interfaces:
AccessControlled, Identifiable, Nameable, Removable, SystemItem

public class Quantity extends BasicItem implements Nameable, SystemItem, Removable
This class is used to represent a quantity for specifying units to annotations.
Version:
2.9
Author:
Nicklas
See Also:
Last modified
$Date: 2017-05-22 14:35:27 +0200 (må, 22 maj 2017) $
  • Field Details

    • TYPE

      public static final Item TYPE
      The type of item represented by this class.
      See Also:
    • LENGTH

      public static final String LENGTH
      The id for the Quantity object representing length.
      See Also:
    • MASS

      public static final String MASS
      The id for the Quantity object representing mass.
      See Also:
    • TIME

      public static final String TIME
      The id for the Quantity object representing time.
      See Also:
    • TEMPERATURE

      public static final String TEMPERATURE
      The id for the Quantity object representing temperature.
      See Also:
    • CURRENT

      public static final String CURRENT
      The id for the Quantity object representing electric current.
      See Also:
    • SUBSTANCE

      public static final String SUBSTANCE
      The id for the Quantity object representing "amount of substance".
      See Also:
    • AREA

      public static final String AREA
      The id for the Quantity object representing area.
      See Also:
    • VOLUME

      public static final String VOLUME
      The id for the Quantity object representing volume.
      See Also:
    • VELOCITY

      public static final String VELOCITY
      The id for the Quantity object representing velocity.
      See Also:
    • ANGLE

      public static final String ANGLE
      The id for the Quantity object representing angle.
      See Also:
    • FORCE

      public static final String FORCE
      The id for the Quantity object representing force.
      See Also:
    • FREQUENCY

      public static final String FREQUENCY
      The id for the Quantity object representing frequency.
      See Also:
    • DENSITY

      public static final String DENSITY
      The id for the Quantity object representing density.
      See Also:
    • ENERGY

      public static final String ENERGY
      The id for the Quantity object representing energy.
      See Also:
    • POWER

      public static final String POWER
      The id for the Quantity object representing power.
      See Also:
    • PRESSURE

      public static final String PRESSURE
      The id for the Quantity object representing pressure.
      See Also:
    • POTENTIAL

      public static final String POTENTIAL
      The id for the Quantity object representing electrical potential.
      See Also:
    • RESISTANCE

      public static final String RESISTANCE
      The id for the Quantity object representing electrical resistance.
      See Also:
    • CHARGE

      public static final String CHARGE
      The id for the Quantity object representing electrical charge.
      See Also:
    • CAPACITANCE

      public static final String CAPACITANCE
      The id for the Quantity object representing capacitance.
      See Also:
    • MAGNETIC_FIELD

      public static final String MAGNETIC_FIELD
      The id for the Quantity object representing magnetic field.
      See Also:
    • MAGNETIC_FLUX

      public static final String MAGNETIC_FLUX
      The id for the Quantity object representing magnetic flux.
      See Also:
    • ABSORBED_DOSE

      public static final String ABSORBED_DOSE
      The id for the Quantity object representing absorbed dose.
      See Also:
    • EQUIVALENT_DOSE

      public static final String EQUIVALENT_DOSE
      The id for the Quantity object representing equivalent dose.
      See Also:
    • RADIOACTIVITY

      public static final String RADIOACTIVITY
      The id for the Quantity object representing radioactivity.
      See Also:
    • FRACTION

      public static final String FRACTION
      The id for the Quantity object representing fractions.
      See Also:
    • ACCELERATION

      public static final String ACCELERATION
      The id for the Quantity object representing acceleration.
      See Also:
    • TORGUE

      public static final String TORGUE
      The id for the Quantity object representing torque.
      See Also:
    • MOMENTUM

      public static final String MOMENTUM
      The id for the Quantity object representing momentum.
      See Also:
    • FLOW_RATE

      public static final String FLOW_RATE
      The id for the Quantity object representing flow rate.
      See Also:
    • THERMAL_CONDUCTIVITY

      public static final String THERMAL_CONDUCTIVITY
      The id for the Quantity object representing thermal conductivity.
      See Also:
    • STORAGE_SIZE

      public static final String STORAGE_SIZE
      The id for the Quantity object representing storage sizes.
      See Also:
    • MOLAR_CONCENTRATION

      public static final String MOLAR_CONCENTRATION
      The id for the Quantity object representing substance concentration.
      Since:
      3.11
      See Also:
    • MAX_REFERENCE_UNIT_LENGTH

      public static final int MAX_REFERENCE_UNIT_LENGTH
      The maximum length of the reference unit that can be stored in the database.
      See Also:
  • Constructor Details

    • Quantity

      Quantity(QuantityData data)
      Creates a quantity item.
      Parameters:
      data - the data
  • Method Details