public class NestedAttributeUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FIRST_TOKEN |
static String |
GETTER |
static String |
SECOND_TOKEN |
| Constructor and Description |
|---|
NestedAttributeUtils() |
| Modifier and Type | Method and Description |
|---|---|
String |
getNameOfClassWithoutModel(Object object)
Obtain the name of the class that the object belongs to, but without the "Model" at the end.
|
Object |
getNestedObject(Object object,
String propertyName)
Retrieve the instance of an attribute of an object.
|
String |
propertyNameToGetter(String propertyName)
Convert a string representing an attribute name to the name of a getter method.
|
Map<String,String> |
splitQualifier(String qualifier)
Splits a qualifier for a nested attribute (ex.
|
public static final String FIRST_TOKEN
public static final String SECOND_TOKEN
public static final String GETTER
public String propertyNameToGetter(String propertyName)
public Map<String,String> splitQualifier(String qualifier) throws InvalidNestedAttributeException
InvalidNestedAttributeExceptionpublic Object getNestedObject(Object object, String propertyName) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, InvalidNestedAttributeException
Copyright © 2017 SAP SE. All Rights Reserved.