public final class Metadata extends SqllrObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Metadata.Builder
Collects the members of a new
Metadata. |
SqllrObject.Reader<T>| Modifier and Type | Field and Description |
|---|---|
static List<String> |
MEMBERS
The members the schema defines, in schema order.
|
static SqllrObject.Reader<Metadata> |
READER
Reads a JSON object as a
Metadata. |
static List<String> |
REQUIRED
The members the schema requires.
|
| Modifier and Type | Method and Description |
|---|---|
static Metadata.Builder |
builder() |
static Metadata |
fromJson(Object json)
A
Metadata with the members of a JSON object, all kept. |
List<MetadataArtifact> |
getArtifacts()
The member
artifacts. |
String |
getDigest()
The member
digest. |
Map<String,Extension> |
getExtensions()
The member
extensions. |
String |
getStatus()
The member
status. |
Metadata.Builder |
toBuilder()
A builder holding every member of this object.
|
public static final SqllrObject.Reader<Metadata> READER
Metadata.public static Metadata fromJson(Object json)
Metadata with the members of a JSON object, all kept.public static Metadata.Builder builder()
public Metadata.Builder toBuilder()
public String getStatus()
status. The metadata status of the analysis. Registry group
'metadataStatus' (Section 6.2). Null when absent; throws IllegalStateException when the
member holds another JSON type.public String getDigest()
digest. MetadataDigestV1 of artifacts (algorithms/identity-v1.md, Section
5.11): an input of every analysis context of the analysis; required unless the status is
NONE. A SHA-256 digest: 64 lowercase hexadecimal characters. Null when absent; throws
IllegalStateException when the member holds another JSON type.public List<MetadataArtifact> getArtifacts()
artifacts. Every metadata artifact supplied to the analysis, consulted or
not: its format id and the SHA-256 of its bytes. Required unless the status is NONE. 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.