Class SapSystemListItem

java.lang.Object
org.frankframework.util.SapSystemListItem
All Implemented Interfaces:
INamedObject

public abstract class SapSystemListItem extends Object implements INamedObject
Base class for items of global lists. The list itself is contained as a static field. New items are registerd using registerItem(). Typical use: SapSystem.getSystem(name).<method to execute>
Author:
Gerrit van Brakel
  • Field Details

    • log

      protected org.apache.logging.log4j.Logger log
  • Constructor Details

    • SapSystemListItem

      public SapSystemListItem()
  • Method Details

    • configure

      public void configure()
      configure() will be called once for each item registered, except for the aliasses.
    • getItem

      protected static SapSystemListItem getItem(String itemName)
      Get an item by Name. Descender classes should implement a similar method, that returns an object of its own type.
    • getRegisteredNames

      public static Iterator<String> getRegisteredNames()
      Get the system names as an Iterator, alphabetically sorted
      Returns:
      Iterator with the realm names, alphabetically sorted
    • getRegisteredNamesAsList

      public static List<String> getRegisteredNamesAsList()
      Gets a list with system names.
    • registerItem

      public static void registerItem(SapSystemListItem item)
      Register an item in the list
    • clear

      public static void clear()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setName

      public void setName(String string)
      The name under which the item can be retrieved.
      Specified by:
      setName in interface INamedObject
    • getName

      public String getName()
      Specified by:
      getName in interface INamedObject
    • setAliasFor

      public void setAliasFor(String string)
      If this attribute is set, the item is only an alias for another item.
    • getAliasFor

      public String getAliasFor()