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

com.structurizr.view.Theme Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
package com.structurizr.view;

import com.fasterxml.jackson.annotation.JsonGetter;

import java.util.Collection;
import java.util.LinkedList;

final class Theme {

    private String name;
    private String description;
    private Collection elements = new LinkedList<>();
    private Collection relationships = new LinkedList<>();

    Theme() {
    }

    Theme(Collection elements, Collection relationships) {
        this.elements = elements;
        this.relationships = relationships;
    }

    Theme(String name, String description, Collection elements, Collection relationships) {
        this.name = name;
        this.description = description;
        this.elements = elements;
        this.relationships = relationships;
    }

    public String getName() {
        return name;
    }

    void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    void setDescription(String description) {
        this.description = description;
    }

    @JsonGetter
    Collection getElements() {
        return elements;
    }

    void setElements(Collection elements) {
        this.elements = elements;
    }

    @JsonGetter
    Collection getRelationships() {
        return relationships;
    }

    void setRelationships(Collection relationships) {
        this.relationships = relationships;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy