EDU.utwente.CoCompose.util
Class DefaultUniqueRealm

java.lang.Object
  extended byEDU.utwente.CoCompose.util.DefaultUniqueRealm
All Implemented Interfaces:
UniqueRealm

public class DefaultUniqueRealm
extends java.lang.Object
implements UniqueRealm

Implements a UniqueRealm.

Version:
0.0.15, 22 March 2002
Author:
Dennis Wagelaar

Constructor Summary
DefaultUniqueRealm()
          Constructs a DefaultUniqueRealm.
 
Method Summary
 java.lang.String getName()
          Gets the name of the model/unique realm.
 boolean isUnique(java.lang.String value)
          Checks whether the given value is unique within the realm.
 void register(java.lang.String value)
          Registers a new value in the realm.
 void setName(java.lang.String name)
          Sets the name of the model/unique realm.
 void unRegister(java.lang.String value)
          Unregisters a value from the realm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUniqueRealm

public DefaultUniqueRealm()
Constructs a DefaultUniqueRealm.

Method Detail

isUnique

public boolean isUnique(java.lang.String value)
Checks whether the given value is unique within the realm.

Specified by:
isUnique in interface UniqueRealm
Parameters:
value - The value to check.
Returns:
True if and only if the value is unique within the realm.

register

public void register(java.lang.String value)
Registers a new value in the realm.

Specified by:
register in interface UniqueRealm
Parameters:
value - The value to register.

unRegister

public void unRegister(java.lang.String value)
Unregisters a value from the realm.

Specified by:
unRegister in interface UniqueRealm
Parameters:
value - The value to unregister.

getName

public java.lang.String getName()
Gets the name of the model/unique realm.

Specified by:
getName in interface UniqueRealm
Returns:
The name of the model/unique realm.

setName

public void setName(java.lang.String name)
Sets the name of the model/unique realm.

Parameters:
name - The name of the model/unique realm.