public enum NCQueryState extends Enum<NCQueryState>
NCModel.onQueryState(NCQueryState, NCQueryContext, NCQueryResult, Throwable)
query state callback method.Enum Constant and Description |
---|
QRY_BEFORE
Query state just before the method
NCModel.query(NCQueryContext) is called. |
QRY_ERROR
Query state after query processing failed with unexpected exception.
|
QRY_REJECTED
Query state when query processing is finished with
NCRejection exception. |
QRY_RESULT
Query state after
NCModel.query(NCQueryContext) method returned the result. |
Modifier and Type | Method and Description |
---|---|
static NCQueryState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NCQueryState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NCQueryState QRY_BEFORE
NCModel.query(NCQueryContext)
is called.public static final NCQueryState QRY_REJECTED
NCRejection
exception.NCRejection
public static final NCQueryState QRY_RESULT
NCModel.query(NCQueryContext)
method returned the result.
Note that only with this state the callback method will have a non-null query result parameter.public static final NCQueryState QRY_ERROR
public static NCQueryState[] values()
for (NCQueryState c : NCQueryState.values()) System.out.println(c);
public static NCQueryState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020 NLPCraft. All rights reserved.