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

edu.stanford.protege.webprotege.entity.ObjectData Maven / Gradle / Ivy

There is a newer version: 0.9.6-WHO
Show newest version
package edu.stanford.protege.webprotege.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.semanticweb.owlapi.model.HasSignature;
import org.semanticweb.owlapi.model.OWLEntity;

import javax.annotation.Nonnull;
import java.util.Collections;
import java.util.Set;


/**
 * Author: Matthew Horridge
* Stanford University
* Bio-Medical Informatics Research Group
* Date: 28/11/2012 *

* Represents data about some object. This data includes browser text for the object. *

*/ public abstract class ObjectData { /** * Gets the core object that is decorated with data */ @JsonIgnore @Nonnull public abstract Object getObject(); /** * Gets the signature of this object. * @return A (possibly empty) set representing the signature of this object. */ @JsonIgnore public Set getSignature() { if(getObject() instanceof HasSignature) { return ((HasSignature) getSignature()).getSignature(); } else { return Collections.emptySet(); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy