|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IHasLifecycle
Object that has a lifecycle. Objects implementing this interface can be opened, closed, and have their open state queried. In general, the open state of the object should be reversible, that is, an object may be closed and re-opened. What happens when the object is used when closed is implementation dependent.
| Nested Class Summary | |
|---|---|
static class |
IHasLifecycle.ObjectClosedException
Indicates that the object was not open when some method was called requiring it to be open. |
| Method Summary | |
|---|---|
boolean |
isOpen()
Returns true if the dictionary is open, that is, ready to
accept queries; returns false otherwise |
boolean |
open()
This opens the object by performing any required initialization steps. |
| Methods inherited from interface edu.mit.jwi.data.IClosable |
|---|
close |
| Method Detail |
|---|
boolean open()
throws IOException
false, then subsequent calls to
isOpen() will return false.
true if there were no errors in initialization;
false otherwise.
IOException - if there was IO error while performing initializataionboolean isOpen()
true if the dictionary is open, that is, ready to
accept queries; returns false otherwise
true if the object is open; false
otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||