Class DisplayFieldArgument
java.lang.Object
com.caplin.motif.config.definitions.common.DisplayFieldArgument
@Generated("org.openapitools.codegen.languages.SpringCodegen")
public class DisplayFieldArgument
extends Object
DisplayFieldArgument
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionDisplayFieldArgument
(String value, DisplayFieldArgument.TypeEnum type) Constructor with only required parameters -
Method Summary
Modifier and TypeMethodDescriptionaction
(DisplayFieldArgumentAction action) digitsBeforePips
(Integer digitsBeforePips) boolean
Get actiongetColor()
The color of the argument value.Digits before pips for a points or rate value.getDps()
Number of decimal places for a points, rate or amount value.Number of pips for a points or rate value.@NotNull DisplayFieldArgument.TypeEnum
getType()
Type of the value.@NotNull String
getValue()
The value to be applied to the template.int
hashCode()
numberOfPips
(Integer numberOfPips) void
setAction
(DisplayFieldArgumentAction action) void
void
setDigitsBeforePips
(Integer digitsBeforePips) void
void
setNumberOfPips
(Integer numberOfPips) void
void
toString()
-
Constructor Details
-
DisplayFieldArgument
public DisplayFieldArgument() -
DisplayFieldArgument
Constructor with only required parameters
-
-
Method Details
-
value
-
getValue
The value to be applied to the template.- Returns:
- value
-
setValue
-
type
-
getType
Type of the value. Used by the frontend for formatting. * `TEXT` - Plaintext value that should be displayed unmodified. * `TOKEN` - Translation token. The token must be known to the frontend. * `NUMBER` - A number. The frontend applies number formatting as specified by the user's locale. Please set the value with the intended precision, as the frontends do not make any precision adjustments for NUMBER values. * `DATE` - An ISO date (`YYYY-MM-DD`). Will be formatted as per user's locale setting. * `TIME` - An ISO date-time (`YYYY-MM-DD[T]HH:mm:ss.SSS`) or time (`HH:mm:ss.SSS`) with or without milliseconds. Input must be in UTC. Milliseconds will be displayed only if the input format contained milliseconds. Frontend will convert to local time and display the time part only, formatted as per user's locale setting. * `DATETIME` - An ISO date-time (`YYYY-MM-DD[T]HH:mm:ss.SSS`) with or without milliseconds. Input must be in UTC. Milliseconds will be displayed only if the input format contained milliseconds. Frontend will convert to local time and display the date and time formatted as per user's locale setting. * `RATE` - A rate value that may be formatted with adapter-provided formatting attributes. * `POINTS` - A points value that may be formatted with adapter-provided formatting attributes. * `AMOUNT` - An amount value that may be formatted with adapter-provided formatting attributes. * `BUTTON` - A plaintext value to be displayed on a button, and an optional name of an action to be performed upon clicking the button.- Returns:
- type
-
setType
-
action
-
getAction
Get action- Returns:
- action
-
setAction
-
digitsBeforePips
-
getDigitsBeforePips
Digits before pips for a points or rate value.- Returns:
- digitsBeforePips
-
setDigitsBeforePips
-
numberOfPips
-
getNumberOfPips
Number of pips for a points or rate value.- Returns:
- numberOfPips
-
setNumberOfPips
-
dps
-
getDps
Number of decimal places for a points, rate or amount value.- Returns:
- dps
-
setDps
-
color
-
getColor
The color of the argument value. Can be a design system token (e.g. neutral_base) or, alternatively, any valid HTML color code (e.g. #FFFFFF or red).- Returns:
- color
-
setColor
-
equals
-
hashCode
public int hashCode() -
toString
-