Class Utils


  • public final class Utils
    extends Object
    Utils provide some utility methods.
    • Method Detail

      • isFrozenNodeReferenceable

        public static boolean isFrozenNodeReferenceable​(@NotNull
                                                        @NotNull NodeState root)
        Returns true iff there is a nt:frozenNode definition and the definition has a mix:referenceable supertype.
        Parameters:
        root - the root of a repository from where to read the node type information.
        Returns:
        true if frozen nodes are referenceable, false otherwise.
      • isFrozenNodeReferenceable

        public static boolean isFrozenNodeReferenceable​(@NotNull
                                                        @NotNull ReadOnlyNodeTypeManager ntMgr)
        Returns true iff there is a nt:frozenNode definition and the definition has a mix:referenceable supertype.
        Parameters:
        ntMgr - a node type manager to access the node types.
        Returns:
        true if frozen nodes are referenceable, false otherwise.