All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netgrif.application.engine.petrinet.domain.dataset.NumberField.groovy Maven / Gradle / Ivy

Go to download

System provides workflow management functions including user, role and data management.

There is a newer version: 6.3.3
Show newest version
package com.netgrif.application.engine.petrinet.domain.dataset

import org.springframework.data.annotation.Transient
import org.springframework.data.mongodb.core.mapping.Document

@Document
class NumberField extends Field {

    @Transient
    private Double minValue

    @Transient
    private Double maxValue

    NumberField() {
        super()
        super.setDefaultValue(0.0d)
    }

    @Override
    FieldType getType() {
        return FieldType.NUMBER
    }


    Double getMinValue() {
        return minValue
    }

    void setMinValue(Double minValue) {
        this.minValue = minValue
    }

    Double getMaxValue() {
        return maxValue
    }

    void setMaxValue(Double maxValue) {
        this.maxValue = maxValue
    }

    @Override
    Field clone() {
        NumberField clone = new NumberField()
        super.clone(clone)

        return clone
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy