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 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 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
-