org.bitbucket.fermenter.stout.mda.JavaNamedElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stout-spring-mda Show documentation
Show all versions of stout-spring-mda Show documentation
Contains resources for generating application code that realizes a
Spring-based business object and business service architecture
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