Package io.apicurio.registry.resolver
Class ParsedSchemaImpl<T>
- java.lang.Object
-
- io.apicurio.registry.resolver.ParsedSchemaImpl<T>
-
- All Implemented Interfaces:
ParsedSchema<T>
public class ParsedSchemaImpl<T> extends Object implements ParsedSchema<T>
- Author:
- Fabian Martinez
-
-
Constructor Summary
Constructors Constructor Description ParsedSchemaImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetParsedSchema()byte[]getRawSchema()List<ParsedSchema<T>>getSchemaReferences()booleanhasReferences()StringreferenceName()ParsedSchemaImpl<T>setParsedSchema(T parsedSchema)ParsedSchemaImpl<T>setRawSchema(byte[] rawSchema)ParsedSchemaImpl<T>setReferenceName(String referenceName)set the name to be used when referencing this schemaParsedSchemaImpl<T>setSchemaReferences(List<ParsedSchema<T>> schemaReferences)
-
-
-
Method Detail
-
getParsedSchema
public T getParsedSchema()
- Specified by:
getParsedSchemain interfaceParsedSchema<T>- Returns:
- the parsedSchema
-
setParsedSchema
public ParsedSchemaImpl<T> setParsedSchema(T parsedSchema)
- Parameters:
parsedSchema- the parsedSchema to set
-
getRawSchema
public byte[] getRawSchema()
- Specified by:
getRawSchemain interfaceParsedSchema<T>- Returns:
- the rawSchema
-
setRawSchema
public ParsedSchemaImpl<T> setRawSchema(byte[] rawSchema)
- Parameters:
rawSchema- the rawSchema to set
-
getSchemaReferences
public List<ParsedSchema<T>> getSchemaReferences()
- Specified by:
getSchemaReferencesin interfaceParsedSchema<T>- Returns:
- schema references
-
setSchemaReferences
public ParsedSchemaImpl<T> setSchemaReferences(List<ParsedSchema<T>> schemaReferences)
- Parameters:
schemaReferences- to set
-
hasReferences
public boolean hasReferences()
- Specified by:
hasReferencesin interfaceParsedSchema<T>- Returns:
- true if the schema has references
-
referenceName
public String referenceName()
- Specified by:
referenceNamein interfaceParsedSchema<T>- Returns:
- the name to be used when referencing this schema
-
setReferenceName
public ParsedSchemaImpl<T> setReferenceName(String referenceName)
Description copied from interface:ParsedSchemaset the name to be used when referencing this schema- Specified by:
setReferenceNamein interfaceParsedSchema<T>
-
-