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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull WarningPartsDef.Warningstatic @NotNull WarningPartsDef.Warning@NotNull Map<String,Collection<String>> @NotNull Map<String,Collection<String>> @Nullable String@Nullable String@Nullable Stringstatic @NotNull WarningPartsDef.Warning.Builder@NotNull StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
getFieldFlagsin interfaceBuilderMessage- Returns:
- Get the flags for all fields.
-
getFlagFields
- Specified by:
getFlagFieldsin 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
-