java.lang.Object
net.ontopia.topicmaps.nav2.impl.basic.Module
All Implemented Interfaces:
ModuleIF

public class Module extends Object implements ModuleIF
INTERNAL: ModuleIF implementation that reads functions from an XML resource.
  • Field Details

  • Constructor Details

    • Module

      public Module(URL location)
    • Module

      public Module(URL location, String readerType)
  • Method Details

    • getURL

      public URL getURL()
      Description copied from interface: ModuleIF
      Gets the URL from where this module was read in.
      Specified by:
      getURL in interface ModuleIF
    • getFunctions

      public Collection getFunctions()
      Description copied from interface: ModuleIF
      Gets a collection of FunctionIF objects that are contained in this module.
      Specified by:
      getFunctions in interface ModuleIF
      See Also:
    • addFunction

      public void addFunction(FunctionIF func)
      Description copied from interface: ModuleIF
      Adds a function to this module.
      Specified by:
      addFunction in interface ModuleIF
    • clearFunctions

      public void clearFunctions()
      Description copied from interface: ModuleIF
      Removes all existing functions.
      Specified by:
      clearFunctions in interface ModuleIF
    • hasResourceChanged

      public boolean hasResourceChanged()
      Description copied from interface: ModuleIF
      Checks if the resource has changed in the meantime by comparing the lastModified fields.
      Specified by:
      hasResourceChanged in interface ModuleIF
    • readIn

      public void readIn() throws NavigatorRuntimeException
      Description copied from interface: ModuleIF
      Reads in functions contained in module from resource.
      Specified by:
      readIn in interface ModuleIF
      Throws:
      NavigatorRuntimeException
    • toString

      public String toString()
      Description copied from interface: ModuleIF
      Returns a string representation of this object.
      Specified by:
      toString in interface ModuleIF
      Overrides:
      toString in class Object