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

edu.stanford.protege.webprotege.criteria.RootCriteria Maven / Gradle / Ivy

There is a newer version: 0.9.2
Show newest version
package edu.stanford.protege.webprotege.criteria;

import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import java.util.List;

/**
 * Matthew Horridge
 * Stanford Center for Biomedical Informatics Research
 * 11 Jun 2018
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "match")
@JsonSubTypes({
        @Type(EntityMatchCriteria.class)
})
public interface RootCriteria extends Criteria {

     R accept(RootCriteriaVisitor visitor);

    default CompositeRootCriteria asCompositeRootCriteria() {
        return CompositeRootCriteria.get(List.of(this), MultiMatchType.ALL);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy