org.apache.commons.attributes
Class DefaultSealable
java.lang.Object
org.apache.commons.attributes.DefaultSealable
- Sealable
public class DefaultSealable
extends java.lang.Object
Implementation of the
Sealable
interface. Subclasses should call
checkSealed()
before setting any bean properties.
private boolean | sealed - Boolean flag indicating whether the
seal() method
has been called.
|
protected void | checkSealed() - Checks if the
seal() method has been called and throws a
IllegalStateException if it has.
|
void | seal() - Seals this attribute.
|
sealed
private boolean sealed
Boolean flag indicating whether the seal()
method
has been called.
DefaultSealable
public DefaultSealable()
Default ctor.
checkSealed
protected void checkSealed()
throws IllegalStateException
Checks if the
seal()
method has been called and throws a
IllegalStateException
if it has.
seal
public void seal()
Seals this attribute. Any future calls to the
checkSealed()
method will result in an
IllegalStateException
being thrown.
- seal in interface Sealable