Class VcsRootXmlConverter.VcsRoot

    • Constructor Detail

      • VcsRoot

        public VcsRoot​(long id,
                       String vcsName)
        Creates new settings object on id and associated version control name.
        Parameters:
        id - vcs root id.
        vcsName - version control name.
    • Method Detail

      • getName

        public String getName()
      • getId

        public long getId()
      • setProperties

        public void setProperties​(@NotNull
                                  Map<String,​String> map)
        Adds number of properties.
        Parameters:
        map - properties map.
      • getVcsName

        public String getVcsName()
      • getProperty

        public String getProperty​(String propertyName)
      • setName

        public void setName​(@NotNull
                            String name)
        Changes connecton name.
        Parameters:
        name - new connection name.
      • isEquivalentRoots

        public static boolean isEquivalentRoots​(VcsRootXmlConverter.VcsRoot root1,
                                                VcsRootXmlConverter.VcsRoot root2)
        Checks whether the specified VCS roots are equivalent. VCS roots are considered equivalent if they both represent same VcsSupport and contain same properties.
        Parameters:
        root1 - VCS root
        root2 - VCS root
        Returns:
        true if roots are equivalent