edu.stanford.protege.webprotege.change.description.MovedClasses Maven / Gradle / Ivy
package edu.stanford.protege.webprotege.change.description;
import com.google.auto.value.AutoValue;
import com.google.common.collect.ImmutableSet;
import org.semanticweb.owlapi.model.OWLClass;
import javax.annotation.Nonnull;
/**
* Matthew Horridge
* Stanford Center for Biomedical Informatics Research
* 2018-12-10
*/
@AutoValue
public abstract class MovedClasses implements StructuredChangeDescription {
public static MovedClasses get(@Nonnull ImmutableSet classes,
@Nonnull ImmutableSet from,
@Nonnull OWLClass to) {
return new AutoValue_MovedClasses(classes, from, to);
}
@Nonnull
public abstract ImmutableSet getClasses();
@Nonnull
public abstract ImmutableSet getFrom();
@Nonnull
public abstract OWLClass getTo();
@Nonnull
@Override
public String getTypeName() {
return "MovedClasses";
}
}