Class DisplayField

java.lang.Object
com.caplin.motif.config.definitions.common.DisplayField
All Implemented Interfaces:
DisplayFieldsItem

@Generated("org.openapitools.codegen.languages.SpringCodegen") public class DisplayField extends Object implements DisplayFieldsItem
DisplayField
  • Constructor Details

    • DisplayField

      public DisplayField()
    • DisplayField

      public DisplayField(String label, String template, String displayFieldType)
      Constructor with only required parameters
  • Method Details

    • label

      public DisplayField label(String label)
    • getLabel

      @NotNull public @NotNull String getLabel()
      A label for a display field. Can be either an i18n token, or a plain-text value.
      Returns:
      label
    • setLabel

      public void setLabel(String label)
    • template

      public DisplayField template(String template)
    • getTemplate

      @NotNull public @NotNull String getTemplate()
      Value template, can consist of multiple tokens, for which value and formatting options can be provided with display-field arguments. Example template: {{settlementDate}} ({{tenor}})
      Returns:
      template
    • setTemplate

      public void setTemplate(String template)
    • canCopy

      public DisplayField canCopy(Boolean canCopy)
    • getCanCopy

      public Boolean getCanCopy()
      Boolean flag, allows the value to be copied via the copy button component.
      Returns:
      canCopy
    • setCanCopy

      public void setCanCopy(Boolean canCopy)
    • arguments

      public DisplayField arguments(Map<String,DisplayFieldArgument> arguments)
    • putArgumentsItem

      public DisplayField putArgumentsItem(String key, DisplayFieldArgument argumentsItem)
    • getArguments

      public Map<String,DisplayFieldArgument> getArguments()
      Arguments to be applied to the template. Keyed by replacement token without curly braces.
      Returns:
      arguments
    • setArguments

      public void setArguments(Map<String,DisplayFieldArgument> arguments)
    • displayFieldType

      public DisplayField displayFieldType(String displayFieldType)
    • getDisplayFieldType

      @NotNull public @NotNull String getDisplayFieldType()
      Get displayFieldType
      Specified by:
      getDisplayFieldType in interface DisplayFieldsItem
      Returns:
      displayFieldType
    • setDisplayFieldType

      public void setDisplayFieldType(String displayFieldType)
    • tags

      public DisplayField tags(List<String> tags)
    • addTagsItem

      public DisplayField addTagsItem(String tagsItem)
    • getTags

      public List<String> getTags()
      A list of tags. Tags provide hints towards the field's purpose to the frontend.
      Returns:
      tags
    • setTags

      public void setTags(List<String> tags)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object