Class Utils


  • public final class Utils
    extends java.lang.Object
    Utils provide some utility methods.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isFrozenNodeReferenceable​(@NotNull ReadOnlyNodeTypeManager ntMgr)
      Returns true iff there is a nt:frozenNode definition and the definition has a mix:referenceable supertype.
      static boolean isFrozenNodeReferenceable​(@NotNull NodeState root)
      Returns true iff there is a nt:frozenNode definition and the definition has a mix:referenceable supertype.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.