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

com.netgrif.application.engine.petrinet.domain.Component 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;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

public class Component {
    @Getter
    @Setter
    private String name;

    @Getter
    @Setter
    private Map properties;

    @Getter
    @Setter
    private List optionIcons;

    public Component() {
    }

    public Component(String name) {
        this.name = name;
        this.properties = new HashMap<>();
        this.optionIcons = new ArrayList<>();
    }

    public Component(String name, Map properties) {
        this(name);
        this.properties = properties;
    }

    public Component(String name, Map properties, List optionIcons) {
        this(name);
        this.properties = properties;
        this.optionIcons = optionIcons;
    }

    @Override
    public Component clone() {
        return new Component(this.name, new HashMap<>(this.properties), this.optionIcons == null ? new ArrayList<>() : this.optionIcons.stream().map(Icon::clone).collect(Collectors.toList()));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy