edu.stanford.protege.webprotege.criteria.EntityIsNotCriteria Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webprotege-criteria Show documentation
Show all versions of webprotege-criteria Show documentation
Data structures for representing matching criteria
package edu.stanford.protege.webprotege.criteria;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.google.auto.value.AutoValue;
import java.util.List;
import org.semanticweb.owlapi.model.OWLEntity;
import javax.annotation.Nonnull;
/**
* Matthew Horridge
* Stanford Center for Biomedical Informatics Research
* 2020-11-06
*/
@AutoValue
@JsonTypeName("EntityIsNot")
public abstract class EntityIsNotCriteria implements EntityMatchCriteria {
public static final String ENTITY = "term";
@JsonCreator
public static EntityIsNotCriteria get(@JsonProperty(ENTITY) @Nonnull OWLEntity newEntity) {
return new AutoValue_EntityIsNotCriteria(newEntity);
}
@JsonProperty(ENTITY)
@Nonnull
public abstract OWLEntity getEntity();
@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