Class AnnotationConverter


  • public class AnnotationConverter
    extends Object
    Author:
    florian
    • Constructor Detail

      • AnnotationConverter

        public AnnotationConverter()
    • Method Detail

      • getTargetAsResource

        public de.intranda.api.annotation.IResource getTargetAsResource​(PersistentAnnotation anno)
                                                                 throws com.fasterxml.jackson.core.JsonParseException,
                                                                        com.fasterxml.jackson.databind.JsonMappingException,
                                                                        IOException
        Get the annotation target as an WebAnnotation IResource java object
        Returns:
        a IResource object.
        Throws:
        com.fasterxml.jackson.core.JsonParseException - if any.
        com.fasterxml.jackson.databind.JsonMappingException - if any.
        IOException - if any.
      • getTargetAsOAResource

        public de.intranda.api.annotation.IResource getTargetAsOAResource​(PersistentAnnotation anno)
                                                                   throws com.fasterxml.jackson.core.JsonParseException,
                                                                          com.fasterxml.jackson.databind.JsonMappingException,
                                                                          IOException
        Get the annotation target as an OpenAnnotation IResource java object
        Returns:
        a IResource object.
        Throws:
        com.fasterxml.jackson.core.JsonParseException - if any.
        com.fasterxml.jackson.databind.JsonMappingException - if any.
        IOException - if any.
      • getBodyAsResource

        public de.intranda.api.annotation.IResource getBodyAsResource​(PersistentAnnotation anno)
                                                               throws com.fasterxml.jackson.core.JsonParseException,
                                                                      com.fasterxml.jackson.databind.JsonMappingException,
                                                                      IOException
        Get the
        Returns:
        a IResource object.
        Throws:
        com.fasterxml.jackson.core.JsonParseException - if any.
        com.fasterxml.jackson.databind.JsonMappingException - if any.
        IOException - if any.
      • getBodyAsOAResource

        public de.intranda.api.annotation.IResource getBodyAsOAResource​(PersistentAnnotation anno)
                                                                 throws com.fasterxml.jackson.core.JsonParseException,
                                                                        com.fasterxml.jackson.databind.JsonMappingException,
                                                                        IOException

        getBodyAsOAResource.

        Returns:
        a IResource object.
        Throws:
        com.fasterxml.jackson.core.JsonParseException - if any.
        com.fasterxml.jackson.databind.JsonMappingException - if any.
        IOException - if any.
      • getAsWebAnnotation

        public de.intranda.api.annotation.wa.WebAnnotation getAsWebAnnotation​(PersistentAnnotation anno)
        Get the annotation as an WebAnnotation java object
        Returns:
        a WebAnnotation object.
        Throws:
        DAOException
      • getAsOpenAnnotation

        public de.intranda.api.annotation.oa.OpenAnnotation getAsOpenAnnotation​(PersistentAnnotation anno)
        Get the annotation as an OpenAnnotation java object
        Returns:
        a OpenAnnotation object.
        Throws:
        com.fasterxml.jackson.core.JsonParseException - if any.
        com.fasterxml.jackson.databind.JsonMappingException - if any.
        IOException - if any.
      • getAsPersistentAnnotation

        public PersistentAnnotation getAsPersistentAnnotation​(de.intranda.api.annotation.wa.WebAnnotation anno)