Package com.walkfares.odsl.conversion
Class ConversionAction
java.lang.Object
com.walkfares.odsl.conversion.ConversionAction
public class ConversionAction extends Object
ConversionAction determines what is needed to be converted and converts various var types in the convert method
-
Constructor Summary
Constructors Constructor Description ConversionAction(Convertible var, ConversionOptions options, OpenDSLContext context)
-
Method Summary
Modifier and Type Method Description void
convert(Var v, UTCDate index)
String
getDataset()
String
getDetail()
Dimension
getFromDimension()
Unit
getFromUnit()
Convertible
getInput()
ConversionOptions
getOptions()
String
getProfile()
Dimension
getToDimension()
Unit
getToUnit()
boolean
isConvertCurrency()
boolean
isConvertUnits()
boolean
isInvert()
ConversionAction
setConvertCurrency(boolean convertCurrency)
ConversionAction
setConvertUnits(boolean convertUnits)
ConversionAction
setDataset(String dataset)
ConversionAction
setDetail(String detail)
ConversionAction
setFromDimension(Dimension fromDimension)
ConversionAction
setFromUnit(Unit fromUnit)
ConversionAction
setInput(Convertible input)
ConversionAction
setInvert(boolean invert)
ConversionAction
setOptions(ConversionOptions options)
ConversionAction
setProfile(String profile)
ConversionAction
setToDimension(Dimension toDimension)
ConversionAction
setToUnit(Unit toUnit)
-
Constructor Details
-
Method Details
-
convert
-
getFromDimension
-
setFromDimension
-
isInvert
public boolean isInvert() -
setInvert
-
isConvertUnits
public boolean isConvertUnits() -
setConvertUnits
-
isConvertCurrency
public boolean isConvertCurrency() -
setConvertCurrency
-
getFromUnit
-
setFromUnit
-
getToUnit
-
setToUnit
-
getInput
-
setInput
-
getOptions
-
setOptions
-
getToDimension
-
setToDimension
-
getDetail
-
setDetail
-
getDataset
-
setDataset
-
getProfile
-
setProfile
-