Class NodeContextImpl

    • Constructor Detail

      • NodeContextImpl

        public NodeContextImpl​(@NotNull
                               @NotNull String nodePath,
                               @NotNull
                               @NotNull Path filePath,
                               @NotNull
                               @NotNull Path basePath)
      • NodeContextImpl

        public NodeContextImpl​(@NotNull
                               @NotNull String nodePath,
                               @NotNull
                               @NotNull Path filePath,
                               @NotNull
                               @NotNull Path basePath,
                               int line,
                               int column)
    • Method Detail

      • getNodePath

        @NotNull
        public @NotNull String getNodePath()
        Specified by:
        getNodePath in interface NodeContext
        Returns:
        the JCR node path
      • getFilePath

        @NotNull
        public @NotNull Path getFilePath()
        Specified by:
        getFilePath in interface NodeContext
        Returns:
        the file path relative to jcr_root
      • getLine

        public int getLine()
        Specified by:
        getLine in interface NodeContext
        Returns:
        the line where the serialization of the node was found, 0 for unspecified. This is only set for a node context originating from a DocView XML file.
      • getColumn

        public int getColumn()
        Specified by:
        getColumn in interface NodeContext
        Returns:
        the column where the serialization of the node was found, 0 for unspecified. This is only set for a node context originating from a DocView XML file.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object