All Packages Class Hierarchy This Package Previous Next Index
Classes implementing this interface should have an internal storage item (e.g. a boolean) that is set when writeProtect() is called. The methods that write data in need of protection should check the status of that item; if it is set, they should throw a WriteProtectionException.
It is not intended that implementations allow write protection to be turned off (i.e. it is one way); instead, a clone method should be defined so that the write protection on the new copy is turned off.
Thread safety should be considered when implementing this class.
public abstract boolean writeProtect()
public abstract boolean isWriteProtected()
All Packages Class Hierarchy This Package Previous Next Index