Class NestedAttributeUtils
java.lang.Object
de.hybris.platform.chinesetaxinvoicebackoffice.renderers.NestedAttributeUtils
Contains common methods to the various nested attribute renderers.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNameOfClassWithoutModel(Object object) Obtain the name of the class that the object belongs to, but without the "Model" at the end.getNestedObject(Object object, String propertyName) Retrieve the instance of an attribute of an object.propertyNameToGetter(String propertyName) Convert a string representing an attribute name to the name of a getter method.splitQualifier(String qualifier) Splits a qualifier for a nested attribute (ex.
-
Field Details
-
FIRST_TOKEN
- See Also:
-
SECOND_TOKEN
- See Also:
-
GETTER
- See Also:
-
-
Constructor Details
-
NestedAttributeUtils
public NestedAttributeUtils()
-
-
Method Details
-
propertyNameToGetter
Convert a string representing an attribute name to the name of a getter method. -
splitQualifier
Splits a qualifier for a nested attribute (ex. product.name) into a map to retrieve the two tokens.- Throws:
InvalidNestedAttributeException
-
getNestedObject
public Object getNestedObject(Object object, String propertyName) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, InvalidNestedAttributeException Retrieve the instance of an attribute of an object. -
getNameOfClassWithoutModel
Obtain the name of the class that the object belongs to, but without the "Model" at the end.
-