All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.apicurio.registry.serde.ParsedSchemaImpl Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package io.apicurio.registry.serde;

/**
 * This class is deprecated and eventually will be replaced by
 * {@link io.apicurio.registry.resolver.ParsedSchemaImpl}
 */
@Deprecated
public class ParsedSchemaImpl implements ParsedSchema {

    private T parsedSchema;
    private byte[] rawSchema;

    public ParsedSchemaImpl() {
        // empty
    }

    /**
     * @return the parsedSchema
     */
    @Override
    public T getParsedSchema() {
        return parsedSchema;
    }

    /**
     * @param parsedSchema the parsedSchema to set
     */
    public ParsedSchemaImpl setParsedSchema(T parsedSchema) {
        this.parsedSchema = parsedSchema;
        return this;
    }

    /**
     * @return the rawSchema
     */
    @Override
    public byte[] getRawSchema() {
        return rawSchema;
    }

    /**
     * @param rawSchema the rawSchema to set
     */
    public ParsedSchemaImpl setRawSchema(byte[] rawSchema) {
        this.rawSchema = rawSchema;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy