Interface IChoiceParameterLinksModel<T extends AbstractChoiceParameterLink,U>

Type Parameters:
T - Type of choice parameter links in the list provided by the model
U - Type of the attributes provided by the model
All Superinterfaces:
Collection<T>, IAttributeProvider<U>, IList<T>, IModel, Iterable<T>, IValidable, List<T>
All Known Subinterfaces:
IFormChoiceParameterLinksModel, IMdChoiceParameterLinksModel
All Known Implementing Classes:
BmChoiceParameterLinksModel, EmfChoiceParameterLinksModel, FormBmChoiceParameterLinksModel, StandardObjectChoiceParameterLinksModel

public interface IChoiceParameterLinksModel<T extends AbstractChoiceParameterLink,U> extends IList<T>, IAttributeProvider<U>
The contract for Choice parameter links models.
  • Method Details

    • getScriptVariant

      ScriptVariant getScriptVariant()
      Returns the script variant used in the model.
      Returns:
      Script variant
    • getAllowedParameterNames

      Collection<String> getAllowedParameterNames()
      Returns the collection of allowed parameter names.
      Returns:
      Collection of allowed parameter names
    • toAttribute

      U toAttribute(T choiceParameterLink)
      Extracts the attribute from a given choice parameter link.
      Parameters:
      choiceParameterLink - Choice parameter link to extract the attribute from
      Returns:
      The attribute
    • toLink

      T toLink(U attribute)
      Creates a new choice parameter link based on a given attribute.
      Parameters:
      attribute - Attribute which will be used in the created choice parameter link
      Returns:
      A new choice parameter link
    • areAttributesEqual

      boolean areAttributesEqual(U attribute1, U attribute2)
      Checks if two given attributes are equal.
      Parameters:
      attribute1 - The first attribute
      attribute2 - The second attribute
      Returns:
      true if the attributes are equal and false otherwise