public class StyleUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getPageTreeDepth(com.day.cq.wcm.api.designer.Style style,
String pnStructureDepth)
Returns the tree depth that can be configured in the policy.
|
static @Nullable Integer |
getStructureDepth(com.day.cq.wcm.api.designer.Style style,
String pnStructureDepth)
Returns the style's structure depth attribute value
|
static boolean |
isRootPage(@NotNull com.day.cq.wcm.api.designer.Style style) |
public static int getPageTreeDepth(com.day.cq.wcm.api.designer.Style style,
String pnStructureDepth)
style - Style to search inpnStructureDepth - Name of the structure depth attribute@Nullable public static @Nullable Integer getStructureDepth(com.day.cq.wcm.api.designer.Style style, String pnStructureDepth)
style - Style to search inpnStructureDepth - Name of the structure depth attributepublic static boolean isRootPage(@NotNull
@NotNull com.day.cq.wcm.api.designer.Style style)
Copyright © 2019. All rights reserved.