All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netgrif.application.engine.importer.service.IDocumentValidator Maven / Gradle / Ivy

Go to download

System provides workflow management functions including user, role and data management.

There is a newer version: 6.3.3
Show newest version
package com.netgrif.application.engine.importer.service;

import com.netgrif.application.engine.importer.model.Document;
import com.netgrif.application.engine.importer.service.throwable.BeatingAttributesException;

public interface IDocumentValidator extends IModelValidator {
    void checkDeprecatedAttributes(Document document);

    /**
     * Self-beating attributes are two attributes, that should not be present inside their parent at the same time.
     * E.g.: if user defines  in transition, the tag  will be disabled, however, additional
     *  tags can be still added.
     *
     * @param document  the model of PetriNet
     * @param attr1     first element to be compared
     * @param attr2     second element to be compared
     * @param attr1Name the name of first element
     * @param attr2Name the name of second element
     * @throws BeatingAttributesException is thrown when there are two attributes with different type but same goal
     */
    void checkConflictingAttributes(Document document, Object attr1, Object attr2, String attr1Name, String attr2Name) throws BeatingAttributesException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy