Class EasyDependency

java.lang.Object
de.uni_hildesheim.sse.easy.loader.framework.EasyDependency

public class EasyDependency extends Object
Contains dependency information for a bundle.
Author:
Patrik Pastuschek
  • Field Details

    • isMandatory

      private boolean isMandatory
    • versionMin

      private Version versionMin
    • versionMax

      private Version versionMax
    • specificationVersion

      private String specificationVersion
    • bundleSymbolicName

      private String bundleSymbolicName
    • bundleVersionMin

      private Version bundleVersionMin
    • bundleVersionMax

      private Version bundleVersionMax
    • reqBundles

      private List<String> reqBundles
  • Constructor Details

    • EasyDependency

      public EasyDependency()
      Standard Constructor. Creates an empty dependency.
    • EasyDependency

      public EasyDependency(String info)
      Constructor. Creates a dependency.
      Parameters:
      info - String with dependency infos that are to be parsed.
  • Method Details

    • getMandatory

      public boolean getMandatory()
      Getter returns true if mandatory.
      Returns:
      true if mandatory
    • getVersionMin

      public Version getVersionMin()
      Getter returns true if mandatory.
      Returns:
      true if mandatory
    • getVersionMax

      public Version getVersionMax()
      Getter returns true if mandatory.
      Returns:
      true if mandatory
    • getSpecVersion

      public String getSpecVersion()
      Getter returns true if mandatory.
      Returns:
      true if mandatory
    • getBundleVersionMin

      public Version getBundleVersionMin()
      Getter returns true if mandatory.
      Returns:
      true if mandatory
    • getBundleVersionMax

      public Version getBundleVersionMax()
      Getter returns true if mandatory.
      Returns:
      true if mandatory
    • getBundleSymbolicName

      public String getBundleSymbolicName()
      Getter returns true if mandatory.
      Returns:
      true if mandatory
    • getRequiredBundles

      public List<String> getRequiredBundles()
      Getter for the required bundles.
      Returns:
      A List of Strings.
    • main

      public static void main(String[] args)
      Main test method.
      Parameters:
      args - main standard.
    • getRange

      public static String[] getRange(String range)
      Splits a range into two strings.
      Parameters:
      range - The unsplit string.
      Returns:
      Array of split strings.
    • setBundleVersionMin

      public void setBundleVersionMin(Version min)
      Sets a min version for the bundle.
      Parameters:
      min - minimal Version
    • setBundleVersionMax

      public void setBundleVersionMax(Version max)
      Sets a max version for the bundle.
      Parameters:
      max - maximal Version
    • mergeVersions

      public void mergeVersions(EasyDependency other)
      Merges two dependencies if possible.
      Parameters:
      other - The second dependency to merge with.
    • setName

      public void setName(String name)
      Sets the name of the dependency.
      Parameters:
      name - The name as String.