程序包 com.alazeprt

类 ExternalDependency

java.lang.Object
com.alazeprt.Dependency
com.alazeprt.ExternalDependency

public class ExternalDependency extends Dependency
Represents a Maven dependency and provides methods for retrieving sub-dependencies. Also provides methods for parsing dependency information and obtaining URLs.
  • 构造器详细资料

    • ExternalDependency

      public ExternalDependency(String dependency)
      Initializes a dependency with default central URL.
      参数:
      dependency - Shortening name of the dependency
    • ExternalDependency

      public ExternalDependency(String groupId, String artifactId, String version)
      Initializes a dependency using groupId, artifactId, and version.
      参数:
      groupId - GroupId of the dependency
      artifactId - ArtifactId of the dependency
      version - Version of the dependency
  • 方法详细资料

    • parseDependency

      public String parseDependency()
      Parses and constructs the URL of the dependency.
      返回:
      URL where the dependency is located
    • isExternal

      public boolean isExternal()
      从类复制的说明: Dependency
      Is this class a class that needs to be downloaded externally
      指定者:
      isExternal 在类中 Dependency
      返回:
      Whether it is an external dependency class
    • getDependency

      public String getDependency()
      从类复制的说明: Dependency
      Gets the shortening name of the dependency.
      覆盖:
      getDependency 在类中 Dependency
      返回:
      Dependency shortening name