Class Worldattribute

Object
Worldattribute
All Implemented Interfaces:
Serializable, Ownage

@Entity public class Worldattribute extends Object implements Serializable, Ownage
Author:
maartenl
See Also:
  • Constructor Details

    • Worldattribute

      public Worldattribute()
    • Worldattribute

      public Worldattribute(String name)
    • Worldattribute

      public Worldattribute(String name, String type)
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getContents

      public String getContents()
    • setContents

      public void setContents(String contents)
    • getOwner

      public Admin getOwner()
      Description copied from interface: Ownage
      Retrieves the owner, the administrator, of this object. In case this is null, anyone can edit the object.
      Specified by:
      getOwner in interface Ownage
      Returns:
    • setOwner

      public void setOwner(Admin owner)
      Description copied from interface: Ownage
      Sets the owner, the administrator, of this object.
      Specified by:
      setOwner in interface Ownage
      Parameters:
      owner - the owner/administrator of the object. In case this is null, which is allowed, any administrator can edit this object. This is what happens when an object is "disowned".
    • getCreation

      public LocalDateTime getCreation()
    • setCreation

      public void setCreation(LocalDateTime creation)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object