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 java.lang.Object implements DisplayFieldsItem
DisplayField
-
-
Constructor Summary
Constructors Constructor Description DisplayField()
DisplayField(java.lang.String label, java.lang.String template, java.lang.String displayFieldType)
Constructor with only required parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DisplayField
addTagsItem(java.lang.String tagsItem)
DisplayField
arguments(java.util.Map<java.lang.String,DisplayFieldArgument> arguments)
DisplayField
canCopy(java.lang.Boolean canCopy)
DisplayField
displayFieldType(java.lang.String displayFieldType)
boolean
equals(java.lang.Object o)
java.util.Map<java.lang.String,DisplayFieldArgument>
getArguments()
Arguments to be applied to the template.java.lang.Boolean
getCanCopy()
Boolean flag, allows the value to be copied via the copy button component.@NotNull java.lang.String
getDisplayFieldType()
Get displayFieldType@NotNull java.lang.String
getLabel()
A label for a display field.java.util.List<java.lang.String>
getTags()
A list of tags.@NotNull java.lang.String
getTemplate()
Value template, can consist of multiple tokens, for which value and formatting options can be provided with display-field arguments.int
hashCode()
DisplayField
label(java.lang.String label)
DisplayField
putArgumentsItem(java.lang.String key, DisplayFieldArgument argumentsItem)
void
setArguments(java.util.Map<java.lang.String,DisplayFieldArgument> arguments)
void
setCanCopy(java.lang.Boolean canCopy)
void
setDisplayFieldType(java.lang.String displayFieldType)
void
setLabel(java.lang.String label)
void
setTags(java.util.List<java.lang.String> tags)
void
setTemplate(java.lang.String template)
DisplayField
tags(java.util.List<java.lang.String> tags)
DisplayField
template(java.lang.String template)
java.lang.String
toString()
-
-
-
Method Detail
-
label
public DisplayField label(java.lang.String label)
-
getLabel
@NotNull public @NotNull java.lang.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(java.lang.String label)
-
template
public DisplayField template(java.lang.String template)
-
getTemplate
@NotNull public @NotNull java.lang.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(java.lang.String template)
-
canCopy
public DisplayField canCopy(java.lang.Boolean canCopy)
-
getCanCopy
public java.lang.Boolean getCanCopy()
Boolean flag, allows the value to be copied via the copy button component.- Returns:
- canCopy
-
setCanCopy
public void setCanCopy(java.lang.Boolean canCopy)
-
arguments
public DisplayField arguments(java.util.Map<java.lang.String,DisplayFieldArgument> arguments)
-
putArgumentsItem
public DisplayField putArgumentsItem(java.lang.String key, DisplayFieldArgument argumentsItem)
-
getArguments
public java.util.Map<java.lang.String,DisplayFieldArgument> getArguments()
Arguments to be applied to the template. Keyed by replacement token without curly braces.- Returns:
- arguments
-
setArguments
public void setArguments(java.util.Map<java.lang.String,DisplayFieldArgument> arguments)
-
displayFieldType
public DisplayField displayFieldType(java.lang.String displayFieldType)
-
getDisplayFieldType
@NotNull public @NotNull java.lang.String getDisplayFieldType()
Get displayFieldType- Specified by:
getDisplayFieldType
in interfaceDisplayFieldsItem
- Returns:
- displayFieldType
-
setDisplayFieldType
public void setDisplayFieldType(java.lang.String displayFieldType)
-
tags
public DisplayField tags(java.util.List<java.lang.String> tags)
-
addTagsItem
public DisplayField addTagsItem(java.lang.String tagsItem)
-
getTags
public java.util.List<java.lang.String> getTags()
A list of tags. Tags provide hints towards the field's purpose to the frontend.- Returns:
- tags
-
setTags
public void setTags(java.util.List<java.lang.String> tags)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-