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

edu.stanford.protege.webprotege.change.description.CreatedClasses Maven / Gradle / Ivy

There is a newer version: 2.0.2-WHO
Show newest version
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 CreatedClasses implements StructuredChangeDescription {

    private static final String CREATED_CLASSES = "CreatedClasses";

    public static String getAssociatedTypeName() {
        return CREATED_CLASSES;
    }

    @Nonnull
    public static CreatedClasses get(@Nonnull ImmutableSet classes,
                                     @Nonnull ImmutableSet parentClasses) {
        return new AutoValue_CreatedClasses(classes, parentClasses);
    }

    @Nonnull
    public abstract ImmutableSet getClasses();

    @Nonnull
    public abstract ImmutableSet getParentClasses();


    @Nonnull
    @Override
    public String getTypeName() {
        return getAssociatedTypeName();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy