Interface PathResolver

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getJCRPath​(Path path)
      Returns the given JCR path string for the given path object.
      Path getQPath​(java.lang.String path)
      Returns the path object for the given JCR path string.
      Path getQPath​(java.lang.String path, boolean normalizeIdentifier)
      Returns the path object for the given JCR path string.
    • Method Detail

      • getQPath

        Path getQPath​(java.lang.String path)
               throws MalformedPathException,
                      IllegalNameException,
                      javax.jcr.NamespaceException
        Returns the path object for the given JCR path string.
        Parameters:
        path - prefixed JCR path
        Returns:
        a Path object.
        Throws:
        MalformedPathException - if the JCR path format is invalid.
        IllegalNameException - if any of the JCR names contained in the path are invalid.
        javax.jcr.NamespaceException - if a namespace prefix can not be resolved.
      • getQPath

        Path getQPath​(java.lang.String path,
                      boolean normalizeIdentifier)
               throws MalformedPathException,
                      IllegalNameException,
                      javax.jcr.NamespaceException
        Returns the path object for the given JCR path string.
        Parameters:
        path - prefixed JCR path
        normalizeIdentifier -
        Returns:
        a Path object.
        Throws:
        MalformedPathException - if the JCR path format is invalid.
        IllegalNameException - if any of the JCR names contained in the path are invalid.
        javax.jcr.NamespaceException - if a namespace prefix can not be resolved.
      • getJCRPath

        java.lang.String getJCRPath​(Path path)
                             throws javax.jcr.NamespaceException
        Returns the given JCR path string for the given path object.
        Parameters:
        path - a Path object.
        Returns:
        a JCR path string
        Throws:
        javax.jcr.NamespaceException - if a namespace URI can not be resolved