Class Choice
java.lang.Object
de.rpgframework.genericrpg.data.Choice
- All Implemented Interfaces:
Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected StringMaximum valueprotected StringOptionally references a type from ModifiedObjectTypeprotected List<ChoiceOption> protected ModifiedObjectTypeWhat type of data is modifiedprotected UUID -
Constructor Summary
ConstructorsConstructorDescriptionChoice()Choice(UUID uuid, ModifiedObjectType type) Choice(UUID uuid, ModifiedObjectType type, String ref) -
Method Summary
Modifier and TypeMethodDescriptionclone()String[]intgetCount()Integer[]For choicesgetSubOption(String subOption) getUUID()booleanvoidsetChoiceOptions(String tokenizedString) voidsetChoiceOptions(String[] values) voidsetI18NKey(String val) voidsetMaxFormula(Formula value) voidsetSource(ComplexDataItem source) voidsetTypeReference(String value) toString()
-
Field Details
-
type
What type of data is modified -
ref
Optionally references a type from ModifiedObjectType -
max
Maximum value -
choiceOptions
-
uuid
-
subOptions
@ElementList(type=ChoiceOption.class, entry="subOption", inline=true) protected List<ChoiceOption> subOptions
-
-
Constructor Details
-
Choice
public Choice() -
Choice
-
Choice
-
Choice
-
-
Method Details
-
clone
-
toString
-
getChooseFrom
- Returns:
- the type
-
getUUID
- Returns:
- the uuid
-
getTypeReference
- Returns:
- the uuid
-
setTypeReference
-
getDistribute
-
getRawChoiceOptions
-
getChoiceOptions
-
setChoiceOptions
-
setChoiceOptions
-
isNegated
public boolean isNegated() -
getCount
public int getCount()- Returns:
- the count
-
getSource
- Returns:
- the source
-
setSource
- Parameters:
source- the source to set
-
getSubOptions
- Returns:
- the subOptions
-
getSubOption
-
getI18nKey
-
setI18NKey
-
getMaxFormula
-
setMaxFormula
-