Class Utils
java.lang.Object
com.adobe.granite.contexthub.commons.Utils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetInheritedProperty(Resource resource, String property) Returns the content property of the given page.
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
getInheritedProperty
Returns the content property of the given page. If the resource does not contain this property, the parent resource is checked against given property ornullif resource has no parent.- Parameters:
resource- - resourceproperty- - property name- Returns:
- the property value or
null
-