com.netgrif.application.engine.petrinet.domain.Component Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
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