|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.Helper
fr.cnes.sitools.units.dimension.helper.DimensionHelper
public class DimensionHelper
Dimension helper to register all known converters
Constructor Summary | |
---|---|
DimensionHelper()
Constructor holding class name |
Method Summary | |
---|---|
SitoolsUnitConverter |
getConverter(javax.measure.unit.Unit<?> u,
javax.measure.unit.Unit<?> v)
Get the converter for the given Unit to another unit. |
java.util.List<java.lang.String> |
getConverters()
Gets the converters value |
java.lang.String |
getHelperName()
Gets the helperName value |
java.util.List<SitoolsUnitConverter> |
getRegisteredConverters()
Get the list of registered converters |
java.util.List<javax.measure.unit.SystemOfUnits> |
getRegisteredSystems()
Gets the sys value |
java.util.List<java.lang.String> |
getSystems()
Gets the systems value |
void |
registerSystem(javax.measure.unit.SystemOfUnits s)
register a measure system to the dimension helper |
void |
registerUnitConverter(SitoolsUnitConverter conv)
register a converter to the dimension helper |
void |
setConverters(java.util.List<java.lang.String> converters)
Sets the value of converters |
void |
setHelperName(java.lang.String helperName)
Sets the value of helperName |
void |
setSystems(java.util.List<java.lang.String> systems)
Sets the value of systems |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DimensionHelper()
Method Detail |
---|
public final java.util.List<SitoolsUnitConverter> getRegisteredConverters()
public final void registerUnitConverter(SitoolsUnitConverter conv)
conv
- the converter to registerpublic final void registerSystem(javax.measure.unit.SystemOfUnits s)
s
- the system to registerpublic final SitoolsUnitConverter getConverter(javax.measure.unit.Unit<?> u, javax.measure.unit.Unit<?> v)
u
- the base unitv
- the target unit
public final java.util.List<java.lang.String> getConverters()
public final void setHelperName(java.lang.String helperName)
helperName
- the helperName to setpublic final java.lang.String getHelperName()
public final java.util.List<java.lang.String> getSystems()
public java.util.List<javax.measure.unit.SystemOfUnits> getRegisteredSystems()
public void setConverters(java.util.List<java.lang.String> converters)
converters
- the converters to setpublic void setSystems(java.util.List<java.lang.String> systems)
systems
- the systems to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |