Package aQute.maven.api
Class Program
java.lang.Object
aQute.maven.api.Program
- All Implemented Interfaces:
Comparable<Program>
In Maven, the groupId and artifactId represent an anonymous concept. This
concept is represented by this class.
We do not validate the groupId and artifactId because it is completely unclear what the character set and syntax is :-(
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintbooleaninthashCode()static booleanisValidName(String string) Validate if this is a valid g:a pair.metadata()static String[]toString()static Programstatic ProgramCreates a program out of a g:aversion(aQute.bnd.version.MavenVersion version) Create a revision by giving it a versionCreate a revision by giving it a version
-
Field Details
-
group
-
artifact
-
path
-
-
Method Details
-
version
Create a revision by giving it a version- Parameters:
version- the version- Returns:
- the revision
-
version
Create a revision by giving it a version- Parameters:
version- the version- Returns:
- the revision
-
isValidName
Validate if this is a valid g:a pair.- Parameters:
string- the g:a pair- Returns:
- true if valid, false otherwise
-
hashCode
public int hashCode() -
equals
-
toString
-
valueOf
Creates a program out of a g:a- Parameters:
group- the gartifact- the a- Returns:
- the Program
-
metadata
- Returns:
- Return the remote path to the program's metadata
-
metadata
- Returns:
- Return the local path to the program's metadata. The id is the id of the repository
-
valueOf
-
split
-
compareTo
- Specified by:
compareToin interfaceComparable<Program>
-
attributes
-