Class ComplexDataItem
java.lang.Object
de.rpgframework.genericrpg.data.DataItem
de.rpgframework.genericrpg.data.ComplexDataItem
- All Implemented Interfaces:
ChoiceOrigin
- Direct Known Subclasses:
AGearData,AItemEnhancement,ChoiceOption,ISkill,LevellingProfile,SetItem,SkillSpecialization
-
Field Summary
FieldsModifier and TypeFieldDescriptionWhen instantiating an entity of this item, the following choices must be presented to the user.protected booleanprotected ModificationListprotected RequirementListThese flags can be freely selected by a userFields inherited from class de.rpgframework.genericrpg.data.DataItem
datasets, id, lang, languageAlternatives, logger, parentItem, parentSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddOutgoingModifications(List<Modification> value) voidgetChoice(ModifiedObjectType type) getChoiceName(Choice choice, Locale loc) getChoiceOptionString(Choice choice, HasName opt, Locale loc) String[]getChoiceOptionStrings(Choice choice, ChoiceOption opt, Locale loc) protected ChoicegetHardcodedChoice(UUID uuid) Override by specific implements (like AUGMENTATION_QUALITY fo SR6)getModificationChoice(UUID uuid) getUserSelectableFlags(Class<T> cls) getVariantName(PieceOfGearVariant<?> variant, Locale loc) booleanhasLevel()booleanvoidvoidsetHasLevel(boolean hasLevel) voidvalidate()Used in deriving classes to perform validation checks on loading, if necessaryMethods inherited from class de.rpgframework.genericrpg.data.DataItem
addLanguageAlternative, assignToDataSet, getAssignedDataSets, getDescription, getDescription, getFirstParent, getId, getLanguage, getLanguageAlternative, getLanguageAlternatives, getLocalizedString, getLocalizedString, getName, getName, getPageReferences, getResource, getShortName, getTypeString, hasLanguageAlternative, hasLicense, hasLicense, inDataSets, preferWithLocale, setId, setParentItem, toListPreferringLocale, toString
-
Field Details
-
choices
-
modifications
-
requires
-
hasLevel
@Attribute(name="hasLevel") protected boolean hasLevel -
userSelectableFlags
-
-
Constructor Details
-
ComplexDataItem
public ComplexDataItem()
-
-
Method Details
-
getChoices
-
addChoice
-
getChoice
- Specified by:
getChoicein interfaceChoiceOrigin- See Also:
-
getChoice
-
getChoice
-
getModificationChoice
-
getHardcodedChoice
-
getOutgoingModifications
-
addOutgoingModifications
-
getRequirements
-
hasLevel
public boolean hasLevel() -
setHasLevel
public void setHasLevel(boolean hasLevel) -
validate
Used in deriving classes to perform validation checks on loading, if necessary- Overrides:
validatein classDataItem- Throws:
DataErrorException
-
resolveWithinItem
-
getChoiceName
-
getVariantName
-
getChoiceOptionStrings
- Parameters:
choice-opt-loc-- Returns:
- 0=Option name, 1=Option description
-
getChoiceOptionString
-
getUserSelectableFlags
-
hasUserSelectableFlag
-
addUserSelectableFlag
-