Class Modification
java.lang.Object
de.rpgframework.genericrpg.modification.Modification
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
CostModification,DataItemModification,ModificationChoice,ModificationGroup,RelevanceModification
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ApplyToprotected Stringprotected Modification.Originprotected ObjectIf the modification belongs to a module, this keeps the referenceprotected ModifiedObjectTypeWhat type of data is modifiedprotected ApplyWhen -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetWhen()booleanvoidsetApplyTo(ApplyTo apply) voidsetConditionString(String value) <T extends Modification>
TsetOrigin(Modification.Origin origin) voidvoidvoidvalidate()Validate content in this modification during load
-
Field Details
-
type
What type of data is modified -
apply
-
when
-
conditions
-
source
If the modification belongs to a module, this keeps the reference -
origin
-
-
Constructor Details
-
Modification
public Modification()
-
-
Method Details
-
clone
-
equals
-
getSource
-
setSource
-
isConditional
public boolean isConditional() -
setConditionString
-
getConditionString
-
getReferenceType
- Returns:
- the type
-
getApplyTo
- Returns:
- the apply
-
setApplyTo
- Parameters:
when- the when to set
-
getWhen
- Returns:
- the when
-
setWhen
- Parameters:
when- the when to set
-
validate
Validate content in this modification during load- Throws:
ReferenceException
-
getOrigin
-
setOrigin
-