Class NodeContextImpl
java.lang.Object
org.apache.jackrabbit.vault.validation.spi.util.NodeContextImpl
- All Implemented Interfaces:
NodeContext
-
Constructor Summary
ConstructorsConstructorDescriptionNodeContextImpl(@NotNull String nodePath, @NotNull Path filePath, @NotNull Path basePath) NodeContextImpl(@NotNull String nodePath, @NotNull Path filePath, @NotNull Path basePath, int line, int column) Deprecated.NodeContextImpl(@NotNull String nodePath, @NotNull Path filePath, @NotNull Path basePath, int line, int column, @NotNull Function<Name, String> jcrNameResolver) -
Method Summary
-
Constructor Details
-
NodeContextImpl
-
NodeContextImpl
@Deprecated public NodeContextImpl(@NotNull @NotNull String nodePath, @NotNull @NotNull Path filePath, @NotNull @NotNull Path basePath, int line, int column) Deprecated.- Parameters:
nodePath-filePath-basePath-line-column-
-
NodeContextImpl
-
-
Method Details
-
getNodePath
- Specified by:
getNodePathin interfaceNodeContext- Returns:
- the JCR node path
-
getFilePath
- Specified by:
getFilePathin interfaceNodeContext- Returns:
- the file path relative to jcr_root
-
getBasePath
- Specified by:
getBasePathin interfaceNodeContext- Returns:
- the absolute file path of jcr_root (base for
NodeContext.getFilePath())
-
getLine
public int getLine()- Specified by:
getLinein interfaceNodeContext- 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:
getColumnin interfaceNodeContext- 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.
-
getJcrName
Description copied from interface:NodeContextReturns a readable String from the given name object. The return value's format depends on the actual underlying context.- Specified by:
getJcrNamein interfaceNodeContext- Parameters:
name- the name object- Returns:
- the JCR qualified name or as fallback the JCR expanded name from the given name object
-
hashCode
public int hashCode() -
equals
-
toString
-
NodeContextImpl(String, Path, Path, int, int, Function)instead.