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 java.lang.Object
implements ModuleIF

INTERNAL: ModuleIF implementation that reads functions from an XML resource.


Field Summary
static java.lang.String TYPE_ENCRYPTED
           
static java.lang.String TYPE_PLAIN
           
 
Constructor Summary
Module(java.net.URL location)
           
Module(java.net.URL location, java.lang.String readerType)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_ENCRYPTED

public static final java.lang.String TYPE_ENCRYPTED
See Also:
Constant Field Values

TYPE_PLAIN

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

Module

public Module(java.net.URL location)

Module

public Module(java.net.URL location,
              java.lang.String readerType)
Method Detail

getURL

public java.net.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 java.util.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 java.lang.String toString()
Description copied from interface: ModuleIF
Returns a string representation of this object.

Specified by:
toString in interface ModuleIF
Overrides:
toString in class java.lang.Object


Copyright © 2000-2012 Ontopia.