fr.ove.openmath.courses
Class CheckedRegistry

java.lang.Object
  extended byfr.ove.openmath.courses.CheckedRegistry

public class CheckedRegistry
extends java.lang.Object

This class to register the pair element name / value (it is a hashtable) and indicates if all the registrations have been done.


Constructor Summary
CheckedRegistry()
          The constructor.
 
Method Summary
 void add(java.lang.String id, OpenMathizable omizable, java.lang.String arg)
          Adds an element in the registery.
 java.lang.String getArg(java.lang.String id)
          Returns the argument name of the element with the specified identifier.
 boolean gotAll()
          Returns true if each key has a non-null associated value.
 void remove(java.lang.String id)
          Removes the specified element form the registery.
 void setOMizable(java.lang.String id, OpenMathizable omizable)
          Set the value of the specified element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckedRegistry

public CheckedRegistry()
The constructor.

Method Detail

add

public void add(java.lang.String id,
                OpenMathizable omizable,
                java.lang.String arg)
Adds an element in the registery.

Parameters:
id - the identifier.
omizable - the object to identify.
arg - the argument number.

remove

public void remove(java.lang.String id)
Removes the specified element form the registery.

Parameters:
id - the elment to remove.

setOMizable

public void setOMizable(java.lang.String id,
                        OpenMathizable omizable)
Set the value of the specified element.

Parameters:
id - the identifier.
omizable - the object to identify.

gotAll

public boolean gotAll()
Returns true if each key has a non-null associated value. false otherwise.


getArg

public java.lang.String getArg(java.lang.String id)
Returns the argument name of the element with the specified identifier.

Parameters:
id - the spcified identifier.


Copyright © 1999-2007 Universit?© de Nice Sophia-Antipolis, I3S, Ove SARL, DFKI and Universit?§t des Saarlandes. All Rights Reserved.