Class V1SchemaValidator
java.lang.Object
com.csse3200.game.cutscene.validators.V1SchemaValidator
- All Implemented Interfaces:
SchemaValidator
Schema Validator for Version 1 of the cutscene schema.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidate
(CutsceneDocDTO cutsceneDocDTO) Validates a givenCutsceneDocDTO
-
Constructor Details
-
V1SchemaValidator
public V1SchemaValidator()
-
-
Method Details
-
validate
Validates a givenCutsceneDocDTO
Validates:
- The document is valid
- The document has the correct schema version
- Characters exist and are valid
- Backgrounds exist and are valid
- Sounds exist and are valid
- Cutscenes exist and are valid
- Specified by:
validate
in interfaceSchemaValidator
- Parameters:
cutsceneDocDTO
- TheCutsceneDocDTO
that needs to be validated- Returns:
- A list of
AuthoringError
detailing each rule infraction
-