|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.attributes.DefaultSealable
Implementation of the Sealable
interface. Subclasses should call
checkSealed()
before setting any bean properties.
Constructor Summary | |
DefaultSealable()
Default ctor. |
Method Summary | |
protected void |
checkSealed()
Checks if the seal() method has been called and throws a
IllegalStateException if it has. |
void |
seal()
Seals this attribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultSealable()
Method Detail |
protected void checkSealed() throws IllegalStateException
seal()
method has been called and throws a
IllegalStateException
if it has.
IllegalStateException
- if this attribute has been sealed.public void seal()
checkSealed()
method will result in an
IllegalStateException
being thrown.
seal
in interface Sealable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |