public enum NoDocumentContext extends Enum<NoDocumentContext> implements DocumentContext
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
index()
Index last read, only available for read contexts.
|
boolean |
isData() |
boolean |
isMetaData() |
boolean |
isNotComplete() |
boolean |
isPresent() |
void |
metaData(boolean metaData)
Set the metaData flag.
|
int |
sourceId() |
static NoDocumentContext |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NoDocumentContext[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Wire |
wire() |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfrollbackOnClosepublic static final NoDocumentContext INSTANCE
public static NoDocumentContext[] values()
for (NoDocumentContext c : NoDocumentContext.values()) System.out.println(c);
public static NoDocumentContext 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 nullpublic boolean isMetaData()
isMetaData in interface DocumentContextpublic void metaData(boolean metaData)
DocumentContextmetaData in interface DocumentContextmetaData - write as metaData instead of data if true.public boolean isPresent()
isPresent in interface DocumentContextpublic boolean isData()
isData in interface DocumentContextpublic Wire wire()
wire in interface DocumentContextpublic int sourceId()
sourceId in interface SourceContextpublic long index()
SourceContextindex in interface SourceContextpublic boolean isNotComplete()
isNotComplete in interface DocumentContextpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2019. All rights reserved.