Class UnitOfMeasurement

java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.model.ext.UnitOfMeasurement
All Implemented Interfaces:
ComplexValue

public class UnitOfMeasurement extends Object implements ComplexValue
Model class for UnitOfMeasurement. This is a complex property in STA.
  • Constructor Details

    • UnitOfMeasurement

      public UnitOfMeasurement()
    • UnitOfMeasurement

      public UnitOfMeasurement(String name, String symbol, String definition)
  • Method Details

    • get

      public Object get(String name)
      Specified by:
      get in interface ComplexValue
    • getName

      public String getName()
      Returns:
      the name
    • getSymbol

      public String getSymbol()
      Returns:
      the symbol
    • getDefinition

      public String getDefinition()
      Returns:
      the definition
    • setName

      public UnitOfMeasurement setName(String name)
      Parameters:
      name - the name to set
      Returns:
      this
    • setSymbol

      public UnitOfMeasurement setSymbol(String symbol)
      Parameters:
      symbol - the symbol to set
      Returns:
      this
    • setDefinition

      public UnitOfMeasurement setDefinition(String definition)
      Parameters:
      definition - the definition to set
      Returns:
      this
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object