Class NodeContextImpl
- java.lang.Object
- 
- org.apache.jackrabbit.vault.validation.spi.util.NodeContextImpl
 
- 
- All Implemented Interfaces:
- NodeContext
 
 public final class NodeContextImpl extends Object implements NodeContext 
- 
- 
Constructor SummaryConstructors Constructor Description NodeContextImpl(@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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)@NotNull PathgetBasePath()intgetColumn()@NotNull PathgetFilePath()@NotNull StringgetJcrName(@NotNull Name name)Returns a readable String from the given name object.intgetLine()@NotNull StringgetNodePath()inthashCode()StringtoString()
 
- 
- 
- 
Constructor Detail- 
NodeContextImplpublic NodeContextImpl(@NotNull @NotNull String nodePath, @NotNull @NotNull Path filePath, @NotNull @NotNull Path basePath)
 - 
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-
 
 
- 
 - 
Method Detail- 
getNodePath@NotNull public @NotNull String getNodePath() - Specified by:
- getNodePathin interface- NodeContext
- Returns:
- the JCR node path
 
 - 
getFilePath@NotNull public @NotNull Path getFilePath() - Specified by:
- getFilePathin interface- NodeContext
- Returns:
- the file path relative to jcr_root
 
 - 
getBasePath@NotNull public @NotNull Path getBasePath() - Specified by:
- getBasePathin interface- NodeContext
- Returns:
- the absolute file path of jcr_root (base for NodeContext.getFilePath())
 
 - 
getLinepublic int getLine() - Specified by:
- getLinein 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.
 
 - 
getColumnpublic int getColumn() - Specified by:
- getColumnin 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.
 
 - 
getJcrName@NotNull public @NotNull String getJcrName(@NotNull @NotNull Name name) 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 interface- NodeContext
- Parameters:
- name- the name object
- Returns:
- the JCR qualified name or as fallback the JCR expanded name from the given name object
 
 
- 
 
-