All Packages Class Hierarchy This Package Previous Next Index
Class aid.cbr.tools.core.memory.casebase.CaseBaseDictionary
java.lang.Object
|
+----aid.cbr.tools.core.memory.casebase.CaseBaseDictionary
- public class CaseBaseDictionary
- extends Object
- implements VetoableChangeListener
A case base dictionary maintains a list of case bases to access them by their names.
In addition, the dictionnary is automatically updated if the case base names are changed.
But, if a case base name is changed to an existing name, then a veto exception is raised
and the modification is rolled back. Thus, a dictionary ensures that declared case bases
have different names.
- Version:
- $Revision$, $Date$
- Author:
- M. Jaczynski
-
_caseBases
-
-
CaseBaseDictionary()
-
-
caseBases()
- Returns an unmodifiable map of this dictionary.
-
clear()
- Clears the dictionary
-
declareCaseBase(CaseBase)
- Declares a new case base to this dictionary.
-
findCaseBaseByName(String)
- Returns a case base by its name.
-
undeclareCaseBase(CaseBase)
- Undeclares a case base from this dictionary.
-
vetoableChange(PropertyChangeEvent)
-
_caseBases
protected Map _caseBases
CaseBaseDictionary
public CaseBaseDictionary()
declareCaseBase
public void declareCaseBase(CaseBase cb) throws CaseBaseDeclarationException
- Declares a new case base to this dictionary.
- Parameters:
- cb - the case base to declare
- Throws: CaseBaseDeclarationException
- if the name of the declared case base is already used in the dictionary
undeclareCaseBase
public void undeclareCaseBase(CaseBase cb)
- Undeclares a case base from this dictionary.
Nothing is done is the case base was not declared.
- Parameters:
- cb - the case base to undeclare [not null]
clear
public void clear()
- Clears the dictionary
caseBases
public Map caseBases()
- Returns an unmodifiable map of this dictionary.
- Returns:
- the map object
findCaseBaseByName
public CaseBase findCaseBaseByName(String name)
- Returns a case base by its name.
- Parameters:
- name - the name [not null]
- Returns:
- the retrieved case base or
null
if not found
vetoableChange
public void vetoableChange(PropertyChangeEvent evt) throws PropertyVetoException
All Packages Class Hierarchy This Package Previous Next Index