-
- All Implemented Interfaces:
-
org.radarbase.schema.validation.rules.SchemaRules
public class RadarSchemaRules implements SchemaRules
Schema validation rules enforced for the RADAR-Schemas repository.
-
-
Field Summary
Fields Modifier and Type Field Description public final Map<String, Schema>schemaStore
-
Constructor Summary
Constructors Constructor Description RadarSchemaRules(RadarSchemaFieldRules fieldRules)RADAR-Schema validation rules. RadarSchemaRules()
-
Method Summary
Modifier and Type Method Description Map<String, Schema>getSchemaStore()SchemaFieldRulesgetFieldRules()Validator<Schema>validateUniqueness()Checks that schemas are unique compared to already validated schemas. Validator<Schema>validateNameSpace()Checks schema namespace format. Validator<Schema>validateName()Checks schema name format. Validator<Schema>validateSchemaDocumentation()Checks schema documentation presence and format. Validator<Schema>validateSymbols()Checks that the symbols of enums have the required format. Validator<Schema>validateTime()TODO. Validator<Schema>validateTimeCompleted()TODO. Validator<Schema>validateNotTimeCompleted()TODO. Validator<Schema>validateTimeReceived()Checks that schemas should have a timeReceivedfield.Validator<Schema>validateNotTimeReceived()Checks that schemas should not have a timeReceivedfield.Validator<Schema>validateAvroData()Validator<Schema>fields(Validator<SchemaField> validator)Validates all fields of records. -
Methods inherited from class org.radarbase.schema.validation.rules.SchemaRules
messageSchema, validateActiveSource, validateEnum, validateMonitor, validatePassive, validateRecord -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
RadarSchemaRules
RadarSchemaRules(RadarSchemaFieldRules fieldRules)
RADAR-Schema validation rules.
-
RadarSchemaRules
RadarSchemaRules()
-
-
Method Detail
-
getSchemaStore
Map<String, Schema> getSchemaStore()
-
getFieldRules
SchemaFieldRules getFieldRules()
-
validateUniqueness
Validator<Schema> validateUniqueness()
Checks that schemas are unique compared to already validated schemas.
-
validateNameSpace
Validator<Schema> validateNameSpace()
Checks schema namespace format.
-
validateName
Validator<Schema> validateName()
Checks schema name format.
-
validateSchemaDocumentation
Validator<Schema> validateSchemaDocumentation()
Checks schema documentation presence and format.
-
validateSymbols
Validator<Schema> validateSymbols()
Checks that the symbols of enums have the required format.
-
validateTime
Validator<Schema> validateTime()
TODO.
-
validateTimeCompleted
Validator<Schema> validateTimeCompleted()
TODO.
-
validateNotTimeCompleted
Validator<Schema> validateNotTimeCompleted()
TODO.
-
validateTimeReceived
Validator<Schema> validateTimeReceived()
Checks that schemas should have a
timeReceivedfield.
-
validateNotTimeReceived
Validator<Schema> validateNotTimeReceived()
Checks that schemas should not have a
timeReceivedfield.
-
validateAvroData
Validator<Schema> validateAvroData()
-
fields
Validator<Schema> fields(Validator<SchemaField> validator)
Validates all fields of records. Validation will fail on non-record types or records with no fields.
-
-
-
-