public abstract class ApicurioDataModelContentValidator extends Object implements ContentValidator
Constructor and Description |
---|
ApicurioDataModelContentValidator() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getDataModelType()
Returns the type of data model being validated.
|
void |
validate(ValidityLevel level,
ContentHandle artifactContent)
Called to validate the given content.
|
public void validate(ValidityLevel level, ContentHandle artifactContent) throws InvalidContentException
ContentValidator
validate
in interface ContentValidator
level
- the levelartifactContent
- the contentInvalidContentException
- for any invalid contentContentValidator.validate(io.apicurio.registry.rules.validity.ValidityLevel, ContentHandle)
protected abstract String getDataModelType()
Copyright © 2020 Red Hat. All rights reserved.