EDMValidator


edm.edom3

Interface EDMValidator


  • All Superinterfaces:EDMContextDependent, EDMWorker



    public interface EDMValidator
    extends EDMWorker

    The result of the validation can either be a text report or a model population. The latter case enables the caller to make his own diagnostic report in his own format.The validation result would then be a population of the EDM_Validation_Result_Schema, that contains all details of the violations detected in the last invocation of the EDMmodelChecker. 
    There exist three options that will influence the amount of information in the validation report produced by this call: NO_PRINT_OUTPUT, DETAILED_OUTPUT and FULL_OUTPUT. A standard validation report will be produced when none of these options are set by a option method. A validation report with more detailed information is produced when DETAILED_OUTPUT is set.A validation report with all available detailed information is produced when the FULL_OUTPUT option is set. If NO_PRINT_OUTPUT is set no diagnostics report will be produced.

    See Also:EDMConstants.ValidatorOptions

    • Method Detail

      • setRuleSchema

        void setRuleSchema(EDMApplicationSchema rule_schema)
                    throws EdmiException

        Assign a rule schema to this validator

        Parameters:rule_schema - Specifies the rule schema to use for this model. If no rule schema is supplied, i.e. the rule_schema argument is not set, there is assumed no rule schema used for the current data model.Throws:EdmiException - if the method fails

      • setInstanceType

        void setInstanceType(EDMInstance instance_type)

        Set a specific instance type to this validator

        Parameters:instance_type - EntityDefinition instance in dictionary model representing the instance type to validate

      • setGlobalRule

        void setGlobalRule(java.lang.String global_rule)

        Set a specific global rule to this validator

        Parameters:global_rule - Spcifies the global rule to use for this model. representing the global rule to validate

      • setWhereRule

        void setWhereRule(java.lang.String where_rule)

        Set a specific where rule to this validator

        Parameters:where_rule - Spcifies the where rule to use for this model. representing the where rule to validate

      • setValidationErrorModel

        void setValidationErrorModel(java.lang.Boolean use_errorModel)

        Allows the user to use the Validation error model

        Parameters:use_errorModel - This is true or false, depending on whether you need to use the Validation error model