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

com.netgrif.application.engine.petrinet.domain.dataset.FieldWithAllowedNets.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.mongodb.core.mapping.Document

@Document
abstract class FieldWithAllowedNets extends Field {

    private List allowedNets

    FieldWithAllowedNets() {
        super()
        allowedNets = new ArrayList<>()
    }

    FieldWithAllowedNets(List allowedNets) {
        this()
        this.setAllowedNets(allowedNets)
    }

    @Override
    void clone(Field clone) {
        super.clone(clone)
        ((FieldWithAllowedNets) clone).allowedNets = new ArrayList<>(this.allowedNets)
    }

    List getAllowedNets() {
        return allowedNets
    }

    void setAllowedNets(Collection allowedNets) {
        if (allowedNets == this.allowedNets)
            return
        this.allowedNets.clear()
        this.allowedNets.addAll(allowedNets)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy