public final class Diagnostic extends SqllrObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Diagnostic.Builder
Collects the members of a new
Diagnostic. |
SqllrObject.Reader<T>| Modifier and Type | Field and Description |
|---|---|
static List<String> |
MEMBERS
The members the schema defines, in schema order.
|
static SqllrObject.Reader<Diagnostic> |
READER
Reads a JSON object as a
Diagnostic. |
static List<String> |
REQUIRED
The members the schema requires.
|
| Modifier and Type | Method and Description |
|---|---|
static Diagnostic.Builder |
builder() |
static Diagnostic |
fromJson(Object json)
A
Diagnostic with the members of a JSON object, all kept. |
String |
getCode()
The member
code. |
Map<String,Extension> |
getExtensions()
The member
extensions. |
String |
getMessage()
The member
message. |
String |
getProducerCode()
The member
producerCode. |
Boolean |
getRecoverable()
The member
recoverable. |
Long |
getRef()
The member
ref. |
String |
getSeverity()
The member
severity. |
Span |
getSpan()
The member
span. |
String |
getStage()
The member
stage. |
List<Long> |
getSubjectRefs()
The member
subjectRefs. |
Diagnostic.Builder |
toBuilder()
A builder holding every member of this object.
|
public static final SqllrObject.Reader<Diagnostic> READER
Diagnostic.public static Diagnostic fromJson(Object json)
Diagnostic with the members of a JSON object, all kept.public static Diagnostic.Builder builder()
public Diagnostic.Builder toBuilder()
public Long getRef()
ref. A document-local reference: an integer that is unique across the
whole document (one reference space for every object that carries a ref). Local references
are assigned after merging and have no meaning outside the document (Sections 6.1 and 13).
Null when absent; throws IllegalStateException when the member holds another JSON type.public String getCode()
code. A diagnostic code. Registry group 'diagnosticCodes' (Sections 5.3,
6.5, 7.7, 9.7, 14.2 and 17.1). Null when absent; throws IllegalStateException when the member
holds another JSON type.public String getSeverity()
severity. The severity of a diagnostic. Registry group
'diagnosticSeverity' (Section 6.5). Null when absent; throws IllegalStateException when the
member holds another JSON type.public String getStage()
stage. The validation stage, for a diagnostic produced by validation. A
validation stage. Registry group 'validationStages' (Sections 14.2 and 17.1). Null when
absent; throws IllegalStateException when the member holds another JSON type.public List<Long> getSubjectRefs()
subjectRefs. The objects the diagnostic belongs to; absent when it belongs
to the document. A set of local references. Null when absent; throws IllegalStateException
when the member holds another JSON type.public Span getSpan()
span. The location. Null when absent; throws IllegalStateException when
the member holds another JSON type.public Boolean getRecoverable()
recoverable. Whether the analysis or operation recovered and continued.
Null when absent; throws IllegalStateException when the member holds another JSON type.public String getProducerCode()
producerCode. A producer-specific code that refines code. Null when
absent; throws IllegalStateException when the member holds another JSON type.public String getMessage()
message. A human-readable message; not normative. Null when absent; throws
IllegalStateException when the member holds another JSON type.public Map<String,Extension> getExtensions()
extensions. Extension data keyed by namespace. Every core object may carry
it; it never takes part in a core identity. Null when absent; throws IllegalStateException
when the member holds another JSON type.