package com.intellij.webcore.packaging;

import org.jetbrains.annotations.Nullable;

/**
 * User: catherine
 */
public class RepoPackage implements Comparable {
  private final String myName;
  private final String myRepoUrl;
  @Nullable final String myLatestVersion;

  public RepoPackage(String name, String repoUrl) {
    myName = name;
    myRepoUrl = repoUrl;
    myLatestVersion = null;
  }

  public RepoPackage(String name, String repoUrl, @Nullable String latestVersion) {
    myName = name;
    myRepoUrl = repoUrl;
    myLatestVersion = latestVersion;
  }

  public String getName() {
    return myName;
  }

  public String getRepoUrl() {
    return myRepoUrl;
  }

  @Nullable
  public String getLatestVersion() {
    return myLatestVersion;
  }

  @Override
  public int compareTo(Object o) {
    if (o instanceof RepoPackage)
      return myName.compareTo(((RepoPackage)o).getName());
    return 0;
  }
}
@@ -78,16 +78,76 @@
 lable;%0A%0A
+import java.util.Collection;%0Aimport java.util.Collections;%0A%0A
 /**%0A * U
@@ -320,16 +320,63 @@
 Version;
+%0A  private final Collection%3CString%3E myKeywords;
 %0A%0A  publ
@@ -428,75 +428,33 @@
 %0A   
- myName = name;%0A    myRepoUrl = repoUrl;%0A    myLatestVersion =
+this(name, repoUrl,
  null
+)
 ;%0A  
@@ -536,24 +536,215 @@
 tVersion) %7B%0A
+    this(name, repoUrl, latestVersion, Collections.%3CString%3EemptyList());%0A  %7D%0A%0A  public RepoPackage(String name, String repoUrl, @Nullable String latestVersion, Collection%3CString%3E keywords) %7B%0A
     myName =
@@ -808,24 +808,51 @@
 estVersion;%0A
+    myKeywords = keywords;%0A
   %7D%0A%0A  publi
@@ -1031,21 +1031,87 @@
 ersion;%0A
-
   %7D%0A%0A
+  public Collection%3CString%3E getKeywords() %7B return myKeywords; %7D%0A%0A
   @Overr

support keywords storage