Class ExternalDataTypeProvider

java.lang.Object
com.semedy.reasoner.api.symboltable.ExternalDataTypeProvider
All Implemented Interfaces:
Iterable<ExternalDataType>

public class ExternalDataTypeProvider extends Object implements Iterable<ExternalDataType>
manages a list of external data types and the sequence they are applied
  • Constructor Details

    • ExternalDataTypeProvider

      public ExternalDataTypeProvider()
  • Method Details

    • iterator

      public Iterator<ExternalDataType> iterator()
      Enumerate the ExternalDataTypes.
      This sequence also shows the application sequence of the ExternalDataTypes
      Specified by:
      iterator in interface Iterable<ExternalDataType>
      Returns:
    • registerExternalDataType

      public void registerExternalDataType(ExternalDataType datatype, int index)
      add a ExternalDataType at index
      Parameters:
      datatype - , the external data type
      index - , the index to insert it into list of data types
    • registerExternalDataType

      public void registerExternalDataType(ExternalDataType datatype)
      add a ExternalDataType at the last position
      Parameters:
      datatype - , the external data type
    • getExternalDataType

      public ExternalDataType getExternalDataType(int id)
      return the external data type by id
      Parameters:
      id -
      Returns: