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

edu.stanford.protege.webprotege.hierarchy.GetHierarchyRootsAction Maven / Gradle / Ivy

The newest version!
package edu.stanford.protege.webprotege.hierarchy;

import com.fasterxml.jackson.annotation.JsonTypeName;
import edu.stanford.protege.webprotege.common.ProjectId;
import edu.stanford.protege.webprotege.dispatch.ProjectAction;

import javax.annotation.Nonnull;

import static com.google.common.base.Preconditions.checkNotNull;

/**
 * Matthew Horridge Stanford Center for Biomedical Informatics Research 30 Nov 2017
 */
@JsonTypeName("webprotege.hierarchies.GetHierarchyRoots")
public record GetHierarchyRootsAction(@Nonnull ProjectId projectId, @Nonnull HierarchyDescriptor hierarchyDescriptor) implements ProjectAction {

    public static final String CHANNEL = "webprotege.hierarchies.GetHierarchyRoots";

    @Override
    public String getChannel() {
        return CHANNEL;
    }

    public GetHierarchyRootsAction(@Nonnull ProjectId projectId, @Nonnull HierarchyDescriptor hierarchyDescriptor) {
        this.projectId = checkNotNull(projectId);
        this.hierarchyDescriptor = checkNotNull(hierarchyDescriptor);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy