edu.stanford.protege.webprotege.hierarchy.HierarchyId Maven / Gradle / Ivy
The newest version!
package edu.stanford.protege.webprotege.hierarchy;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.auto.value.AutoValue;
import javax.annotation.Nonnull;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Author: Matthew Horridge
Stanford University
Bio-Medical Informatics Research Group
Date: 22/03/2013
*/
@AutoValue
public abstract class HierarchyId {
public static final HierarchyId CLASS_HIERARCHY = get("Class");
public static final HierarchyId OBJECT_PROPERTY_HIERARCHY = get("ObjectProperty");
public static final HierarchyId DATA_PROPERTY_HIERARCHY = get("DataProperty");
public static final HierarchyId ANNOTATION_PROPERTY_HIERARCHY = get("AnnotationProperty");
@Nonnull
public abstract String getId();
@Nonnull
@JsonCreator
public static HierarchyId get(@JsonProperty("id") @Nonnull String id) {
return new AutoValue_HierarchyId(checkNotNull(id));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy