Package io.goobi.viewer.model.annotation
Class AnnotationConverter
java.lang.Object
io.goobi.viewer.model.annotation.AnnotationConverter
- Author:
- florian
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionde.intranda.api.annotation.oa.OpenAnnotation
Get the annotation as anOpenAnnotation
java objectgetAsPersistentAnnotation
(de.intranda.api.annotation.wa.WebAnnotation anno) de.intranda.api.annotation.wa.WebAnnotation
Get the annotation as anWebAnnotation
java objectde.intranda.api.annotation.IResource
getBodyAsOAResource.de.intranda.api.annotation.IResource
Get thede.intranda.api.annotation.IResource
Get the annotation target as an OpenAnnotationIResource
java objectde.intranda.api.annotation.IResource
Get the annotation target as an WebAnnotationIResource
java 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 WebAnnotationIResource
java object- Parameters:
anno
-- Returns:
- a
IResource
object. - Throws:
IOException
- if any.
-
getTargetAsOAResource
public de.intranda.api.annotation.IResource getTargetAsOAResource(PersistentAnnotation anno) throws IOException Get the annotation target as an OpenAnnotationIResource
java object- Parameters:
anno
-- Returns:
- a
IResource
object. - Throws:
IOException
- if any.
-
getBodyAsResource
public de.intranda.api.annotation.IResource getBodyAsResource(PersistentAnnotation anno) throws IOException Get the- Parameters:
anno
-- Returns:
- a
IResource
object. - Throws:
IOException
- if any.
-
getBodyAsOAResource
public de.intranda.api.annotation.IResource getBodyAsOAResource(PersistentAnnotation anno) throws IOException getBodyAsOAResource.
- Parameters:
anno
-- Returns:
- a
IResource
object. - Throws:
IOException
- if any.
-
getAsWebAnnotation
Get the annotation as anWebAnnotation
java object- Parameters:
anno
-- Returns:
- a
WebAnnotation
object. - Throws:
DAOException
-
getAsOpenAnnotation
Get the annotation as anOpenAnnotation
java object- Parameters:
anno
-- 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) - Parameters:
anno
-- Returns:
PersistentAnnotation
-