public class ProtobufFdCompatibilityChecker extends Object implements CompatibilityChecker
Constructor and Description |
---|
ProtobufFdCompatibilityChecker() |
Modifier and Type | Method and Description |
---|---|
boolean |
isCompatibleWith(CompatibilityLevel compatibilityLevel,
List<ContentHandle> existingArtifacts,
ContentHandle proposedArtifact) |
boolean |
isCompatibleWith(CompatibilityLevel compatibilityLevel,
List<String> existingSchemas,
String proposedSchema) |
public boolean isCompatibleWith(CompatibilityLevel compatibilityLevel, List<ContentHandle> existingArtifacts, ContentHandle proposedArtifact)
isCompatibleWith
in interface CompatibilityChecker
compatibilityLevel
- MUST NOT be nullexistingArtifacts
- MUST NOT be null and MUST NOT contain null elements,
but may be empty if the rule is executed and the artifact does not exist
(e.g. a global COMPATIBILITY rule with RuleApplicationType.CREATE
)proposedArtifact
- MUST NOT be nullpublic boolean isCompatibleWith(CompatibilityLevel compatibilityLevel, List<String> existingSchemas, String proposedSchema)
isCompatibleWith
in interface CompatibilityChecker
compatibilityLevel
- MUST NOT be nullexistingSchemas
- MUST NOT be null and MUST NOT contain null elements,
but may be empty if the rule is executed and the artifact does not exist
(e.g. a global COMPATIBILITY rule with RuleApplicationType.CREATE
)proposedSchema
- MUST NOT be nullCopyright © 2020 Red Hat. All rights reserved.