net.ontopia.topicmaps.nav2.impl.basic
Class Module

java.lang.Object
  extended by 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 Summary
static String TYPE_ENCRYPTED
           
static String TYPE_PLAIN
           
 
Constructor Summary
Module(URL location)
           
Module(URL location, String readerType)
           
 
Method Summary
 void addFunction(FunctionIF func)
          Adds a function to this module.
 void clearFunctions()
          Removes all existing functions.
 Collection getFunctions()
          Gets a collection of FunctionIF objects that are contained in this module.
 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.
 String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_ENCRYPTED

public static final String TYPE_ENCRYPTED
See Also:
Constant Field Values

TYPE_PLAIN

public static final String TYPE_PLAIN
See Also:
Constant Field Values
Constructor Detail

Module

public Module(URL location)

Module

public Module(URL location,
              String readerType)
Method Detail

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:
FunctionIF

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


Copyright © 2000-2012 Ontopia.