ActiveAnno

Web-based responsive document annotation tool

View the Project on GitHub MaxMello/ActiveAnno

activeannoservice / annotationdefinition / OpenTextAnnotationDefinition

OpenTextAnnotationDefinition

class OpenTextAnnotationDefinition : AnnotationDefinition

Annotation for some open text input

Constructors

Name Summary
<init> Annotation for some open text inputOpenTextAnnotationDefinition(id: AnnotationID, name: String, shortName: String?, createdTimestamp: Long = System.currentTimeMillis(), minLength: Int = 1, maxLength: Int? = null, documentDataDefault: String? = null, optional: Boolean = false)

Properties

Name Summary
documentDataDefault copy documentData value by keyval documentDataDefault: String?
maxLength var maxLength: Int?
minLength var minLength: Int
optional var optional: Boolean

Functions

Name Summary
updateModel Update the database model of an instance from a new instance. This should be used to control which fields are updatable through the API and which are not.fun updateModel(newAnnotationDefinition: AnnotationDefinition): Unit
validateAnnotation Validate an annotation based on the defined constraints, needs to be implemented by every subclass.fun validateAnnotation(annotations: AnnotationMap, target: Target, locale: Locale?): ValidationError?