Class Utils
- java.lang.Object
-
- com.adobe.granite.contexthub.commons.Utils
-
public class Utils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getInheritedProperty(Resource resource, java.lang.String property)
Returns the content property of the given page.
-
-
-
Method Detail
-
getInheritedProperty
public static java.lang.String getInheritedProperty(Resource resource, java.lang.String property)
Returns the content property of the given page. If the resource does not contain this property, the parent resource is checked against given property ornull
if resource has no parent.- Parameters:
resource
- - resourceproperty
- - property name- Returns:
- the property value or
null
-
-