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

org.jqassistant.plugin.c4.data.Boundary Maven / Gradle / Ivy

The newest version!
package org.jqassistant.plugin.c4.data;

import lombok.experimental.SuperBuilder;

import java.util.LinkedHashSet;
import java.util.Set;

/**
 * Representation of a C4 boundary.
 *
 * @author Stephan Pirnbaum
 */
@SuperBuilder
public class Boundary extends AbstractElement {

    private final String type;

    @Override
    public String buildStringRepresentation() {
        return String.format("%s{%s%s}", buildLabelString(), buildAliasString(), buildNameString());
    }

    @Override
    Set getAdditionalStereotypes() {
        Set labels = new LinkedHashSet<>();
        labels.add("Boundary");
        if (type != null) {
            labels.add(type);
        }
        return labels;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy