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

edu.stanford.protege.webprotege.mansyntax.render.AnnotationPropertyFrameRenderer Maven / Gradle / Ivy

The newest version!
package edu.stanford.protege.webprotege.mansyntax.render;

import com.google.common.collect.Lists;
import org.semanticweb.owlapi.model.OWLAnnotationProperty;

import javax.annotation.Nonnull;
import javax.inject.Inject;
import java.util.List;

/**
 * @author Matthew Horridge, Stanford University, Bio-Medical Informatics Research Group, Date: 26/02/2014
 */
public class AnnotationPropertyFrameRenderer implements FrameRenderer {

    @Nonnull
    private final AnnotationsSectionRenderer annotationsSectionRenderer;

    @Nonnull
    private final AnnotationPropertyDomainSectionRenderer domainSectionRenderer;

    @Nonnull
    private final AnnotationPropertyRangeSectionRenderer rangeSectionRenderer;

    @Nonnull
    private final AnnotationPropertySubPropertyOfSectionRenderer subPropertyOfSectionRenderer;

    @Inject
    public AnnotationPropertyFrameRenderer(@Nonnull AnnotationsSectionRenderer annotationsSectionRenderer,
                                           @Nonnull AnnotationPropertyDomainSectionRenderer domainSectionRenderer,
                                           @Nonnull AnnotationPropertyRangeSectionRenderer rangeSectionRenderer,
                                           @Nonnull AnnotationPropertySubPropertyOfSectionRenderer subPropertyOfSectionRenderer) {
        this.annotationsSectionRenderer = annotationsSectionRenderer;
        this.domainSectionRenderer = domainSectionRenderer;
        this.rangeSectionRenderer = rangeSectionRenderer;
        this.subPropertyOfSectionRenderer = subPropertyOfSectionRenderer;
    }

    @Override
    public List> getSectionRenderers() {
        return Lists.newArrayList(
                annotationsSectionRenderer,
                subPropertyOfSectionRenderer,
                domainSectionRenderer,
                rangeSectionRenderer
        );
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy