Class P2Model


  • public class P2Model
    extends java.lang.Object
    • Field Detail

      • useMavenCentral

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

      • P2Model

        public P2Model()
    • Method Detail

      • getP2repo

        public java.util.TreeSet<java.lang.String> getP2repo()
      • getInstall

        public java.util.TreeSet<java.lang.String> getInstall()
      • getFilters

        public java.util.TreeMap<java.lang.String,​P2Model.Filter> getFilters()
      • getPureMaven

        public java.util.TreeSet<java.lang.String> getPureMaven()
      • isEmpty

        public boolean isEmpty()
      • addP2Repo

        public void addP2Repo​(java.lang.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 java.lang.Exception
        Throws:
        java.lang.Exception
      • validateFilters

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

        public void addFilterAndValidate​(java.lang.String filterName,
                                         java.util.function.Consumer<P2Model.Filter> filterSetup)
      • addFilterAndValidate

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

        public void removeFilter​(java.lang.String name)
      • toString

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object