Class CharacterHandle

java.lang.Object
de.rpgframework.character.CharacterHandle
Direct Known Subclasses:
FileBasedCharacterHandle

public abstract class CharacterHandle extends Object
  • Field Details

    • uuid

      protected UUID uuid
    • rules

      protected de.rpgframework.core.RoleplayingSystem rules
    • name

      protected String name
    • desc

      protected String desc
    • lastModified

      protected Date lastModified
    • deleted

      protected boolean deleted
    • shared

      protected boolean shared
    • parsedCharac

      protected transient RuleSpecificCharacterObject<?,?,?,?> parsedCharac
    • attachments

      protected transient List<Attachment> attachments
  • Constructor Details

    • CharacterHandle

      public CharacterHandle()
    • CharacterHandle

      public CharacterHandle(UUID uuid, de.rpgframework.core.RoleplayingSystem rules, String name, String desc, Date lastModified)
  • Method Details

    • getName

      public String getName()
    • getShortDescription

      public String getShortDescription()
    • setShortDescription

      public void setShortDescription(String desc)
    • getRuleIdentifier

      public de.rpgframework.core.RoleplayingSystem getRuleIdentifier()
    • getLastModified

      public Date getLastModified()
    • getUUID

      public UUID getUUID()
    • setUUID

      public void setUUID(UUID value)
    • setName

      public void setName(String value)
    • setRuleIdentifier

      public void setRuleIdentifier(de.rpgframework.core.RoleplayingSystem rules)
    • setLastModified

      public void setLastModified(Date lastModified)
    • getCharacter

      public RuleSpecificCharacterObject getCharacter()
    • setCharacter

      public void setCharacter(RuleSpecificCharacterObject charac) throws IOException
      Throws:
      IOException
    • getPath

      public abstract Path getPath()
    • isDeleted

      public boolean isDeleted()
      Returns:
      the deleted
    • setDeleted

      public void setDeleted(boolean deleted)
      Parameters:
      deleted - the deleted to set
    • isShared

      public boolean isShared()
      Returns:
      the shared
    • setShared

      public void setShared(boolean shared)
      Parameters:
      shared - the shared to set
    • addAttachment

      public void addAttachment(Attachment att)
      Add a cached attachment
    • removeAttachment

      public void removeAttachment(Attachment att)
    • getAttachments

      public Collection<Attachment> getAttachments()