public class NameUtil extends Object
| Constructor and Description |
|---|
NameUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAndHowName(Class<?> group)
The AndHow style name for a class.
|
static String |
getAndHowName(Class<?> group,
Property<?> property)
Gets the true canonical name for a Property in the group.
|
static String |
getAndHowName(String classCanonName,
String[] innerPath)
The AndHow canonical name of the direct parent of the AndHow Property.
|
static String |
getAndHowName(String classCanonName,
String propName,
List<String> innerPath)
The AndHow canonical name of the property, which is the root canonical
name plus the elements of the inner path and the property name, all
separated by dots.
|
static String |
getAndHowName(String classCanonName,
String propName,
String... innerPath)
The AndHow canonical name of the property, which is the root canonical
name plus the elements of the inner path and the property name, all
separated by dots.
|
static String |
getJavaName(Class<?> group)
The Java style name for a class, usable with Class.forName().
|
static String |
getJavaName(String classCanonName,
List<String> innerPath)
The Java canonical name of the direct parent of the AndHow Property.
|
static String |
getJavaName(String classCanonName,
String[] innerPath)
The Java canonical name of the direct parent of the AndHow Property.
|
public static String getAndHowName(String classCanonName, String propName, List<String> innerPath)
classCanonName - The fully qualified name of the top level classpropName - The simple name of the property (the name of the variable
it is assigned to at construction).innerPath - Any inner classes containing the property within the top
level class, in order from outer to inner.public static String getAndHowName(String classCanonName, String propName, String... innerPath)
classCanonName - The fully qualified name of the top level classpropName - The simple name of the property (the name of the variable
it is assigned to at construction).innerPath - Any inner classes containing the property within the top
level class, in order from outer to inner.public static String getJavaName(String classCanonName, String[] innerPath)
Class.forName
Example path: com.fastco.ClassName$InnerClass
classCanonName - innerPath - public static String getJavaName(String classCanonName, List<String> innerPath)
Class.forName
Example path: com.fastco.ClassName$InnerClass
classCanonName - innerPath - public static String getAndHowName(String classCanonName, String[] innerPath)
Example path: com.fastco.ClassName.InnerClass
classCanonName - innerPath - public static String getAndHowName(Class<?> group)
group - public static String getJavaName(Class<?> group)
group - public static String getAndHowName(Class<?> group, Property<?> property) throws IllegalArgumentException, IllegalAccessException, SecurityException
group - property - IllegalArgumentExceptionIllegalAccessExceptionSecurityExceptionCopyright © 2017. All rights reserved.