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

edu.stanford.protege.webprotege.criteria.IsLeafClassCriteria 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.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.google.auto.value.AutoValue;
import java.util.List;

import javax.annotation.Nonnegative;
import javax.annotation.Nonnull;

/**
 * Matthew Horridge
 * Stanford Center for Biomedical Informatics Research
 * 2020-12-07
 */
@JsonTypeName("IsLeafClass")
@AutoValue
public abstract class IsLeafClassCriteria implements HierarchyPositionCriteria, EntityMatchCriteria {

    @JsonCreator
    @Nonnegative
    public static IsLeafClassCriteria get() {
        return new AutoValue_IsLeafClassCriteria();
    }

    @Override
    public  R accept(@Nonnull HierarchyPositionCriteriaVisitor visitor) {
        return visitor.visit(this);
    }

    @Override
    public  R accept(RootCriteriaVisitor visitor) {
        return visitor.visit(this);
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy