程序包 com.alazeprt

类 Dependency

java.lang.Object
com.alazeprt.Dependency
直接已知子类:
ExternalDependency, LocalDependency

public abstract class Dependency extends Object
The top-level abstract class of dependencies
  • 构造器详细资料

    • Dependency

      public Dependency(String dependency)
      Initializes a dependency.
      参数:
      dependency - Shortening name of the dependency
  • 方法详细资料

    • getSubDependencies

      public List<Dependency> getSubDependencies() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException
      Recursively retrieves all sub-dependencies of this dependency.
      返回:
      List of all sub-dependencies that need to be downloaded (including itself)
      抛出:
      IOException - If unable to connect to the dependency's URL
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - If the XML file of the dependency cannot be parsed
    • isExternal

      public abstract boolean isExternal()
      Is this class a class that needs to be downloaded externally
      返回:
      Whether it is an external dependency class
    • getDependency

      public String getDependency()
      Gets the shortening name of the dependency.
      返回:
      Dependency shortening name