fr.cnes.sitools.units.dimension.model
Class SitoolsUnit

java.lang.Object
  extended by fr.cnes.sitools.units.dimension.model.SitoolsUnit

public final class SitoolsUnit
extends java.lang.Object

Overlay for Unit framework

Author:
m.marseille (AKKA technologies)

Constructor Summary
SitoolsUnit()
          Constructor
SitoolsUnit(java.lang.String sequence)
          Constructor with unit name
 
Method Summary
 javax.measure.unit.Unit<?> getInstanceFrom(java.lang.String sequence)
          Check if the sequence can lead to a unit creation
 java.lang.String getLabel()
          Gets the label value
 javax.measure.unit.Unit<?> getUnit()
          Return the encapsulated unit
 java.lang.String getUnitName()
          Gets the unitName value
 void setLabel(java.lang.String label)
          Sets the value of label
 void setUnitName(java.lang.String unitName)
          Sets the value of unitName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SitoolsUnit

public SitoolsUnit()
Constructor


SitoolsUnit

public SitoolsUnit(java.lang.String sequence)
Constructor with unit name

Parameters:
sequence - the unit name
Method Detail

getInstanceFrom

public javax.measure.unit.Unit<?> getInstanceFrom(java.lang.String sequence)
Check if the sequence can lead to a unit creation

Parameters:
sequence - the unit name
Returns:
true if the sequence is understood

getUnit

public javax.measure.unit.Unit<?> getUnit()
Return the encapsulated unit

Returns:
the unit

setLabel

public void setLabel(java.lang.String label)
Sets the value of label

Parameters:
label - the label to set

getLabel

public java.lang.String getLabel()
Gets the label value

Returns:
the label

setUnitName

public void setUnitName(java.lang.String unitName)
Sets the value of unitName

Parameters:
unitName - the unitName to set

getUnitName

public java.lang.String getUnitName()
Gets the unitName value

Returns:
the unitName


Copyright © 2010-2013 CNES. All Rights Reserved.