Class Modification

java.lang.Object
de.rpgframework.genericrpg.modification.Modification
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
CostModification, DataItemModification, ModificationChoice, ModificationGroup, RelevanceModification

public class Modification extends Object implements Cloneable
  • Field Details

    • type

      @Attribute(required=false) protected ModifiedObjectType type
      What type of data is modified
    • apply

      @Attribute(required=false) protected ApplyTo apply
    • when

      @Attribute(required=false) protected ApplyWhen when
    • conditions

      @Attribute(name="cond", required=false) protected String conditions
    • source

      protected transient Object source
      If the modification belongs to a module, this keeps the reference
    • origin

      protected transient Modification.Origin origin
  • Constructor Details

    • Modification

      public Modification()
  • Method Details

    • clone

      public Modification clone()
      Overrides:
      clone in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getSource

      public Object getSource()
    • setSource

      public void setSource(Object src)
    • isConditional

      public boolean isConditional()
    • setConditionString

      public void setConditionString(String value)
    • getConditionString

      public String getConditionString()
    • getReferenceType

      public ModifiedObjectType getReferenceType()
      Returns:
      the type
    • getApplyTo

      public ApplyTo getApplyTo()
      Returns:
      the apply
    • setApplyTo

      public void setApplyTo(ApplyTo apply)
      Parameters:
      when - the when to set
    • getWhen

      public ApplyWhen getWhen()
      Returns:
      the when
    • setWhen

      public void setWhen(ApplyWhen when)
      Parameters:
      when - the when to set
    • validate

      public void validate() throws ReferenceException
      Validate content in this modification during load
      Throws:
      ReferenceException
    • getOrigin

      public Modification.Origin getOrigin()
    • setOrigin

      public <T extends Modification> T setOrigin(Modification.Origin origin)