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, valueOf
isClosed, rollbackOnClose
public 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 DocumentContext
public void metaData(boolean metaData)
DocumentContext
metaData
in interface DocumentContext
metaData
- write as metaData instead of data if true.public boolean isPresent()
isPresent
in interface DocumentContext
public boolean isData()
isData
in interface DocumentContext
public Wire wire()
wire
in interface DocumentContext
public int sourceId()
sourceId
in interface SourceContext
public long index()
SourceContext
index
in interface SourceContext
public boolean isNotComplete()
isNotComplete
in interface DocumentContext
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2020. All rights reserved.