edu.stanford.protege.webprotege.crud.gen.GeneratedAnnotationsSettings Maven / Gradle / Ivy
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();
}