Class P2Model

java.lang.Object
dev.equo.solstice.p2.P2Model

public class P2Model extends Object
  • Field Details

    • useMavenCentral

      public boolean useMavenCentral
      If false, do not use maven central to resolve dependencies, just use the configured p2 repos
    • WILDCARD

      public static final String WILDCARD
      See Also:
  • Constructor Details

    • P2Model

      public P2Model()
  • Method Details

    • getP2repo

      public TreeSet<String> getP2repo()
    • getInstall

      public TreeSet<String> getInstall()
    • getFilters

      public TreeMap<String,P2Model.Filter> getFilters()
    • getPureMaven

      public TreeSet<String> getPureMaven()
    • isEmpty

      public boolean isEmpty()
    • addP2Repo

      public void addP2Repo(String p2url)
    • applyNativeFilterIfNoPlatformFilter

      public void applyNativeFilterIfNoPlatformFilter()
      Applies a filter named `platform-specific-for-running` which selects artifacts for the running platform iff there are no other platform-related filters so far.
    • deepCopy

      public P2Model deepCopy()
    • queryRaw

      public P2Query queryRaw(P2ClientCache cachingPolicy) throws Exception
      Throws:
      Exception
    • query

      public P2QueryResult query(P2ClientCache clientCachingPolicy, P2QueryCache queryCachingPolicy)
    • validateFilters

      public void validateFilters()
      Ensures there are no conflicts between the existing filters.
    • addFilterAndValidate

      public void addFilterAndValidate(String filterName, Consumer<P2Model.Filter> filterSetup)
    • addFilterAndValidate

      public void addFilterAndValidate(String filterName, P2Model.Filter filter)
    • removeFilter

      public void removeFilter(String name)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object