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

org.bitbucket.fermenter.stout.mda.JavaNamedElement Maven / Gradle / Ivy

Go to download

Contains resources for generating application code that realizes a Spring-based business object and business service architecture

There is a newer version: 2.7.0
Show newest version
package org.bitbucket.fermenter.stout.mda;

import org.apache.commons.lang3.StringUtils;

/**
 * Defines the common interface for a Java named element with default utility methods to handle common variations of the
 * name.
 */
public interface JavaNamedElement {

    /**
     * Returns the name of this element.
     * 
     * @return name
     */
    String getName();

    /**
     * Returns the name with a capitalized first letter.
     * 
     * @return capitalized name
     */
    default String getCapitalizedName() {
        return StringUtils.capitalize(getName());
    }

    /**
     * Returns the uncapitalized name of this element.
     * 
     * @return uncapitalized name
     */
    default String getUncapitalizedName() {
        return StringUtils.uncapitalize(getName());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy