Class ClassUtils
java.lang.Object
gov.nist.secauto.metaschema.databind.codegen.ClassUtils
A variety of utility methods for normalizing Java class related names.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringtoClassName(String name) Transforms the provided name into a string suitable for use as a Java class name.static StringtoPackageName(String name) Transforms the provided name into a string suitable for use as a Java package name.static StringtoPropertyName(String name) Transforms the provided name into a string suitable for use as a Java property name.static StringtoVariableName(String name) Transforms the provided name into a string suitable for use as a Java variable name.
-
Method Details
-
toPropertyName
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
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
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
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
-