Class LookupTable

java.lang.Object
com.aquima.interactions.ds.xml.model.LookupTable

public class LookupTable extends Object
Implementation of the lookup table interface.
Since:
5.0
Author:
O. Kerpershoek
  • Constructor Details

    • LookupTable

      public LookupTable()
  • Method Details

    • addElement

      public void addElement(IElementDefinition definition)
      This method may be used to add an element definition to the lookup table.
      Parameters:
      definition - The element definition that should be added.
    • getElements

      protected List<IElementDefinition> getElements()
      This functions returns all the currently known elements of a lookup table.
      Returns:
      A list containing all known elements
    • replaceElement

      protected void replaceElement(IElementDefinition definition)
    • getGuids

      protected GUID[] getGuids()
    • hasElementForGuid

      public boolean hasElementForGuid(GUID guid)
      This method returns a boolean indicating if an element definition is present for the specified ID.
      Parameters:
      guid - The ID for which the presence of an element definition should be checked.
      Returns:
      a boolean indicating if an element definition is present for the specified ID.
    • getByGuid

      public IElementDefinition getByGuid(GUID guid)
      This method returns the element definition for the specified ID.
      Parameters:
      guid - The ID for which the definition is requested.
      Returns:
      The element definition with the specified ID.
    • getNames

      protected String[] getNames()
    • hasElementForName

      public boolean hasElementForName(String name)
      This method returns a boolean indicating if an element definition is present for the specified name.
      Parameters:
      name - The name for which the presence of an element definition should be checked.
      Returns:
      a boolean indicating if an element definition is present for the specified name.
    • getByName

      public IElementDefinition getByName(String name)
      This method returns the element definition for the specified name.
      Parameters:
      name - The name for which the definition is requested.
      Returns:
      The element definition with the specified name.
    • getElementCount

      public int getElementCount()
      This method returns the number of elements that are present in this table.
      Returns:
      the number of elements that are present in this table.
    • toArray

      protected void toArray(Object[] result)