net.ontopia.topicmaps.nav2.core
Interface ModuleIF

All Known Implementing Classes:
Module

public interface ModuleIF

INTERNAL: Implemented by an object which represents a module. That is a collection of functions. The module is read in from a location specified by an URL.

See Also:
FunctionIF

Method Summary
 void addFunction(FunctionIF func)
          Adds a function to this module.
 void clearFunctions()
          Removes all existing functions.
 java.util.Collection getFunctions()
          Gets a collection of FunctionIF objects that are contained in this module.
 java.net.URL getURL()
          Gets the URL from where this module was read in.
 boolean hasResourceChanged()
          Checks if the resource has changed in the meantime by comparing the lastModified fields.
 void readIn()
          Reads in functions contained in module from resource.
 java.lang.String toString()
          Returns a string representation of this object.
 

Method Detail

getURL

java.net.URL getURL()
Gets the URL from where this module was read in.


hasResourceChanged

boolean hasResourceChanged()
Checks if the resource has changed in the meantime by comparing the lastModified fields.


readIn

void readIn()
            throws NavigatorRuntimeException
Reads in functions contained in module from resource.

Throws:
NavigatorRuntimeException

clearFunctions

void clearFunctions()
Removes all existing functions.


getFunctions

java.util.Collection getFunctions()
Gets a collection of FunctionIF objects that are contained in this module.

See Also:
FunctionIF

addFunction

void addFunction(FunctionIF func)
Adds a function to this module.


toString

java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class java.lang.Object


Copyright © 2000-2012 Ontopia.