|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Document.BasicState> com.levigo.jadice.document.Document.BasicState
public static enum Document.BasicState
An enum consisting of the default document states. The states contained therein are recognized
by the default command implementations. If you add document states by supplying your own
implementation of the Document.State
interface, you may have to extend or re-implement those
commands.
Enum Constant Summary | |
---|---|
BUSY
This Document.State has a meaning similar to LOADING . |
|
CLOSED
Usually this Document.State marks the end of a Document 's lifecycle and is its
terminal Document.State . |
|
LOADING
If this Document.State is set, it marks a Document as loading and therefore still
incomplete. |
|
READY
This state marks a Document as being ready for use. |
|
UNKNOWN
Marks a Document as being in an unusual, unexpected, or generally unspecified state. |
Method Summary | |
---|---|
static Document.BasicState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Document.BasicState[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Document.BasicState READY
Document
as being ready for use. Commands or components relying on
a Document
's state usually enable their functionality whenever READY is set.
public static final Document.BasicState LOADING
Document.State
is set, it marks a Document
as loading and therefore still
incomplete. It might be already useful but some parts of it may be missing.
Reader and Fluent Reader API both set this Document.State
when loading into a Document
begins. Usually, it need not be used by integrators directly. BUSY is a semantically similar
alternative.
public static final Document.BasicState BUSY
Document.State
has a meaning similar to LOADING
. It is intended to be
used by integrators in situations in which Document
s are being restructured or in
some other way worked with and therefore not ready for other uses. BUSY has a broader range
of applications than LOADING
which specifically indicates a loading
process by the Reader or Fluent Reader API.
public static final Document.BasicState CLOSED
Document.State
marks the end of a Document
's lifecycle and is its
terminal Document.State
. After a Document
has been disposed of it will be in this
Document.State
. It is also possible to set this state directly and transition from it to some
other Document.State
as long as the Document
has not yet been disposed of. In this
case, CLOSED can take the meaning of "temporarily closed".
which automatically attempts to set state CLOSED and, if the state
change isn't intercepted, performs clean-up tasks and disposes of the {@link Document}.
,
which sets state CLOSED without consulting interceptors
public static final Document.BasicState UNKNOWN
Document
as being in an unusual, unexpected, or generally unspecified state.
This could be the result of a processing error, but need not necessarily be.
Method Detail |
---|
public static Document.BasicState[] values()
for (Document.BasicState c : Document.BasicState.values()) System.out.println(c);
public static Document.BasicState valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |