Class UnstableFeatureValidator

  • All Implemented Interfaces:
    Validator

    public final class UnstableFeatureValidator
    extends AbstractValidator
    Emits warnings when unstable features are used in a model, for example document shapes.

    This validator should be expanded in the future as necessary when unstable features are added. We could potentially also add things like an "unstable" trait to indicate that a shape is unstable.

    • Constructor Detail

      • UnstableFeatureValidator

        public UnstableFeatureValidator()
    • Method Detail

      • validate

        public java.util.List<ValidationEvent> validate​(Model model)
        Description copied from interface: Validator
        Validates a model and returns a list of validation events.
        Parameters:
        model - Model to validate.
        Returns:
        List of validation events.