Class RepoPathFactory


  • public class RepoPathFactory
    extends java.lang.Object
    A factory for creating RepoPath objects.

    Has runtime dependency on the core.

    Author:
    Yoav Landman
    • Constructor Summary

      Constructors 
      Constructor Description
      RepoPathFactory()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static RepoPath create​(java.lang.String rpp)
      Constructs a RepoPath from a path containing both repo key and the relative path in the repo.
      static RepoPath create​(java.lang.String repoKey, java.lang.String path)
      Constructs a RepoPath from the input repo key and optional path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RepoPathFactory

        public RepoPathFactory()
    • Method Detail

      • create

        public static RepoPath create​(java.lang.String repoKey,
                                      java.lang.String path)
        Constructs a RepoPath from the input repo key and optional path. Paths that end with slash ('/') are considered as paths pointing to folder (RepoPath.isFolder() will return true)
        Parameters:
        repoKey - The key of any repo
        path - The relative path inside the repo (empty for root repo path)
      • create

        public static RepoPath create​(java.lang.String rpp)
        Constructs a RepoPath from a path containing both repo key and the relative path in the repo. Paths that end with slash ('/') are considered as paths pointing to folder (RepoPath.isFolder() will return true)
        Parameters:
        rpp - - {repoKey}/{itemRelativePath}
        Returns:
        Matching repo path