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 Details

    • 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