Class ModlServices


  • public final class ModlServices
    extends java.lang.Object
    A class to act as a facade for the MODL interpreter.
    • Constructor Summary

      Constructors 
      Constructor Description
      ModlServices()
      Default constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String interpretNumRecord​(java.lang.String numRecord)
      Interpret a NUM record MODL string to a JSON String.
      PopulatorResponse interpretPopulatorResponse​(java.lang.String numRecord)
      Interpret a NUM record response from the populator.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ModlServices

        public ModlServices()
        Default constructor
    • Method Detail

      • interpretPopulatorResponse

        public PopulatorResponse interpretPopulatorResponse​(java.lang.String numRecord)
                                                     throws NumBadRecordException
        Interpret a NUM record response from the populator.
        Parameters:
        numRecord - The NUM record string.
        Returns:
        The interpreted result as a PopulatorResponse object.
        Throws:
        NumBadRecordException - on error