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

tech.jhipster.lite.module.domain.properties.JHipsterProjectName Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
package tech.jhipster.lite.module.domain.properties;

import org.apache.commons.lang3.StringUtils;

public record JHipsterProjectName(String projectName) {
  private static final String DEFAULT_NAME = "JHipster Project";
  public static final JHipsterProjectName DEFAULT = new JHipsterProjectName(DEFAULT_NAME);

  public JHipsterProjectName(String projectName) {
    this.projectName = buildProjectName(projectName);
  }

  private String buildProjectName(String projectName) {
    if (StringUtils.isBlank(projectName)) {
      return DEFAULT_NAME;
    }

    return projectName;
  }

  public String get() {
    return projectName();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy