Klasse DataItemModification

java.lang.Object
de.rpgframework.genericrpg.modification.Modification
de.rpgframework.genericrpg.modification.DataItemModification
Alle implementierten Schnittstellen:
Datable, Cloneable
Bekannte direkte Unterklassen:
AllowModification, ApplyableValueModification, EmbedModification, RecommendationModification, ValueModification

@Root(name="itemmod") public class DataItemModification extends Modification implements Cloneable, Datable
A modification made to the current item it is attached to
  • Felddetails

    • ref

      @Attribute(name="ref", required=true) protected String ref
    • variant

      @Attribute protected String variant
    • choice

      @Attribute(name="choice", required=false) protected UUID choice
    • remove

      @Attribute protected boolean remove
    • choiceOptions

      @Attribute(name="options") protected String choiceOptions
      For modifications with a choice, this can limit the options
    • restrictedToMode

      @Attribute(name="mode", required=false) protected String restrictedToMode
      Identifier of mode when the modification applies. Prepend a '!' to express a mode that may NOT be active
    • decisions

      @ElementList(type=Decision.class, entry="decision", inline=true) protected List<Decision> decisions
    • expCost

      @Attribute protected int expCost
    • date

      @Attribute protected Date date
    • id

      @Attribute protected UUID id
      May be used to identify automatically added elements - e.g. like a lifestyle added to a character - and therefore prevent duplicate additions
  • Konstruktordetails

    • DataItemModification

      public DataItemModification()
    • DataItemModification

      public DataItemModification(ModifiedObjectType type, String ref)
  • Methodendetails

    • clone

      public DataItemModification clone()
      Setzt außer Kraft:
      clone in Klasse Modification
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Modification
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
      Siehe auch:
    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • getResolvedKey

      public <T> T getResolvedKey()
    • getAsKeys

      public String[] getAsKeys()
    • getConnectedChoice

      public UUID getConnectedChoice()
    • validate

      public void validate() throws ReferenceException
      Beschreibung aus Klasse kopiert: Modification
      Validate content in this modification during load
      Setzt außer Kraft:
      validate in Klasse Modification
      Löst aus:
      ReferenceException
      Siehe auch:
    • getDecisions

      public List<Decision> getDecisions()
    • getDecision

      public Decision getDecision(UUID uuid)
    • setDecisions

      public void setDecisions(List<Decision> decisions)
    • getChoiceOptions

      public String getChoiceOptions()
      Gibt zurück:
      the choiceOptions
    • getExpCost

      public int getExpCost()
      Gibt zurück:
      the expCost
    • setExpCost

      public void setExpCost(int expCost)
      Parameter:
      expCost - the expCost to set
    • getDate

      public Date getDate()
      Beschreibung aus Schnittstelle kopiert: Datable
      Return the date of the change
      Angegeben von:
      getDate in Schnittstelle Datable
      Gibt zurück:
      the date
    • setDate

      public void setDate(Date date)
      Beschreibung aus Schnittstelle kopiert: Datable
      Set the date of the change
      Angegeben von:
      setDate in Schnittstelle Datable
      Parameter:
      date - the date to set
    • isRemove

      public boolean isRemove()
      Gibt zurück:
      the remove
    • setRemove

      public void setRemove(boolean remove)
      Parameter:
      remove - the remove to set
    • getVariant

      public String getVariant()
      Gibt zurück:
      the variant
    • getId

      public UUID getId()
      Gibt zurück:
      the id
    • setId

      public void setId(UUID id)