Web-based responsive document annotation tool
activeannoservice / annotationdefinition / NumberRangeAnnotationDefinition
class NumberRangeAnnotationDefinition :
AnnotationDefinition
A number range between min and max with step steps between. Results in two values, a lower and upper value.
Name | Summary |
---|---|
<init> | A number range between min and max with step steps between. Results in two values, a lower and upper value.NumberRangeAnnotationDefinition(id: AnnotationID , name: String , shortName: String ?, createdTimestamp: Long = System.currentTimeMillis(), min: Double , max: Double , step: Double , optional: Boolean = false) |
Name | Summary |
---|---|
max | var max: Double |
min | var min: Double |
optional | var optional: Boolean |
step | var step: Double |
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 ? |