Class WarningPartsDef.Warning
java.lang.Object
com.caplin.generated.motif.fx.warning.WarningPartsDef.Warning
- All Implemented Interfaces:
BuilderMessage
,Message
- Enclosing class:
- WarningPartsDef
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull WarningPartsDef.Warning
static @NotNull WarningPartsDef.Warning
@NotNull Map<String,
Collection<String>> @NotNull Map<String,
Collection<String>> @Nullable String
@Nullable String
@Nullable String
static @NotNull WarningPartsDef.Warning.Builder
@NotNull String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.caplin.motif.datasource.BuilderMessage
getFieldFlags, getFlagFields
-
Method Details
-
getWarningType
- Returns:
- The type of a warning message. Caplin supported warning types are [AMEND_REASON, GENERIC]. See the constants defined within com.caplin.motif.fx.trading.WarningTypes.
-
getWarningTitle
- Returns:
- The title of a warning message. Supports strings and i18n tokens.
-
getWarningMessage
- Returns:
- The message to display for any warnings regarding a quote request. Supports Markdown syntax for formatting.
-
getFields
-
getFieldFlags
- Specified by:
getFieldFlags
in interfaceBuilderMessage
- Returns:
- Get the flags for all fields.
-
getFlagFields
- Specified by:
getFlagFields
in interfaceBuilderMessage
- Returns:
- Get the fields for all flags.
-
toString
-
from
@NotNull public static @NotNull WarningPartsDef.Warning from(@NotNull @NotNull Map<String, String> fields) -
from
@NotNull public static @NotNull WarningPartsDef.Warning from(@NotNull @NotNull Map<String, String> fields, @NotNull @NotNull String fieldPrefix) -
newBuilder
-