edu.stanford.protege.webprotege.viz.TailNodeMatchesCriteria Maven / Gradle / Ivy
package edu.stanford.protege.webprotege.viz;
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 edu.stanford.protege.webprotege.criteria.EntityMatchCriteria;
import javax.annotation.Nonnull;
/**
* Matthew Horridge
* Stanford Center for Biomedical Informatics Research
* 2019-12-06
*/
@AutoValue
@JsonTypeName("TailNodeMatches")
public abstract class TailNodeMatchesCriteria implements NodeMatchesCriteria {
@JsonCreator
public static TailNodeMatchesCriteria get(@Nonnull @JsonProperty("nodeCriteria") EntityMatchCriteria criteria) {
return new AutoValue_TailNodeMatchesCriteria(criteria);
}
@Override
public R accept(@Nonnull EdgeCriteriaVisitor visitor) {
return visitor.visit(this);
}
@Nonnull
@Override
public EdgeCriteria simplify() {
return this;
}
}