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