Class UnitOfMeasurement
java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.models.ext.UnitOfMeasurement
- All Implemented Interfaces:
ComplexValue<UnitOfMeasurement>
Model class for UnitOfMeasurement. This is a complex property in STA.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EntityPropertyMain<String>static final EntityPropertyMain<String>static final EntityPropertyMain<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()<P> PgetProperty(Property<P> property) Get the value of the given property.getProperty(String name) Get the custom property with the given name.inthashCode()setDefinition(String definition) setProperty(Property<P> property, P value) Set the given property to the given value.setProperty(String name, Object value) Set the custom property with the given name to the given value.toString()
-
Field Details
-
EP_NAME
-
EP_DEFINITION
-
EP_SYMBOL
-
-
Constructor Details
-
UnitOfMeasurement
public UnitOfMeasurement() -
UnitOfMeasurement
-
-
Method Details
-
getName
- Returns:
- the name
-
getSymbol
- Returns:
- the symbol
-
getDefinition
- Returns:
- the definition
-
getProperty
Description copied from interface:ComplexValueGet the value of the given property.- Specified by:
getPropertyin interfaceComplexValue<UnitOfMeasurement>- Type Parameters:
P- The type of the property and value.- Parameters:
property- The property to get the value of.- Returns:
- the value of the requested property.
-
setProperty
Description copied from interface:ComplexValueSet the given property to the given value.- Specified by:
setPropertyin interfaceComplexValue<UnitOfMeasurement>- Type Parameters:
P- The type of the property.- Parameters:
property- The property to set.value- The value to set the property to.- Returns:
- this.
-
getProperty
Description copied from interface:ComplexValueGet the custom property with the given name. Only valid for ComplexTypes that are classed as openType, returns null for non-openTypes.- Specified by:
getPropertyin interfaceComplexValue<UnitOfMeasurement>- Parameters:
name- The name of the custom property to fetch.- Returns:
- The value of the custom property.
-
setProperty
Description copied from interface:ComplexValueSet the custom property with the given name to the given value. Only valid for ComplexTypes that are classed as openType.- Specified by:
setPropertyin interfaceComplexValue<UnitOfMeasurement>- Parameters:
name- The name of the custom property to set.value- The value of the custom property to set.- Returns:
- this.
-
setName
- Parameters:
name- the name to set- Returns:
- this
-
setSymbol
- Parameters:
symbol- the symbol to set- Returns:
- this
-
setDefinition
- Parameters:
definition- the definition to set- Returns:
- this
-
toString
-
hashCode
public int hashCode() -
equals
-