Package io.goobi.viewer.model.annotation
Class AnnotationConverter
java.lang.Object
io.goobi.viewer.model.annotation.AnnotationConverter
- Author:
- florian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.intranda.api.annotation.oa.OpenAnnotationGet the annotation as anOpenAnnotationjava objectgetAsPersistentAnnotation(de.intranda.api.annotation.wa.WebAnnotation anno) de.intranda.api.annotation.wa.WebAnnotationGet the annotation as anWebAnnotationjava objectde.intranda.api.annotation.IResourcegetBodyAsOAResource.de.intranda.api.annotation.IResourceGet thede.intranda.api.annotation.IResourceGet the annotation target as an OpenAnnotationIResourcejava objectde.intranda.api.annotation.IResourceGet the annotation target as an WebAnnotationIResourcejava object
-
Constructor Details
-
AnnotationConverter
public AnnotationConverter() -
AnnotationConverter
-
-
Method Details
-
getTargetAsResource
public de.intranda.api.annotation.IResource getTargetAsResource(PersistentAnnotation anno) throws IOException Get the annotation target as an WebAnnotationIResourcejava object- Parameters:
anno-- Returns:
- a
IResourceobject. - Throws:
IOException- if any.
-
getTargetAsOAResource
public de.intranda.api.annotation.IResource getTargetAsOAResource(PersistentAnnotation anno) throws IOException Get the annotation target as an OpenAnnotationIResourcejava object- Parameters:
anno-- Returns:
- a
IResourceobject. - Throws:
IOException- if any.
-
getBodyAsResource
public de.intranda.api.annotation.IResource getBodyAsResource(PersistentAnnotation anno) throws IOException Get the- Parameters:
anno-- Returns:
- a
IResourceobject. - Throws:
IOException- if any.
-
getBodyAsOAResource
public de.intranda.api.annotation.IResource getBodyAsOAResource(PersistentAnnotation anno) throws IOException getBodyAsOAResource.
- Parameters:
anno-- Returns:
- a
IResourceobject. - Throws:
IOException- if any.
-
getAsWebAnnotation
Get the annotation as anWebAnnotationjava object- Parameters:
anno-- Returns:
- a
WebAnnotationobject. - Throws:
DAOException
-
getAsOpenAnnotation
Get the annotation as anOpenAnnotationjava object- Parameters:
anno-- Returns:
- a
OpenAnnotationobject. - 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) - Parameters:
anno-- Returns:
PersistentAnnotation
-