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

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

import javax.annotation.Nonnull;

/**
 * Matthew Horridge
 * Stanford Center for Biomedical Informatics Research
 * 2020-01-23
 */
@AutoValue

@JsonTypeName("CompositeCriteria")
public abstract class CompositeRelationshipValueCriteria implements RelationshipValueCriteria {

    @JsonCreator
    public static CompositeRelationshipValueCriteria get(@JsonProperty("multiMatchType") @Nonnull MultiMatchType multiMatchType,
                                                         @JsonProperty("criteria") @Nonnull List criteria) {
        return new AutoValue_CompositeRelationshipValueCriteria(multiMatchType, criteria);
    }

    @Nonnull
    public abstract MultiMatchType getMultiMatchType();

    @Nonnull
    public abstract List getCriteria();

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy