Interface ParsedSchemaAndValue
public interface ParsedSchemaAndValue
A parsed schema with a value, produced by deserialization.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault List<RuleResult>Results of the rules visited during deserialization, one entry per rule (including rules that were skipped because they were disabled, in the wrong execution environment, or whose mode did not match the current phase).The reader schema used to interpret the value.getValue()The deserialized value, projected into the reader schema.default ParsedSchemaThe writer's parsed schema, as it appeared on the wire payload.default ParsedSchemaAndValue.SchemaInfoIdentifying info (subject / id / version / guid) for the writer schema, resolved from the wire payload.
-
Method Details
-
getSchema
ParsedSchema getSchema()The reader schema used to interpret the value. When the consumer has registered a reader schema that differs from the writer schema on the wire, this returns the reader schema andgetWriterSchema()returns the writer schema; otherwise the two may be equal. -
getValue
Object getValue()The deserialized value, projected into the reader schema. Validating this againstgetWriterSchema()may fail when the reader and writer schemas differ structurally. -
getWriterSchema
The writer's parsed schema, as it appeared on the wire payload. May differ fromgetSchema()when schema projection / migration is in play. Returnsnullwhen the deserializer did not resolve a writer schema (unusual). -
getWriterSchemaInfo
Identifying info (subject / id / version / guid) for the writer schema, resolved from the wire payload. Returnsnullwhen nothing was resolved. Individual fields on a populatedSchemaInfomay still be null (some deserializer paths know the id but not the guid, for example). -
getRuleResults
Results of the rules visited during deserialization, one entry per rule (including rules that were skipped because they were disabled, in the wrong execution environment, or whose mode did not match the current phase). Order matches rule execution order.Returns an empty, unmodifiable list when no rules ran.
-