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

org.semanticweb.owlapi.model.ChangeDetails Maven / Gradle / Ivy

The newest version!
package org.semanticweb.owlapi.model;

import java.util.List;

import org.semanticweb.owlapi.model.parameters.ChangeApplied;

/**
 * A class to hold detailed results on a set of changes. {@code changeEffect} has the overall result
 * of the transaction (changes can have been applied successfully, they can have failed and been
 * rolled back, or all changes might have been no-operation). {@code enactedChanges} has all the
 * changes that have been applied successfully.
 *
 * @author ignazio
 */
public class ChangeDetails {

    private final ChangeApplied changeEffect;
    private final List enactedChanges;

    /**
     * @param changeEffect the result of a change
     * @param enactedChanges the list of changes applied successfully
     */
    public ChangeDetails(ChangeApplied changeEffect,
        List enactedChanges) {
        this.changeEffect = changeEffect;
        this.enactedChanges = enactedChanges;
    }

    /**
     * @return the change effect
     */
    public ChangeApplied getChangeEffect() {
        return changeEffect;
    }

    /**
     * @return the enacted changes
     */
    public List getEnactedChanges() {
        return enactedChanges;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy