Class Constants

Object
Constants

public class Constants extends Object
Author:
maartenl
  • Field Details

  • Method Details

    • getBasepath

      public static String getBasepath()
      Returns the base file path. This property can be set as a startup parameter called "mmud.base.path". So for instance upon startup "-Dmmud.base.path=/home/payara".
      Returns:
      the base file path to use.
    • getMudfilepath

      public static String getMudfilepath()
    • addInventory

      public static void addInventory(Set<Item> set, StringBuilder builder)
      Adds a descriptive set of the items to the string builder.
      Parameters:
      set - a set of items to be described.
      builder - the builder to append to. Should not be null.
    • addInventoryForRoom

      public static List<PrivateItem> addInventoryForRoom(Set<Item> set)
      Adds a descriptive set of the items.
      Parameters:
      set - a set of items to be described.
      Returns:
      a list of items
    • checkValidation

      public static <T> String checkValidation(T entity)
      Type Parameters:
      T - generic
      Parameters:
      entity - the JPA entity to check
      Returns:
      description of problems with the bean, or null if all is well.