java.lang.Object
de.espirit.firstspirit.access.store.templatestore.gom.Item
de.espirit.firstspirit.access.store.templatestore.gom.Preset
All Implemented Interfaces:
ValueOfContractor, Serializable
Direct Known Subclasses:
DatePreset, InitialPreset

public class Preset extends Item
Interface representing the general gom preset modes. An enum type is not applicable to replace this mode designating type to allow for optionally extending the kind and number of available modes.
Since:
4.0.55
See Also:
  • Field Details

  • Constructor Details

    • Preset

      protected Preset(String name)
      Constructor taking the preset mode name.
      Parameters:
      name - The preset's name.
      Since:
      4.0.55
  • Method Details

    • isDefault

      public boolean isDefault()
      Indicates this preset mode to be the default one.
      Returns:
      true, if this is the default preset.
      Since:
      4.0.55
    • isCopy

      public boolean isCopy()
      Indicates this preset mode to be the copy setting.
      Returns:
      true, if this is the copy preset.
      Since:
      4.0.55
    • valueOf

      public static Preset valueOf(String name)
      Factory to provide a matching preset mode to the given name.
      Parameters:
      name - The name.
      Returns:
      The matching preset mode.
      Since:
      4.0.55