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

com.structurizr.model.Enterprise Maven / Gradle / Ivy

There is a newer version: 3.1.0
Show newest version
package com.structurizr.model;

/**
 * Represents an "enterprise" (e.g. an organisation, a department, etc).
 */
public final class Enterprise {

    private String name;

    Enterprise() {
    }

    /**
     * Creates a new enterprise with the specified name.
     *
     * @param name      the name, as a String
     * @throws IllegalArgumentException     if the name is not specified
     */
    @Deprecated
    public Enterprise(String name) {
        if (name == null || name.trim().length() == 0) {
            throw new IllegalArgumentException("Name must be specified.");
        }

        this.name = name;
    }

    /**
     * Gets the name of this enterprise.
     *
     * @return      the name, as a String
     */
    public String getName() {
        return name;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy