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

edu.stanford.protege.webprotege.crud.gen.GeneratedAnnotationsSettings Maven / Gradle / Ivy

There is a newer version: 2.0.2-WHO
Show newest version
package edu.stanford.protege.webprotege.crud.gen;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.auto.value.AutoValue;
import com.google.common.collect.ImmutableList;

import javax.annotation.Nonnull;

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

public abstract class GeneratedAnnotationsSettings {

    public static final String DESCRIPTORS = "descriptors";


    @JsonCreator
    public static GeneratedAnnotationsSettings get(@JsonProperty(DESCRIPTORS) ImmutableList descriptors) {
        return new AutoValue_GeneratedAnnotationsSettings(descriptors);
    }

    public static GeneratedAnnotationsSettings empty() {
        return get(ImmutableList.of());
    }

    @JsonProperty(DESCRIPTORS)
    @Nonnull
    public abstract ImmutableList getDescriptors();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy