Class ClassUtils
- java.lang.Object
-
- gov.nist.secauto.metaschema.databind.codegen.ClassUtils
-
public final class ClassUtils extends Object
A variety of utility methods for normalizing Java class related names.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
toClassName(String name)
Transforms the provided name into a string suitable for use as a Java class name.static String
toPackageName(String name)
Transforms the provided name into a string suitable for use as a Java package name.static String
toPropertyName(String name)
Transforms the provided name into a string suitable for use as a Java property name.static String
toVariableName(String name)
Transforms the provided name into a string suitable for use as a Java variable name.
-
-
-
Method Detail
-
toPropertyName
@NonNull public static String toPropertyName(@NonNull String name)
Transforms the provided name into a string suitable for use as a Java property name.- Parameters:
name
- the name of an information element definition- Returns:
- a Java property name
-
toVariableName
@NonNull public static String toVariableName(@NonNull String name)
Transforms the provided name into a string suitable for use as a Java variable name.- Parameters:
name
- the name of an information element definition- Returns:
- a Java variable name
-
toClassName
@NonNull public static String toClassName(@NonNull String name)
Transforms the provided name into a string suitable for use as a Java class name.- Parameters:
name
- the name of an information element definition- Returns:
- a Java variable name
-
toPackageName
@NonNull public static String toPackageName(@NonNull String name)
Transforms the provided name into a string suitable for use as a Java package name.- Parameters:
name
- the name of an information element definition- Returns:
- a Java variable name
-
-