@ApplicationScoped public class XmlContentValidator extends Object implements ContentValidator
Constructor and Description |
---|
XmlContentValidator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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,
io.apicurio.registry.content.ContentHandle)
Copyright © 2020 Red Hat. All rights reserved.