Class Choice

java.lang.Object
de.rpgframework.genericrpg.data.Choice
All Implemented Interfaces:
Cloneable

public class Choice extends Object implements Cloneable
  • Field Details

    • type

      @Attribute(required=true) protected ModifiedObjectType type
      What type of data is modified
    • ref

      @Attribute(required=false) protected String ref
      Optionally references a type from ModifiedObjectType
    • max

      @Attribute(required=false) protected String max
      Maximum value
    • choiceOptions

      @Attribute(name="options") protected String choiceOptions
    • uuid

      @Attribute(required=true) protected UUID uuid
    • subOptions

      @ElementList(type=ChoiceOption.class, entry="subOption", inline=true) protected List<ChoiceOption> subOptions
  • Constructor Details

  • Method Details

    • clone

      public Object clone()
      Overrides:
      clone in class Object
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getChooseFrom

      public ModifiedObjectType getChooseFrom()
      Returns:
      the type
    • getUUID

      public UUID getUUID()
      Returns:
      the uuid
    • getTypeReference

      public String getTypeReference()
      Returns:
      the uuid
    • setTypeReference

      public void setTypeReference(String value)
    • getDistribute

      public Integer[] getDistribute()
      For choices
      Returns:
      The values to distribute (CHOICE only)
    • getRawChoiceOptions

      public String getRawChoiceOptions()
    • getChoiceOptions

      public String[] getChoiceOptions()
    • setChoiceOptions

      public void setChoiceOptions(String tokenizedString)
    • setChoiceOptions

      public void setChoiceOptions(String[] values)
    • isNegated

      public boolean isNegated()
    • getCount

      public int getCount()
      Returns:
      the count
    • getSource

      public ComplexDataItem getSource()
      Returns:
      the source
    • setSource

      public void setSource(ComplexDataItem source)
      Parameters:
      source - the source to set
    • getSubOptions

      public List<ChoiceOption> getSubOptions()
      Returns:
      the subOptions
    • getSubOption

      public ChoiceOption getSubOption(String subOption)
    • getI18nKey

      public String getI18nKey()
    • setI18NKey

      public void setI18NKey(String val)
    • getMaxFormula

      public Formula getMaxFormula()
    • setMaxFormula

      public void setMaxFormula(Formula value)