Package enterprises.iwakura.amber
Class Dependency
java.lang.Object
enterprises.iwakura.amber.Dependency
Represents a dependency with its notation, group ID, name, and version.
-
Constructor Summary
ConstructorsConstructorDescriptionDependency(String notation) Constructs a Dependency object by parsing the given notation. -
Method Summary
Modifier and TypeMethodDescriptionGenerates the expected filename for the dependency's JAR file.Converts the group ID to a path format by replacing dots with slashes.toString()Returns the string representation of the dependency, which is its notation.
-
Constructor Details
-
Dependency
Constructs a Dependency object by parsing the given notation.- Parameters:
notation- the dependency notation in the format "groupId:name:version"
-
-
Method Details
-
getGroupIdAsPath
Converts the group ID to a path format by replacing dots with slashes.- Returns:
- the group ID in path format
-
getFileName
Generates the expected filename for the dependency's JAR file.- Returns:
- the filename in the format "name-version.jar"
-
toString
Returns the string representation of the dependency, which is its notation.
-