Class RadarSchemaMetadataRules
- java.lang.Object
-
- org.radarbase.schema.validation.rules.RadarSchemaMetadataRules
-
- All Implemented Interfaces:
SchemaMetadataRules
public class RadarSchemaMetadataRules extends java.lang.Object implements SchemaMetadataRules
Rules for schemas with metadata in RADAR-Schemas.
-
-
Constructor Summary
Constructors Constructor Description RadarSchemaMetadataRules(java.nio.file.Path root, ExcludeConfig config)Rules for schemas with metadata in RADAR-Schemas.RadarSchemaMetadataRules(java.nio.file.Path root, ExcludeConfig config, SchemaRules schemaRules)Rules for schemas with metadata in RADAR-Schemas.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaRulesgetSchemaRules()Validator<SchemaMetadata>schema(Validator<org.apache.avro.Schema> validator)Validates schemas without their metadata.Validator<SchemaMetadata>validateSchemaLocation()Checks the location of a schema with its internal data.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.radarbase.schema.validation.rules.SchemaMetadataRules
getValidator, message
-
-
-
-
Constructor Detail
-
RadarSchemaMetadataRules
public RadarSchemaMetadataRules(java.nio.file.Path root, ExcludeConfig config)Rules for schemas with metadata in RADAR-Schemas.RadarSchemaRulesis used as schema rules implementation.- Parameters:
root- directory of RADAR-Schemasconfig- configuration for excluding schemas from validation.
-
RadarSchemaMetadataRules
public RadarSchemaMetadataRules(java.nio.file.Path root, ExcludeConfig config, SchemaRules schemaRules)Rules for schemas with metadata in RADAR-Schemas.- Parameters:
root- directory of RADAR-Schemasconfig- configuration for excluding schemas from validation.schemaRules- schema rules implementation.
-
-
Method Detail
-
getSchemaRules
public SchemaRules getSchemaRules()
- Specified by:
getSchemaRulesin interfaceSchemaMetadataRules
-
validateSchemaLocation
public Validator<SchemaMetadata> validateSchemaLocation()
Description copied from interface:SchemaMetadataRulesChecks the location of a schema with its internal data.- Specified by:
validateSchemaLocationin interfaceSchemaMetadataRules
-
schema
public Validator<SchemaMetadata> schema(Validator<org.apache.avro.Schema> validator)
Description copied from interface:SchemaMetadataRulesValidates schemas without their metadata.- Specified by:
schemain interfaceSchemaMetadataRules
-
-