Class AGearData
java.lang.Object
de.rpgframework.genericrpg.data.DataItem
de.rpgframework.genericrpg.data.ComplexDataItem
de.rpgframework.genericrpg.items.AGearData
- All Implemented Interfaces:
ChoiceOrigin,Cloneable
- Direct Known Subclasses:
AlternateUsage,PieceOfGear,PieceOfGearVariant
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ItemAttributeDefinition> protected Map<IItemAttribute, ItemAttributeDefinition> Comma.separated list of flagsWays to apply this main/variant of an item.Fields inherited from class de.rpgframework.genericrpg.data.ComplexDataItem
choices, hasLevel, modifications, requires, userSelectableFlagsFields inherited from class de.rpgframework.genericrpg.data.DataItem
datasets, id, lang, languageAlternatives, logger, parentItem, parentSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidgetAttribute(IItemAttribute attrib) getAttributes(String variantID) getFlags()abstract List<? extends IGearTypeData> <T extends IGearTypeData>
TgetTypeData(Class<T> clazz) booleanvoidsetAttribute(IItemAttribute attrib, int value) voidsetAttribute(IItemAttribute attrib, Formula value) voidsetAttribute(IItemAttribute attrib, Object value) voidvoidvalidate()Used in deriving classes to perform validation checks on loading, if necessaryMethods inherited from class de.rpgframework.genericrpg.data.ComplexDataItem
addChoice, addOutgoingModifications, addUserSelectableFlag, getChoice, getChoice, getChoice, getChoiceName, getChoiceOptionString, getChoiceOptionStrings, getChoices, getHardcodedChoice, getModificationChoice, getOutgoingModifications, getRequirements, getUserSelectableFlags, getVariantName, hasLevel, hasUserSelectableFlag, resolveWithinItem, setHasLevelMethods 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
-
attributes
@ElementList(entry="attrdef", type=ItemAttributeDefinition.class, inline=true) protected List<ItemAttributeDefinition> attributes -
flags
-
cache
-
usages
-
-
Constructor Details
-
AGearData
public AGearData()
-
-
Method Details
-
getTypeData
-
getTypeData
-
validate
public void validate()Description copied from class:ComplexDataItemUsed in deriving classes to perform validation checks on loading, if necessary- Overrides:
validatein classComplexDataItem- See Also:
-
getAttributes
-
getAttributes
-
getAttribute
-
setAttribute
-
setAttribute
-
setAttribute
-
setAttribute
-
addUsage
-
getUsages
-
getUsage
-
getFlags
-
hasFlag
-
addFlags
-