Class RadarSchemaRules
java.lang.Object
org.radarbase.schema.validation.rules.RadarSchemaRules
- All Implemented Interfaces:
SchemaRules
Schema validation rules enforced for the RADAR-Schemas repository.
-
Constructor Summary
ConstructorsConstructorDescriptionRadarSchemaRules(ExcludeConfig config) RadarSchemaRules(ExcludeConfig config, RadarSchemaFieldRules fieldRules) RADAR-Schema validation rules. -
Method Summary
Modifier and TypeMethodDescriptionValidator<org.apache.avro.Schema>fields(Validator<SchemaField> validator) Validates all fields of records.Validator<org.apache.avro.Schema>Validator<org.apache.avro.Schema>Checks schema name format.Validator<org.apache.avro.Schema>Checks schema namespace format.Validator<org.apache.avro.Schema>TODO.Validator<org.apache.avro.Schema>Checks that schemas should not have atimeReceivedfield.Validator<org.apache.avro.Schema>Checks schema documentation presence and format.Validator<org.apache.avro.Schema>Checks that the symbols of enums have the required format.Validator<org.apache.avro.Schema>TODO.Validator<org.apache.avro.Schema>TODO.Validator<org.apache.avro.Schema>Checks that schemas should have atimeReceivedfield.Validator<org.apache.avro.Schema>Checks that schemas are unique compared to already validated schemas.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.radarbase.schema.validation.rules.SchemaRules
messageSchema, validateActiveSource, validateEnum, validateMonitor, validatePassive, validateRecord
-
Constructor Details
-
RadarSchemaRules
RADAR-Schema validation rules.- Parameters:
config- validation configuration
-
RadarSchemaRules
-
-
Method Details
-
getFieldRules
- Specified by:
getFieldRulesin interfaceSchemaRules
-
validateUniqueness
Description copied from interface:SchemaRulesChecks that schemas are unique compared to already validated schemas.- Specified by:
validateUniquenessin interfaceSchemaRules
-
validateNameSpace
Description copied from interface:SchemaRulesChecks schema namespace format.- Specified by:
validateNameSpacein interfaceSchemaRules
-
validateName
Description copied from interface:SchemaRulesChecks schema name format.- Specified by:
validateNamein interfaceSchemaRules
-
validateSchemaDocumentation
Description copied from interface:SchemaRulesChecks schema documentation presence and format.- Specified by:
validateSchemaDocumentationin interfaceSchemaRules
-
validateSymbols
Description copied from interface:SchemaRulesChecks that the symbols of enums have the required format.- Specified by:
validateSymbolsin interfaceSchemaRules
-
validateTime
TODO.- Specified by:
validateTimein interfaceSchemaRules- Returns:
- TODO
-
validateTimeCompleted
TODO.- Specified by:
validateTimeCompletedin interfaceSchemaRules- Returns:
- TODO
-
validateNotTimeCompleted
TODO.- Specified by:
validateNotTimeCompletedin interfaceSchemaRules- Returns:
- TODO
-
validateTimeReceived
Description copied from interface:SchemaRulesChecks that schemas should have atimeReceivedfield.- Specified by:
validateTimeReceivedin interfaceSchemaRules
-
validateNotTimeReceived
Description copied from interface:SchemaRulesChecks that schemas should not have atimeReceivedfield.- Specified by:
validateNotTimeReceivedin interfaceSchemaRules
-
validateAvroData
- Specified by:
validateAvroDatain interfaceSchemaRules
-
fields
Description copied from interface:SchemaRulesValidates all fields of records. Validation will fail on non-record types or records with no fields.- Specified by:
fieldsin interfaceSchemaRules
-
getSchemaStore
-